EquinoxAuthViewModel
The EquinoxAuthViewModel class is the support class used to execute the authentication requests to the backend
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
emailError
whether the email field is not valid
host
the value of the host to reach
hostError
whether the host field is not valid
isSignUp
whether the auth request to execute is sign up or sign in
name
the name of the user
nameError
whether the name field is not valid
password
the password of the user
passwordError
whether the password field is not valid
serverSecret
the value of the server secret
serverSecretError
whether the serverSecret field is not valid
surname
the surname of the user
surnameError
whether the surname field is not valid
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 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 get the list of the custom parameters to use in the signIn request.
Method used to get the list of the custom parameters to use in the signUp request
Method used to get the current user language
Method used to get a supported language for the user
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 validate the inputs for the signIn request
Method used to validate the inputs for the signUp request
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