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: 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: Role)
Constructor to init the EquinoxUser class

Properties

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
protected val language: String
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
val role: Role
role the role of the user
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