Update

@Serializable
data class Update(val id: String, val author: GroupMember, val creationDate: Long, val targetVersion: String, val status: UpdateStatus, val startedBy: GroupMember? = null, val startDate: Long = -1, val publishedBy: GroupMember? = null, val publishDate: Long = -1, val notes: List<Note>, val events: List<UpdateEvent>)

The Update data class allow to represent a update data

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor(id: String, author: GroupMember, creationDate: Long, targetVersion: String, status: UpdateStatus, startedBy: GroupMember? = null, startDate: Long = -1, publishedBy: GroupMember? = null, publishDate: Long = -1, notes: List<Note>, events: List<UpdateEvent>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The author of update project

Link copied to clipboard
@SerialName(value = "create_date")
val creationDate: Long

The date when the update has been scheduled

Link copied to clipboard

The events occurred during the lifecycle of the update

Link copied to clipboard
val id: String

The identifier of the update

Link copied to clipboard

The attached change notes list

Link copied to clipboard
@SerialName(value = "publish_date")
val publishDate: Long

The date when the update has been published

Link copied to clipboard
@SerialName(value = "published_by")
val publishedBy: GroupMember?

The user who publish the update

Link copied to clipboard
@SerialName(value = "start_date")
val startDate: Long

The date when the update has been started

Link copied to clipboard
@SerialName(value = "started_by")
val startedBy: GroupMember?

The user who start the update

Link copied to clipboard
val status: UpdateStatus

The current status of the update

Link copied to clipboard
@SerialName(value = "target_version")
val targetVersion: String

The version to reach with this update

Functions

Link copied to clipboard

Method to check whether all the notes attached are completed

Link copied to clipboard

Method to count all the completed notes

Link copied to clipboard

Method to count the current development days spent