Equinox User

@Entity
open class EquinoxUser : EquinoxItem

The EquinoxUser class is useful to represent a base Equinox's system user

Author

N7ghtm4r3 - Tecknobit

Since

1.0.1

See also

Constructors

Link copied to clipboard
constructor()
Constructor to init the EquinoxUser class No-any params required
constructor(id: String, token: String, name: String, surname: String, email: String, password: String, language: String)
Constructor to init the EquinoxUser class
constructor(id: String, token: String, name: String, surname: String, email: String, password: String, profilePic: String, language: String, theme: EquinoxUser.ApplicationTheme)
Constructor to init the EquinoxUser class
constructor(jUser: JSONObject)
Constructor to init the EquinoxUser class

Types

Link copied to clipboard
ApplicationTheme list of the available theming for the client applications

Properties

Link copied to clipboard
val DEFAULT_PROFILE_PIC: String = "profiles/defProfilePic.png"
DEFAULT_PROFILE_PIC the default profile pic path when the user has not set own image
Link copied to clipboard
DISCRIMINATOR_VALUE_KEY the key for the "dtype" field
Link copied to clipboard
protected val email: String
email the email of the user
Link copied to clipboard
val EMAIL_KEY: String = "email"
EMAIL_KEY the key for the "email" field
Link copied to clipboard
protected val hItem: JsonHelper
hItem helper to work with JSON values
Link copied to clipboard
protected val id: String
id identifier of the item
Link copied to clipboard
IDENTIFIER_KEY the key for the "id" field
Link copied to clipboard
protected val language: String
language the language of the user
Link copied to clipboard
val LANGUAGE_KEY: String = "language"
LANGUAGE_KEY the key for the "language" field
Link copied to clipboard
protected val name: String
name the name of the user
Link copied to clipboard
val NAME_KEY: String = "name"
NAME_KEY the key for the "name" field
Link copied to clipboard
protected val password: String
password the password of the user
Link copied to clipboard
val PASSWORD_KEY: String = "password"
PASSWORD_KEY the key for the "password" field
Link copied to clipboard
val PROFILE_PIC_KEY: String = "profile_pic"
PROFILE_PIC_KEY the key for the "profile_pic" field
Link copied to clipboard
protected val profilePic: String
profilePic the profile pic of the user
Link copied to clipboard
protected val surname: String
surname the surname of the user
Link copied to clipboard
val SURNAME_KEY: String = "surname"
SURNAME_KEY the key for the "surname" field
Link copied to clipboard
theme the theme of the user
Link copied to clipboard
val THEME_KEY: String = "theme"
THEME_KEY the key for the "theme" field
Link copied to clipboard
protected val timeFormatter: TimeFormatter
timeFormatter the formatter used to format the timestamp values
Link copied to clipboard
protected val token: String
token the token which the user is allowed to operate on server
Link copied to clipboard
val TOKEN_KEY: String = "token"
TOKEN_KEY the key for the "token" field
Link copied to clipboard
val USERS_KEY: String = "users"
USERS_KEY the key for the "users" field

Functions

Link copied to clipboard
open fun getCompleteName(): String
Method to get the complete name of the user No-any params required
Link copied to clipboard
open fun getEmail(): String
Method to get email instance No-any params required
Link copied to clipboard
open fun getId(): String
Method to get id instance No-any params required
Link copied to clipboard
open fun getInstance(jUser: JSONObject): EquinoxUser
Method to assemble and return a EquinoxUser instance
Link copied to clipboard
open fun getLanguage(): String
Method to get language instance No-any params required
Link copied to clipboard
open fun getName(): String
Method to get name instance No-any params required
Link copied to clipboard
open fun getPassword(): String
Method to get password instance No-any params required
Link copied to clipboard
open fun getProfilePic(): String
Method to get profilePic instance No-any params required
Link copied to clipboard
open fun getSurname(): String
Method to get surname instance No-any params required
Link copied to clipboard
Method to get name instance No-any params required
Link copied to clipboard
open fun getToken(): String
Method to get token instance No-any params required
Link copied to clipboard
Method to get a supported language for the user No-any params required
Link copied to clipboard
open fun toString(): String