15 lines
429 B
Dart
15 lines
429 B
Dart
import '../../../requestCache.dart';
|
|
import 'getHolidays.dart';
|
|
import 'getHolidaysResponse.dart';
|
|
|
|
class GetHolidaysCache extends SimpleCache<GetHolidaysResponse> {
|
|
GetHolidaysCache({super.onUpdate, super.onError, super.renew})
|
|
: super(
|
|
cacheTime: RequestCache.cacheDay,
|
|
loader: () => GetHolidays().run(),
|
|
fromJson: GetHolidaysResponse.fromJson,
|
|
) {
|
|
start('wu-holidays');
|
|
}
|
|
}
|