Equinox Local User

abstract class EquinoxLocalUser

The EquinoxLocalUser class is useful to represent a user in the client application

Author

N7ghtm4r3 - Tecknobit

Since

1.0.1

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
protected open var email: String
email the email of the user
Link copied to clipboard
protected open var hostAddress: String
hostAddress the host address which the user communicate
Link copied to clipboard
protected open var language: String
language the language of the user
Link copied to clipboard
protected open var name: String
name the name of the user
Link copied to clipboard
protected open var password: String
password the password of the user
Link copied to clipboard
protected open var profilePic: String
profilePic the profile pick of the user
Link copied to clipboard
protected open var surname: String
surname the surname of the user
Link copied to clipboard
protected open var theme: EquinoxUser.ApplicationTheme
theme the theme of the user
Link copied to clipboard
protected open var userId: String
userId the identifier of the user
Link copied to clipboard
protected open var userToken: String
userToken the token of the user

Functions

Link copied to clipboard
abstract fun clear()
Method to clear the current local user session No-any params required
Link copied to clipboard
open fun getCompleteName(): String
Method to get the complete name of the user No-any params required
Link copied to clipboard
open fun getEmail(): String
Method to get email instance No-any params required
Link copied to clipboard
open fun getHostAddress(): String
Method to get hostAddress instance No-any params required
Link copied to clipboard
open fun getLanguage(): String
Method to get language instance No-any params required
Link copied to clipboard
open fun getName(): String
Method to get name instance No-any params required
Link copied to clipboard
open fun getPassword(): String
Method to get password instance No-any params required
Link copied to clipboard
protected abstract fun getPreference(key: String): String
Method to get a stored preference
Link copied to clipboard
open fun getProfilePic(): String
Method to get profilePic instance No-any params required
Link copied to clipboard
open fun getSurname(): String
Method to get surname instance No-any params required
Link copied to clipboard
Method to get theme instance No-any params required
Link copied to clipboard
open fun getUserId(): String
Method to get userId instance No-any params required
Link copied to clipboard
open fun getUserToken(): String
Method to get userToken instance No-any params required
Link copied to clipboard
protected open fun initLocalUser()
Method to init the local user session No-any params required
Link copied to clipboard
open fun insertNewUser(hostAddress: String, name: String, surname: String, email: String, password: String, language: String, hResponse: JsonHelper, custom: Array<Any>)
Method to insert and init a new local user
Link copied to clipboard
Method to get whether the user is already authenticated in a session No-any params required
Link copied to clipboard
open fun setEmail(email: String)
Method to set the email instance
Link copied to clipboard
open fun setHostAddress(hostAddress: String)
Method to set the hostAddress instance
Link copied to clipboard
open fun setLanguage(language: String)
Method to set the language instance
Link copied to clipboard
open fun setName(name: String)
Method to set the name instance
Link copied to clipboard
open fun setPassword(password: String)
Method to set the password instance
Link copied to clipboard
protected abstract fun setPreference(key: String, value: String)
Method to store and set a preference
Link copied to clipboard
open fun setProfilePic(profilePic: String)
Method to set the profilePic instance
Link copied to clipboard
open fun setSurname(surname: String)
Method to set the surname instance
Link copied to clipboard
Method to set the theme instance
Link copied to clipboard
open fun setUserId(userId: String)
Method to set the userId instance
Link copied to clipboard
open fun setUserToken(userToken: String)
Method to set the userToken instance