Project

@Entity
open class Project : EquinoxItem, NotificationsTarget

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

Author

N7ghtm4r3 - Tecknobit

See also

Constructors

Link copied to clipboard
constructor()
Constructor to init the Project class No-any params required
constructor(jProject: JSONObject)
Constructor to init the Project class
constructor(id: String, author: NovaUser, logoUrl: String, name: String, projectMembers: List<NovaUser>, testers: HashSet<NovaUser>, releases: List<Release>, joiningQRCodes: List<JoiningQRCode>)
Constructor to init the Project class

Properties

Link copied to clipboard
author the author of the project
Link copied to clipboard
val AUTHOR_KEY: String = "author"
AUTHOR_KEY the key for the "author" field
Link copied to clipboard
Link copied to clipboard
protected val hItem: JsonHelper
Link copied to clipboard
protected val id: String
Link copied to clipboard
Link copied to clipboard
joiningQRCodes the joining QR-Codes created to join in this project
Link copied to clipboard
val LOGO_URL_KEY: String = "logo_url"
LOGO_URL_KEY the key for the "logo_url" field
Link copied to clipboard
logoUrl the logo of the project formatted as url
Link copied to clipboard
name the name of the project
Link copied to clipboard
val PROJECT_IDENTIFIER_KEY: String = "project_id"
PROJECT_IDENTIFIER_KEY the key for the "project_id" field
Link copied to clipboard
val PROJECT_KEY: String = "project"
PROJECT_KEY the key for the "project" field
Link copied to clipboard
val PROJECT_MEMBERS_KEY: String = "projectMembers"
PROJECT_MEMBERS_KEY the key for the "projectMembers" field
Link copied to clipboard
val PROJECT_MEMBERS_TABLE: String = "project_members"
PROJECT_MEMBERS_TABLE the key for the "project members" table
Link copied to clipboard
val PROJECT_NAME_KEY: String = "name"
PROJECT_NAME_KEY the key for the "name" field
Link copied to clipboard
val PROJECT_RELEASES_KEY: String = "project_releases"
PROJECT_RELEASES_KEY the key for the "project_releases" field
Link copied to clipboard
val PROJECT_TESTERS_KEY: String = "testers"
PROJECT_TESTERS_KEY the key for the "testers" field
Link copied to clipboard
val PROJECT_TESTERS_TABLE: String = "project_testers"
PROJECT_TESTERS_TABLE the key for the "project testers" table
Link copied to clipboard
projectMembers the members of the project
Link copied to clipboard
releases the releases of the project
Link copied to clipboard
open val testers: Set<NovaUser>
testers the testers of the project
Link copied to clipboard
protected val timeFormatter: TimeFormatter
Link copied to clipboard
val WORKING_PROGRESS_VERSION_KEY: String = "working_progress_version"
WORKING_PROGRESS_VERSION_KEY the key for the "working_progress_version" field

Functions

Link copied to clipboard
open fun amITheProjectAuthor(memberId: String): Boolean
Method to get whether a MEMBER_IDENTIFIER_KEY is the author of the current project
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open fun getMember(memberId: String): NovaUser
Method to get a project member, if exists, from the project
Link copied to clipboard
open fun getNotifications(notifications: List<NovaNotification>): Int
Method to count the notifications of a specific target
Link copied to clipboard
open fun getRelease(releaseId: String): Release
Method to get from current project a Release by its identifier
Link copied to clipboard
Method to get the "workingProgressVersion" No-any params required
Link copied to clipboard
open fun hasMemberEmail(memberEmail: String): Boolean
Method to get whether the checked project not contains a specified member's email
Link copied to clipboard
open fun hasMemberId(memberId: String): Boolean
Method to get whether a MEMBER_IDENTIFIER_KEY is a member of the checked project
Link copied to clipboard
open fun hasNotReleaseVersion(releaseVersion: String): Boolean
Method to get whether the checked project has the specified release version
Link copied to clipboard
open fun hasRelease(releaseId: String): Boolean
Method to get whether the checked project has the specified release
Link copied to clipboard
private open fun markProjectTesters(testers: HashSet<NovaUser>)
private open fun markProjectTesters(jTesters: JSONArray)
Method to mark the projectMembers of the project as Tester
Link copied to clipboard
open fun returnProjectInstance(jProject: JSONObject): Project
Method to assemble and return a Project instance
Link copied to clipboard
open fun returnProjectsList(jProjects: JSONArray): List<Project>
Method to assemble and return a List of projects
Link copied to clipboard
open fun toString(): String