import 'package:eatvio_app/features/notifications/models/notification_model.dart'; import 'package:eatvio_app/features/notifications/service/notifications_service.dart'; class NotificationsRepository { final NotificationsService notificationsService; NotificationsRepository({required this.notificationsService}); Future?> getNotifications({required int page}) { try { return notificationsService.getNotifications(page: page); } catch (e) { rethrow; } } Future markNotificationsAsRead() async { try { await notificationsService.markNotificationsAsRead(); } catch (e) { rethrow; } } }