NovaNotification

@Entity
open class NovaNotification : EquinoxItem

The NovaNotification class is useful to represent a Nova's notification

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxItem

Constructors

Link copied to clipboard
constructor()
Constructor to init the NovaNotification class No-any params required
constructor(jNotification: JSONObject)
Constructor to init the NovaNotification class
constructor(id: String, projectLogo: String, user: NovaUser, releaseId: String, status: Release.ReleaseStatus, releaseVersion: String, isSent: Boolean)
Constructor to init the NovaNotification class

Properties

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
val IS_SENT_KEY: String = "sent"
IS_SENT_KEY the key for the "sent" field
Link copied to clipboard
isSent whether the notification has been sent already before
Link copied to clipboard
val NOTIFICATIONS_KEY: String = "notifications"
NOTIFICATIONS_KEY the key for the "notifications" field
Link copied to clipboard
projectLogo the logo url of the related project
Link copied to clipboard
releaseId the identifier of the related release
Link copied to clipboard
releaseVersion the version of the related release
Link copied to clipboard
status the status of the related release
Link copied to clipboard
protected val timeFormatter: TimeFormatter
Link copied to clipboard
user the identifier of the user who the notification belong

Functions

Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open fun getProjectId(): String
Method to get the project identifier No-any params required
Link copied to clipboard
open fun returnNotificationsList(jNotifications: JSONArray): List<NovaNotification>
Method to assemble and return a List of notifications
Link copied to clipboard
open fun toString(): String