JoiningQRCode

@Entity
open class JoiningQRCode : EquinoxItem

The JoiningQRCode class is useful to represent a Nova's joining QRCode to join in a Project

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxItem

Constructors

Link copied to clipboard
constructor()
Constructor to init the JoiningQRCode class No-any params required
constructor(QRCodeId: String, project: Project, invitedMembers: HashMap<String, NovaUser.Role>, creationDate: Long, joinCode: String)
Constructor to init the JoiningQRCode class
constructor(jJoiningQRCode: JSONObject)
Constructor to init the JoiningQRCode class

Properties

Link copied to clipboard
val CREATE_JOIN_CODE_KEY: String = "createJoinCode"
CREATE_JOIN_CODE_KEY the key for the "createJoinCode" flag
Link copied to clipboard
creationDate the date of the creation of the joining qrcode
Link copied to clipboard
Link copied to clipboard
val EXPIRED_JOINING_QRCODE_MESSAGE: String = "invalid_code_key"
WRONG_NAME_MESSAGE error message used when the joining qr code is expired
Link copied to clipboard
protected val hItem: JsonHelper
Link copied to clipboard
protected val id: String
Link copied to clipboard
Link copied to clipboard
invitedMembers the list of emails allowed to use the joining qrcode to join in the project
Link copied to clipboard
val JOIN_CODE_KEY: String = "join_code"
JOIN_CODE_KEY the key for the "join_code" field
Link copied to clipboard
joinCode textual join code e.g.
Link copied to clipboard
val JOINING_QRCODES_KEY: String = "joiningQrcodes"
JOINING_QRCODES_KEY the key for the "joiningQrcodes" field
Link copied to clipboard
val JOINING_QRCODES_MEMBERS_KEY: String = "joining_qrcode_members"
JOINING_QRCODES_MEMBERS_KEY the key for the "joining_qrcode_members" field
Link copied to clipboard
val JOINING_QRCODES_TABLE: String = "joining_qrcodes"
JOINING_QRCODES_TABLE the key for the "joining_qrcodes" table
Link copied to clipboard
project the project attached to the joining qrcode
Link copied to clipboard
protected val timeFormatter: TimeFormatter

Functions

Link copied to clipboard
Method to get whether a member is invited, so allowed to join in a Project, with the current joining code
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open fun getShareLink(currentHostAddress: String): String
Method to get the share link for the current joining QR-Code
Link copied to clipboard
open fun isValid(): Boolean
Method to get whether the joining qrcode is valid and not expired No-any params required
Link copied to clipboard
open fun toString(): String