import '../../../../../api/demo/data/demo_marianum_dates.dart';
import '../../../../../api/demo/demo_mode.dart';
import '../../../infrastructure/repository/repository.dart';
import '../bloc/marianum_dates_state.dart';
import '../data_provider/marianum_dates_get_events.dart';

class MarianumDatesRepository extends Repository<MarianumDatesState> {
  Future<List<MarianumDate>> getEvents() {
    if (DemoMode.active) return Future.value(DemoMarianumDates.events());
    return MarianumDatesGetEvents().run();
  }
}
