EquinoxLocalUser

open class EquinoxLocalUser(localStoragePath: String)

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

Author

N7ghtm4r3 - Tecknobit

Since

1.0.6

Constructors

Link copied to clipboard
constructor(localStoragePath: String)

Types

Link copied to clipboard

ApplicationTheme list of the available theming for the client applications

Properties

Link copied to clipboard
Link copied to clipboard

email the email of the user

Link copied to clipboard

hostAddress the host address which the user communicate

Link copied to clipboard
Link copied to clipboard

language the language of the user

Link copied to clipboard

name the name of the user

Link copied to clipboard

password the password of the user

Link copied to clipboard
protected val preferencesManager: KMPrefs

preferencesManager the local preferences manager

Link copied to clipboard

profilePic the profile pick of the user

Link copied to clipboard

surname the surname of the user

Link copied to clipboard

theme the theme of the user

Link copied to clipboard

userId the identifier of the user

Link copied to clipboard

userToken the token of the user

Functions

Link copied to clipboard
fun clear()

Method used to clear the current local user session

Link copied to clipboard
protected fun <T> Array<out Any?>.extractsCustomValue(indexArray: Int = 0, itemPosition: Int): T

Method used to extract a specific value from the custom parameter of the insertNewUser method.

Link copied to clipboard
protected fun getNullSafePreference(key: String): String

Method used to get a stored preference

Link copied to clipboard
protected fun getPreference(key: String): String?

Method used to get a stored preference

Link copied to clipboard
protected open fun initLocalUser()

Method used to init the local user session

Link copied to clipboard
open fun insertNewUser(    hostAddress: String,     name: String,     surname: String,     email: String,     password: String,     language: String,     response: JsonObject,     vararg custom: Any?)

Method used to insert and initialize a new local user.

Link copied to clipboard
protected fun setPreference(key: String, value: String?)

Method used to store and set a preference

Link copied to clipboard
fun updateDynamicAccountData(dynamicData: JsonObject)

Method used to update the dynamic data of the local user