Aidra Connect
10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
notification_remote_datasource.dart
Go to the documentation of this file.
1
import
'/core/api/api_endpoints.dart';
2
3
import
'../../../../../../core/api/api_client.dart';
4
import
'../../../../../../core/services/service_locator.dart';
5
6
class
NotificationsRemoteDataSource
{
7
final
apiClient
=
sl<ApiClient>
();
8
Future<dynamic>
getNotifications
({
9
required String param,
10
}) async {
11
final
response = await
apiClient
.get(
12
ApiEndpoints
.
getNotifications
(param),
13
);
14
return
response;
15
}
16
}
ApiEndpoints
Definition
api_endpoints.dart:3
ApiEndpoints::getNotifications
static getNotifications(String userId)
NotificationsRemoteDataSource
Definition
notification_remote_datasource.dart:6
NotificationsRemoteDataSource::apiClient
final apiClient
Definition
notification_remote_datasource.dart:7
NotificationsRemoteDataSource::getNotifications
Future< dynamic > getNotifications({ required String param, }) async
Definition
notification_remote_datasource.dart:8
sl
final sl
Definition
service_locator.dart:79
lib
features
notifications
data
data_sources
remote_datasources
notification_remote_datasource.dart
Generated by
1.16.1