NotificationsProvider class
Methods
-
batch<T>(String path, {Map<String, dynamic>? queryParameters, Options? options, RequestEnum type = .get, List<JsonFieldAliasModel> jsonSchemas = const [], required dynamic mapper(dynamic json), void onAsync(Either<BaseException, T> result)?, void onSync(Either<BaseException, T> result)?, SyncApiRequestScope? scope})
→ Future<Either<BaseException, T>>
-
inherited
-
checkUnread()
→ Future<Either<BaseException, bool>>
-
-
delete<T>(String path, {dynamic body, Map<String, dynamic>? queryParameters, required T mapper(dynamic json)})
→ Future<Either<BaseException, T>>
-
inherited
-
download<T>(String path, {Map<String, dynamic>? params, VoidDataFunction<double>? onProgress, RequestEnum type = .get, required Future<T> saver(Uint8List bytes)})
→ Future<Either<BaseException, T>>
-
inherited
-
get<T>(String path, {Map<String, dynamic>? queryParameters, required dynamic mapper(dynamic json), Options? options, VoidDataFunction<double>? onProgress, List<JsonFieldAliasModel> jsonSchemas = const [], RequestEnum type = .get, void onAsync(Either<BaseException, T> result)?, void onSync(Either<BaseException, T> result)?, SyncApiRequestScope? scope})
→ Future<Either<BaseException, T>>
-
inherited
-
getNotification(String id)
→ Future<Either<BaseException, NotificationModel>>
-
-
getNotifications(NotificationsFilterModel? filter, )
→ Future<Either<BaseException, List<NotificationModel>>>
-
-
getSettings()
→ Future<Either<BaseException, NotificationSettingsModel>>
-
-
initTokenManager({required RepeatRequestUserCase repeatRequest, required RefreshTokenRequestUserCase refreshTokenRequest, required dynamic getTokenInterseptor(InterceptorsWrapper interseptor)})
→ void
-
inherited
-
markAll()
→ Future<Either<BaseException, void>>
-
-
markAs(String notificationId)
→ Future<Either<BaseException, void>>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
patch<T>(String path, {dynamic body, required T mapper(dynamic json)})
→ Future<Either<BaseException, T>>
-
inherited
-
post<T>(String path, {dynamic body, Options? options, required T mapper(dynamic json)})
→ Future<Either<BaseException, T>>
-
inherited
-
put<T>(String path, {dynamic body, required T mapper(dynamic json)})
→ Future<Either<BaseException, T>>
-
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateSettings(List<PushSettingModel> settings)
→ Future<Either<BaseException, void>>
-
-
upload<T>(String path, {required List<File> files, required T mapper(dynamic json)})
→ Future<Either<BaseException, T>>
-
inherited