import '../../../mhsl/custom_timetable_event/get/get_custom_timetable_event_response.dart';
import '../../../request_cache.dart';
import 'timetable_custom_events_get.dart';

class TimetableCustomEventsCache
    extends SimpleCache<GetCustomTimetableEventResponse> {
  TimetableCustomEventsCache({super.onUpdate, super.onError, super.renew})
    : super(
        cacheTime: RequestCache.cacheMinute,
        loader: () => TimetableCustomEventsGet().run(),
        fromJson: GetCustomTimetableEventResponse.fromJson,
      ) {
    start('customTimetableEvents');
  }
}
