ChatProvider class

Inheritance

Constructors

ChatProvider()

Properties

getAccessToken → String?
no setterinherited
getAuthStatusStream → Stream<AuthStatusEnum>
no setterinherited
getUserId → String?
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
messageReceivedKey → String
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sendMessageKey → String
finalinherited

Methods

batch<T>(String path, {required PaginationModel pagination, Map<String, dynamic>? queryParameters, Options? options, RequestEnum type = .get, List<JsonFieldAliasModel> jsonSchemas = const [], required dynamic mapper(dynamic json)}) → Future<Either<BaseException, T>>
inherited
chatConnect(String hubPath, String chatId, void onMessage(ChatMessageModel item)) → Future<Either<BaseException, void>>
chatDisconnect() → Future<Either<BaseException, void>>
connect({required String path, required String chatId, required void parser(Map<String, dynamic> json), required void onStateUpdated(HubConnectionState state)}) → Future<Either<BaseException, void>>
inherited
delete<T>(String path, {dynamic body, Map<String, dynamic>? queryParameters, required T mapper(dynamic json)}) → Future<Either<BaseException, T>>
inherited
disconnect() → Future<Either<BaseException, void>>
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}) → Future<Either<BaseException, T>>
inherited
getChatId(String path) → Future<Either<BaseException, String>>
getHistory(String path, PaginationModel pagination) → Future<Either<BaseException, List<ChatMessageModel>>>
initTokenManager({required RepeatRequestUserCase repeatRequest, required RefreshTokenRequestUserCase refreshTokenRequest, required dynamic getTokenInterseptor(InterceptorsWrapper interseptor)}) → void
inherited
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
send({required String chatId, required String localId, required String scope, String? message, String? fileId}) → Future<Either<BaseException, void>>
inherited
sendMessage({required String chatId, required String scope, required String localId, String? message, String? fileId}) → Future<Either<BaseException, void>>
toString() → String
A string representation of this object.
inherited
upload<T>(String path, {required List<File> files, required T mapper(dynamic json)}) → Future<Either<BaseException, T>>
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited