import '../../../../../api/demo/data/demo_marianum_message.dart';
import '../../../../../api/demo/demo_mode.dart';
import '../../../infrastructure/repository/repository.dart';
import '../bloc/marianum_message_state.dart';
import '../data_provider/marianum_message_get_messages.dart';

class MarianumMessageRepository extends Repository<MarianumMessageState> {
  Future<MarianumMessageList> getMessages() {
    if (DemoMode.active) return Future.value(DemoMarianumMessage.list());
    return MarianumMessageGetMessages().run();
  }
}
