Pandoro User

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

The PandoroUser class is useful to create a Pandoro's user

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxItem
EquinoxUser
DTOConvertible

Constructors

Link copied to clipboard
constructor()
Default constructor
constructor(id: String, name: String, token: String, surname: String, email: String, password: String, language: String)
Constructor to init a PandoroUser object
constructor(id: String, token: String, name: String, surname: String, email: String, password: String, profilePic: String, language: String, changelogs: List<Changelog>, notes: List<Note>, projects: List<Project>, groups: List<Group>)
Constructor to init a PandoroUser object

Properties

Link copied to clipboard
private val changelogs: List<Changelog>
changelogs list of action messages for the user
Link copied to clipboard
val DEFAULT_PROFILE_PIC: String = "profiles/defProfilePic.png"
Link copied to clipboard
Link copied to clipboard
protected val email: String
Link copied to clipboard
val EMAIL_KEY: String = "email"
Link copied to clipboard
private open var groups: List<Group>
groups list of the groups of the user
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
val LANGUAGE_KEY: String = "language"
Link copied to clipboard
protected val name: String
Link copied to clipboard
val NAME_KEY: String = "name"
Link copied to clipboard
private open var notes: List<Note>
notes list of the notes of the user
Link copied to clipboard
protected val password: String
Link copied to clipboard
val PASSWORD_KEY: String = "password"
Link copied to clipboard
val PROFILE_PIC_KEY: String = "profile_pic"
Link copied to clipboard
protected val profilePic: String
Link copied to clipboard
private open var projects: List<Project>
projects list of the projects of the user
Link copied to clipboard
protected val surname: String
Link copied to clipboard
val SURNAME_KEY: String = "surname"
Link copied to clipboard
protected val theme: EquinoxUser.ApplicationTheme
Link copied to clipboard
val THEME_KEY: String = "theme"
Link copied to clipboard
protected val timeFormatter: TimeFormatter
Link copied to clipboard
protected val token: String
Link copied to clipboard
val TOKEN_KEY: String = "token"
Link copied to clipboard
val USERS_KEY: String = "users"

Functions

Link copied to clipboard
Method to convert the object to related Transfer Data Object
Link copied to clipboard
Method to get the groups where the user is the ADMIN
Link copied to clipboard
Method to get changelogs instance
Link copied to clipboard
open fun getCompleteName(): String
Link copied to clipboard
open fun getEmail(): String
Link copied to clipboard
Method to get groups instance
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 getNotes(): ArrayList<Note>
Method to get notes instance
Link copied to clipboard
open fun getPassword(): String
Link copied to clipboard
open fun getProfilePic(): String
Link copied to clipboard
Method to get projects instance
Link copied to clipboard
Method to get projects instance
Link copied to clipboard
open fun getSurname(): String
Link copied to clipboard
open fun getTheme(): EquinoxUser.ApplicationTheme
Link copied to clipboard
open fun getToken(): String
Link copied to clipboard
Method to get the number of changelogs unread
Link copied to clipboard
open fun setGroups(groups: List<Group>)
Method to set groups instance
Link copied to clipboard
open fun setNotes(notes: List<Note>)
Method to set notes instance
Link copied to clipboard
open fun setProjects(projects: List<Project>)
Method to set projects instance
Link copied to clipboard
open fun toString(): String