UserGraphQlMixin mixin

MyUser related functionality.

Mixin applications

Properties

client GraphQlClient
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token AccessTokenSecret?
no setter

Methods

addUserEmail(UserEmail email, {ConfirmationCode? confirmation, RawClientOptions? raw, String? locale}) Future<MyUserEventsVersionedMixin?>
Adds a new email address for the authenticated MyUser.
addUserPhone(UserPhone phone, {ConfirmationCode? confirmation, String? locale}) Future<MyUserEventsVersionedMixin?>
Adds a new phone number for the authenticated MyUser.
blocklistEvents(BlocklistVersion? ver()) Stream<QueryResult<Object?>>
Subscribes to BlocklistEvents of the authenticated MyUser.
blockUser(UserId id, BlocklistReason? reason) Future<BlocklistEventsVersionedMixin?>
Blocks the specified User for the authenticated MyUser.
Creates a new ChatDirectLink with the specified ChatDirectLinkSlug and deletes the current active ChatDirectLink of the authenticated MyUser (if any).
deleteMyUser({MyUserCredentials? confirmation}) Future<MyUserEventsVersionedMixin>
Deletes the authenticated MyUser completely.
Deletes the current ChatDirectLink of the authenticated MyUser.
deleteUserEmail(UserEmail email, {MyUserCredentials? confirmation}) Future<MyUserEventsVersionedMixin?>
Deletes the given email from MyUser.emails of the authenticated MyUser.
deleteUserPhone(UserPhone phone, {MyUserCredentials? confirmation}) Future<MyUserEventsVersionedMixin?>
Deletes the given phone from MyUser.phones for the authenticated MyUser.
getBlocklist({int? first, BlocklistCursor? after, int? last, BlocklistCursor? before}) Future<GetBlocklist$Query$Blocklist>
Returns Users blocked by this MyUser as BlocklistRecords.
getMyUser() Future<GetMyUser$Query>
Returns the current authenticated MyUser.
getUser(UserId id) Future<GetUser$Query>
Returns an User by its id.
keepOnline() Stream<QueryResult<Object?>>
Keeps the authenticated MyUser online while subscribed.
myUserEvents(Future<MyUserVersion?> ver()) Future<Stream<QueryResult<Object?>>>
Subscribes to MyUserEvents of the authenticated MyUser.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerPushDevice(PushDeviceToken token, String? locale) Future<void>
Registers a device (Android, iOS, or Web) for receiving notifications via Firebase Cloud Messaging.
searchUsers({UserNum? num, UserLogin? login, ChatDirectLinkSlug? link, UserName? name, int? first, UsersCursor? after, int? last, UsersCursor? before}) Future<SearchUsers$Query>
Searches Users by the given criteria.
sessions() Future<List<SessionMixin>>
Returns all active Sessions of the authenticated MyUser.
sessionsEvents(SessionsListVersion? ver) Stream<QueryResult<Object?>>
Subscribes to SessionEvents of all Sessions of the authenticated MyUser.
toggleMyUserMute(Muting? mute) Future<MyUserEventsVersionedMixin?>
Mutes or unmutes all the Chats of the authenticated MyUser. Overrides any already existing mute even if it's longer.
toString() String
A string representation of this object.
inherited
unblockUser(UserId id) Future<BlocklistEventsVersionedMixin?>
Removes the specified User from the blocklist of the authenticated MyUser.
unregisterPushDevice(PushDeviceToken token) Future<void>
Unregisters a device (Android, iOS, or Web) from receiving notifications via Firebase Cloud Messaging.
updateUserAvatar(MultipartFile? file, CropAreaInput? crop, {void onSendProgress(int count, int total)?}) Future<MyUserEventsVersionedMixin?>
Updates or resets the MyUser.avatar field with the provided image file.
updateUserBio(UserBio? bio) Future<MyUserEventsVersionedMixin?>
Updates or resets the MyUser.bio field of the authenticated MyUser.
updateUserCallCover(MultipartFile? file, CropAreaInput? crop, {void onSendProgress(int count, int total)?}) Future<MyUserEventsVersionedMixin?>
Updates or resets the MyUser.callCover field with the provided image file.
updateUserLogin(UserLogin? login) Future<MyUserEventsVersionedMixin?>
Updates MyUser.login field for the authenticated MyUser.
updateUserName(UserName? name) Future<MyUserEventsVersionedMixin?>
Updates MyUser.name field for the authenticated MyUser.
updateUserPassword({MyUserIdentifier? identifier, UserPassword? newPassword, MyUserCredentials? confirmation}) Future<MyUserEventsVersionedMixin?>
Updates or resets password of the authenticated MyUser or the one identified by the provided MyUserIdentifier.
updateUserPresence(Presence presence) Future<MyUserEventsVersionedMixin?>
Updates MyUser.presence to the provided value.
updateUserStatus(UserTextStatus? text) Future<MyUserEventsVersionedMixin?>
Updates or resets the MyUser.status field of the authenticated MyUser.
updateWelcomeMessage(WelcomeMessageInput? content) Future<MyUserEventsVersionedMixin?>
Updates the WelcomeMessage of the authenticated MyUser.
userEvents(UserId id, Future<UserVersion?> ver()) Future<Stream<QueryResult<Object?>>>
Subscribes to UserEvents of the specified User.

Operators

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