StudyJamClient class

Annotations
  • @immutable

Constructors

StudyJamClient({Client? httpClient, Uri? hostUri})

Properties

$hostUri Uri
Ссылка к серверу https://example.com/.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

$httpGet(String url, {Map<String, dynamic>? query}) Future<Map<String, dynamic>>
$httpPost(String url, Map body, {Map<String, dynamic>? query}) Future<Map<String, dynamic>>
createChat(SjChatSendsDto chat) Future<SjChatDto>
Создание нового чата.
getAuthorizedClient(String accessToken, {Client? httpClient}) StudyJamClient
Создание авторизованного клиента на основе токена доступа.
getChat() Future<SjChatDto>
Получение данных чата.
getChatsByIds(List<int> ids) Future<List<SjChatDto>>
Получение данных чатов через список их айди.
getMessages({int? chatId, int? lastMessageId, int? limit}) Future<List<SjMessageDto>>
Получение данных сообщений конкретного чата.
getMessagesByIds(List<int> ids) Future<List<SjMessageDto>>
Получение данных сообщений через список айди.
getUpdates({DateTime? users, DateTime? msgs, DateTime? chats}) Future<SjUpdatesIdsDto>
Получение айди данных которые были обновлены.
getUser([int? id]) Future<SjUserDto?>
Получение данных конкретного или вошедшего пользователя, таким же образом можно проверить наличие и валидность кредов.
getUsers(List<int> ids) Future<List<SjUserDto>>
Получение данных конкретных пользователей.
logout() Future<void>
Выход из системы.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMessage(SjMessageSendsDto msg) Future<SjMessageDto>
Отправка нового сообщения.
signin(String login, String password) Future<String>
Получение токена доступа с помощью логина и пароля.
toString() String
A string representation of this object.
inherited

Operators

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