NovaUser

@Entity
open class NovaUser : EquinoxUser

The NovaUser class is useful to represent a Nova's user

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxItem

Constructors

Link copied to clipboard
constructor()
Constructor to init the NovaUser class No-any params required
constructor(jUser: JSONObject)
Constructor to init the NovaUser class
constructor(member: List<String>)
Constructor to init the NovaUser class
constructor(id: String, token: String, name: String, surname: String, email: String, password: String, language: String, role: NovaUser.Role)
Constructor to init the NovaUser class
constructor(id: String, name: String, surname: String, email: String, profilePicUrl: String, token: String, password: String, authoredProjects: List<Project>, projects: List<Project>, language: String, role: NovaUser.Role, notifications: List<NovaNotification>)
Constructor to init the NovaUser class

Types

Link copied to clipboard
enum Role
Role list of available roles for a user

Properties

Link copied to clipboard
val AUTHORED_PROJECTS_KEY: String = "authoredProjects"
AUTHORED_PROJECTS_KEY the key for the "authoredProjects" field
Link copied to clipboard
authoredProjects list of projects which user is the author
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
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
val MEMBER_IDENTIFIER_KEY: String = "member_id"
MEMBER_IDENTIFIER_KEY the key for the "member_id" field
Link copied to clipboard
protected val name: String
Link copied to clipboard
val NAME_KEY: String = "name"
Link copied to clipboard
NovaNotification the list of the notifications which belong to 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
projects list of projects which user is a member
Link copied to clipboard
val PROJECTS_KEY: String = "projects"
PROJECTS_KEY the key for the "projects" field
Link copied to clipboard
role the role of the user on the server
Link copied to clipboard
val ROLE_KEY: String = "role"
ROLE_KEY the key for the "role" field
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 USER_KEY: String = "user"
USER_KEY the key for the "user" field
Link copied to clipboard
val USERS_KEY: String = "users"

Functions

Link copied to clipboard
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 getTheme(): EquinoxUser.ApplicationTheme
Link copied to clipboard
open fun getToken(): String
Link copied to clipboard
Link copied to clipboard
open fun isCustomer(): Boolean
Method to get whether the member is a Customer No-any params required
Link copied to clipboard
open fun isTester(project: Project): Boolean
Method to get whether the member is a Tester No-any params required
Link copied to clipboard
open fun isVendor(): Boolean
Method to get whether the member is a Vendor No-any params required
Link copied to clipboard
open fun returnUserInstance(jUser: JSONObject): NovaUser
Method to assemble and return a NovaUser instance
Link copied to clipboard
open fun returnUsersList(jUsers: JSONArray): List<NovaUser>
Method to assemble and return a List of users
Link copied to clipboard
open fun toString(): String