EquinoxProfileViewModel
The EquinoxProfileViewModel class is the support class used to change the user account settings or preferences
Author
N7ghtm4r3 - Tecknobit
Parameters
The host to launch the snackbar messages
The instance to manage the requests with the backend
The user of the current logged-in session, used to make the requests to the backend
See also
Constructors
Properties
email
the email of the user
language
the language of the user
newEmail
the value of the new email to set
newEmailError
whether the newEmail field is not valid
newPassword
the value of the new password to set
newPasswordError
whether the newPassword field is not valid
password
the password of the user
profilePic
the profile picture of the user
theme
the theme of the user
Functions
Method used to get whether the viewModelScope can start, so if there aren't other jobs that routine is already executing
Method used to execute the email change
Method used to execute the language change
Method used to execute the password change
Method used to execute the profile pic change, look how to integrate
Method used to execute the theme change
Method used to clear the current localUser session
Method used to suspend the current viewModelScope to execute other requests to the backend, the isRefreshing instance will be set as false to allow the restart of the routine after executing the other requests
Method used to execute the account deletion
Method used to restart the current viewModelScope after other requests has been executed, the isRefreshing instance will be set as true to deny the restart of the routine after executing the other requests
Method used to conditionally restart the current retrieverScope after other requests has been executed, the isRefreshing instance will be set as true to deny the restart of the routine after executing the other requests
Method used to set the current active context where the retrieverScope is executing
Method used to display a response message with a snackbar
Method used to suspend the current viewModelScope to execute other requests to the backend, the isRefreshing instance will be set as false to allow the restart of the routine after executing the other requests
Method used to conditionally suspend the current retrieverScope to execute other requests to the backend, the isRefreshing instance will be set as false to allow the restart of the routine after executing the other requests