NovaSession

The NovaSession record is useful to store and work with the local sessions

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor(id: String, token: String, profilePicUrl: String, name: String, surname: String, email: String, password: String, hostAddress: String, role: NovaUser.Role, isActive: Boolean, language: String)

Properties

Link copied to clipboard
open var email: String
email the email of the user in that session
Link copied to clipboard
val HOST_ADDRESS_KEY: String = "host_address"
HOST_ADDRESS_KEY the key for the "host_address" field
Link copied to clipboard
hostAddress the host address used in that session
Link copied to clipboard
val id: String
id the identifier of the user in that session
Link copied to clipboard
val IS_ACTIVE_SESSION_KEY: String = "is_active"
IS_ACTIVE_SESSION_KEY the key for the "is_active" field
Link copied to clipboard
isActive whether the current session is active
Link copied to clipboard
open var language: String
language the language of the user
Link copied to clipboard
val LOGGED_AS_CUSTOMER_RECORD_VALUE: String = "loggedAsCustomer"
LOGGED_AS_CUSTOMER_RECORD_VALUE the value to use when the user is logging as customer
Link copied to clipboard
name the name of the user in that session
Link copied to clipboard
open var password: String
password the password of the user in that session
Link copied to clipboard
profilePicUrl the profile pic url of the user in that session
Link copied to clipboard
role the identifier of the user in that session
Link copied to clipboard
surname the surname of the user in that session
Link copied to clipboard
token the toke of the user in that session

Functions

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 isHostSet(): Boolean
Method to get whether the hostAddress has been set
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