Files
eatvio_app/lib/features/notifications/repository/notifications_repository.dart

17 lines
503 B
Dart

import 'package:eatvio_app/features/notifications/service/notifications_service.dart';
class NotificationsRepository {
final NotificationsService notificationsService;
NotificationsRepository({required this.notificationsService});
Future<Map<String, dynamic>?> getNotifications({required int page}) async {
return await notificationsService.getNotifications(page: page);
}
Future<void> markNotificationsAsRead() async {
await notificationsService.markNotificationsAsRead();
}
}