AbstractMyUserRepository class abstract

MyUser repository interface.

Implementers

Constructors

AbstractMyUserRepository()

Properties

hashCode int
The hash code for this object.
no setterinherited
myUser Rx<MyUser?>
Returns the currently active MyUser profile.
no setter
profiles RxObsMap<UserId, Rx<MyUser>>
Returns a reactive map of known MyUser profiles.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addUserEmail(UserEmail email, {ConfirmationCode? confirmation, String? locale}) Future<void>
Adds a new email address for the authenticated MyUser.
addUserPhone(UserPhone phone, {ConfirmationCode? confirmation, String? locale}) Future<void>
Adds a new phone number for the authenticated MyUser.
Creates a new ChatDirectLink with the specified ChatDirectLinkSlug and deletes the current active ChatDirectLink of the authenticated MyUser (if any).
Deletes the current ChatDirectLink of the authenticated MyUser.
deleteMyUser({UserPassword? password, ConfirmationCode? confirmation}) Future<void>
Deletes the authenticated MyUser completely.
deleteUserEmail(UserEmail email, {UserPassword? password, ConfirmationCode? confirmation}) Future<void>
Deletes the given email from MyUser.emails of the authenticated MyUser.
deleteUserPhone(UserPhone phone, {UserPassword? password, ConfirmationCode? confirmation}) Future<void>
Deletes the given phone from MyUser.phones for the authenticated MyUser.
init({required dynamic onUserDeleted(), required dynamic onPasswordUpdated()}) Future<void>
Initializes the repository.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() Future<void>
Refreshes the MyUser to be up to date.
toggleMute(MuteDuration? mute) Future<void>
Mutes or unmutes all the Chats of the authenticated MyUser.
toString() String
A string representation of this object.
inherited
updateAvatar(NativeFile? file, {CropAreaInput? crop, void onSendProgress(int count, int total)?}) Future<void>
Updates or resets the MyUser.avatar field with the provided image file.
updateCallCover(NativeFile? file, {void onSendProgress(int count, int total)?}) Future<void>
Updates or resets the MyUser.callCover field with the provided image file.
updateUserBio(UserBio? bio) Future<void>
Updates or resets the MyUser.bio field of the authenticated MyUser.
updateUserLogin(UserLogin? login) Future<void>
Updates MyUser.login field for the authenticated MyUser.
updateUserName(UserName? name) Future<void>
Updates MyUser.name field for the authenticated MyUser.
updateUserPassword(UserPassword? oldPassword, UserPassword newPassword) Future<void>
Updates password for the authenticated MyUser.
updateUserPresence(Presence presence) Future<void>
Updates MyUser.presence to the provided value.
updateUserStatus(UserTextStatus? status) Future<void>
Updates or resets the MyUser.status field of the authenticated MyUser.
updateWelcomeMessage({ChatMessageText? text, List<Attachment>? attachments}) Future<void>
Updates the WelcomeMessage of the authenticated MyUser.

Operators

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