NovaUser

constructor()

Constructor to init the NovaUser class No-any params required


constructor(jUser: JSONObject)

Constructor to init the NovaUser class

Parameters

jUser

: user details formatted as JSON


constructor(member: List<String>)

Constructor to init the NovaUser class

Parameters

member

: member details as list


constructor(id: String, token: String, name: String, surname: String, email: String, password: String, language: String, role: NovaUser.Role)

Constructor to init the NovaUser class

Parameters

id

: identifier of the user

token

: the token which the user is allowed to operate on server

name

: the name of the user

surname

: the surname of the user

email

: the email of the user

password

: the password of the user

language

: the language selected by the user

role

: the role of the user on the server


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

Parameters

id

: identifier of the user

token

: the token which the user is allowed to operate on server

name

: the name of the user

surname

: the surname of the user

email

: the email of the user

profilePicUrl

:profilePicUrl the profile pic of the user formatted as url

password

: the password of the user

authoredProjects

:authoredProjects list of projects which user is the author

projects

:projects list of projects which user is a member

language

: the language selected by the user

role

: the role of the user on the server

notifications

:NovaNotification the list of the notifications which belong to the user