Ametista Local User

class AmetistaLocalUser : EquinoxLocalUser

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

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var name: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var role: Role?

role -> the role of the current user

Link copied to clipboard
Link copied to clipboard
var theme: EquinoxLocalUser.ApplicationTheme
Link copied to clipboard
var userId: String?
Link copied to clipboard

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
open override fun insertNewUser(    hostAddress: String,     name: String,     surname: String,     email: String,     password: String,     language: String,     response: JsonObject,     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
fun updateDynamicAccountData(dynamicData: JsonObject)