forked from eatvio/eatvio_app
16 lines
518 B
Dart
16 lines
518 B
Dart
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<List<BaseNotificationModel>?> getNotifications({required int page}) {
|
|
try {
|
|
return notificationsService.getNotifications(page: page);
|
|
} catch (e) {
|
|
rethrow;
|
|
}
|
|
}
|
|
}
|