Added markAll as read for notification
This commit is contained in:
@@ -24,14 +24,15 @@ class NotificationsService {
|
||||
return result;
|
||||
}
|
||||
|
||||
Future<Result<NotificationResponseModel>> markAllAsRead() async {
|
||||
final result = await _networkManager.makeRequest(
|
||||
NotificationApi.markAllAsRead,
|
||||
method: 'POST',
|
||||
(json) => NotificationResponseModel.fromJson(json),
|
||||
);
|
||||
return result;
|
||||
}
|
||||
Future<Result<Map<String, dynamic>>> markAllAsRead() async {
|
||||
final result = await _networkManager.makeRequest(
|
||||
NotificationApi.markAllAsRead,
|
||||
method: 'GET',
|
||||
(json) => json,
|
||||
);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Future<Result<NotificationResponseModel>> markAsRead({
|
||||
required String notificationId,
|
||||
|
||||
Reference in New Issue
Block a user