SeedKit - клиент для чата
Constructors
-
ChatClient({String messageReceivedKey = 'messageReceived', String sendMessageKey = 'SendMessage', List<Interceptor> interceptors = const []})
-
Methods
-
batch<T>(String path, {Map<String, dynamic>? queryParameters, Options? options, RequestEnum type = .get, List<JsonFieldAliasModel> jsonSchemas = const [], required dynamic mapper(dynamic json)})
→ Future<Either<BaseException, T>>
-
inherited
-
connect({required String path, required String chatId, required void parser(Map<String, dynamic> json), required void onStateUpdated(HubConnectionState state)})
→ Future<Either<BaseException, void>>
-
-
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>>
-
-
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
-
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>>
-
-
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