Merge pull request 'Added notification logic and view api' (#152) from logic_notification into main

Reviewed-on: https://repo.ravanertebat.com/TM/tm_app/pulls/152
This commit is contained in:
a.ghabeli
2025-09-22 16:09:10 +03:30
22 changed files with 1944 additions and 151 deletions
@@ -0,0 +1,24 @@
import 'package:tm_app/core/utils/result.dart';
import 'package:tm_app/data/services/model/notification__response/notification_response_model.dart';
import 'package:tm_app/data/services/notification_service.dart';
class NotificationsRepository {
NotificationsRepository({required NotificationsService notificationsService})
: _notificationsService = notificationsService;
final NotificationsService _notificationsService;
Future<Result<NotificationResponseModel>> getNotifications({
required int limit,
required int offset,
}) async {
return _notificationsService.getNotifications(
limit: limit,
offset: offset,
);
}
Future<Result<NotificationResponseModel>> markAllAsRead() async {
return _notificationsService.markAllAsRead();
}
}