forked from eatvio/eatvio_app
17 lines
503 B
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();
|
|
|
|
}
|
|
}
|