Release

@Entity
open class Release : EquinoxItem, NotificationsTarget

The Release class is useful to represent a Nova's release

Author

N7ghtm4r3 - Tecknobit

See also

Constructors

Link copied to clipboard
constructor()
Constructor to init the Release class No-any params required
constructor(jRelease: JSONObject)
Constructor to init the Release class
constructor(id: String, project: Project, releaseVersion: String, status: Release.ReleaseStatus, releaseNotes: String, creationDate: Long, releaseEvents: List<ReleaseEvent>, approbationDate: Long)
Constructor to init the Release class

Types

Link copied to clipboard
ReleaseStatus list of possible statuses of a release

Properties

Link copied to clipboard
ALLOWED_ASSETS_TYPE list of allowed type to upload as assets
Link copied to clipboard
val APPROBATION_DATE_KEY: String = "approbation_date"
APPROBATION_DATE_KEY the key for the "approbation_date" field
Link copied to clipboard
private val approbationDate: Long
approbationDate the date when the release has been approved
Link copied to clipboard
val CREATION_DATE_KEY: String = "creation_date"
CREATION_DATE_KEY the key for the "creation_date" field
Link copied to clipboard
private val creationDate: Long
creationDate the date when the release has been created
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
project the project where the release is linked
Link copied to clipboard
val RELEASE_EVENTS_KEY: String = "release_events"
RELEASE_EVENTS_KEY the key for the "release_events" field
Link copied to clipboard
val RELEASE_IDENTIFIER_KEY: String = "release_id"
RELEASE_IDENTIFIER_KEY the key for the "release_id" field
Link copied to clipboard
val RELEASE_KEY: String = "release"
RELEASE_KEY the key for the "release" field
Link copied to clipboard
RELEASE_NOTES_CONTENT_KEY the key for the "content" field
Link copied to clipboard
val RELEASE_NOTES_KEY: String = "release_notes"
RELEASE_NOTES_KEY the key for the "release_notes" field
Link copied to clipboard
val RELEASE_REPORT_PATH: String = "releaseReport"
RELEASE_REPORT_PATH path to reach the report of the release
Link copied to clipboard
val RELEASE_STATUS_KEY: String = "release_status"
RELEASE_STATUS_KEY the key for the "release_status" field
Link copied to clipboard
val RELEASE_VERSION_KEY: String = "release_version"
RELEASE_VERSION_KEY the key for the "release_version" field
Link copied to clipboard
releaseEvents list of the events occurred on the release
Link copied to clipboard
releaseNotes the notes attached to the release
Link copied to clipboard
val RELEASES_KEY: String = "releases"
RELEASES_KEY the key for the "releases" field
Link copied to clipboard
releaseVersion the version of the release
Link copied to clipboard
status the current status of the release
Link copied to clipboard
protected val timeFormatter: TimeFormatter

Functions

Link copied to clipboard
Method to get approbationDate instance No-any params required
Link copied to clipboard
Method to get approbationDate instance No-any params required
Link copied to clipboard
Method to get creationDate instance No-any params required
Link copied to clipboard
Method to get creationDate instance No-any params required
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open fun getLastEvent(): Long
Method to get the last event occurred No-any params required
Link copied to clipboard
Method to get the last promotion event occurred in the current release No-any params required
Link copied to clipboard
open fun getNotifications(notifications: List<NovaNotification>): Int
Method to count the notifications of a specific target
Link copied to clipboard
Method to get the specific asset uploading event
Link copied to clipboard
Method to get the specific rejected event
Link copied to clipboard
open fun isLastEvent(event: ReleaseEvent): Boolean
Method to get whether a generic event is the latest occurred
Link copied to clipboard
open fun returnReleasesList(jReleases: JSONArray): List<Release>
Method to assemble and return a List of releases
Link copied to clipboard
open fun toString(): String