Ametista User

@Entity
open class AmetistaUser : EquinoxUser, DTOConvertible<T>

The AmetistaUser class is useful to represent a base Ametista's system user

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxItem
DTOConvertible

Constructors

Link copied to clipboard
constructor()
Constructor to init the AmetistaUser class
constructor(id: String, token: String, name: String, surname: String, email: String, password: String, language: String, role: AmetistaUser.Role)
Constructor to init the EquinoxUser class
constructor(id: String, token: String, name: String, surname: String, email: String, password: String, profilePic: String, language: String, role: AmetistaUser.Role)
Constructor to init the EquinoxUser class
constructor(jUser: JSONObject)
Constructor to init the AmetistaUser class

Types

Link copied to clipboard
enum Role
List of the available roles

Properties

Link copied to clipboard
val ADMIN_CODE_KEY: String = "admin_code"
ADMIN_CODE_KEY the key for the "admin_code" field
Link copied to clipboard
Link copied to clipboard
protected val email: String
Link copied to clipboard
protected val hItem: JsonHelper
Link copied to clipboard
protected val id: String
Link copied to clipboard
Link copied to clipboard
val IS_ADMIN_KEY: String = "is_admin"
IS_ADMIN_KEY the key for the "is_admin" field
Link copied to clipboard
protected val language: String
Link copied to clipboard
val MEMBERS_KEY: String = "members"
MEMBERS_KEY the key for the "members" field
Link copied to clipboard
protected val name: String
Link copied to clipboard
protected val password: String
Link copied to clipboard
protected val profilePic: String
Link copied to clipboard
role the role of the user
Link copied to clipboard
val ROLE_KEY: String = "role"
ROLE_KEY the key for the "role" field
Link copied to clipboard
val SESSION_KEY: String = "session"
SESSION_KEY the key for the "session" field
Link copied to clipboard
protected val surname: String
Link copied to clipboard
protected val timeFormatter: TimeFormatter
Link copied to clipboard
protected val token: String

Functions

Link copied to clipboard
Link copied to clipboard
open fun getCompleteName(): String
Link copied to clipboard
open fun getEmail(): String
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open fun getInstance(jUser: JSONObject): EquinoxUser
Link copied to clipboard
open fun getLanguage(): String
Link copied to clipboard
open fun getName(): String
Link copied to clipboard
open fun getPassword(): String
Link copied to clipboard
open fun getProfilePic(): String
Link copied to clipboard
open fun getSurname(): String
Link copied to clipboard
open fun getToken(): String
Link copied to clipboard
open fun isAdmin(): Boolean
Method to get whether the user is a ADMIN
Link copied to clipboard
open fun isViewer(): Boolean
Method to get whether the user is a VIEWER
Link copied to clipboard
open fun toString(): String