Ametista Local User

The {@code AmetistaLocalUser} class is useful to represent a user in the client application

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun clear()

Method to clear the current local user session

No-any params required

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

Method to get a stored preference

Link copied to clipboard
fun getRole(): <Error class: unknown class>?

Method to get the role instance

Link copied to clipboard
open fun initLocalUser()

Method 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?, hResponse: <Error class: unknown class>?, vararg custom: Any?)

Method to insert and init a new local user

Link copied to clipboard

Method to check whether the current user is an ADMIN

Link copied to clipboard

Method to check whether the current user is an VIEWER

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

Method to store and set a preference

Link copied to clipboard
fun setRole(role: <Error class: unknown class>)

Method to set the role instance