Files
elcaribe/news-app/lib/data/repositories/DeleteUserNotification/deleteUserNotiRemoteDataSource.dart

15 lines
427 B
Dart

import 'package:news/utils/api.dart';
import 'package:news/utils/strings.dart';
class DeleteUserNotiRemoteDataSource {
Future deleteUserNotification({required String id}) async {
try {
final body = {ID: id};
final result = await Api.sendApiRequest(body: body, url: Api.deleteUserNotiApi);
return result;
} catch (e) {
throw ApiMessageAndCodeException(errorMessage: e.toString());
}
}
}