Project

@Serializable
data class Project(val id: String, val name: String, val icon: String? = null, val creationDate: Long, val author: PandoroUser, val description: String, val version: String, val groups: List<Group> = emptyList(), val updates: List<ProjectUpdate> = emptyList(), val projectRepo: String = "")

The Project data class allow to represent a project data

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor(id: String, name: String, icon: String? = null, creationDate: Long, author: PandoroUser, description: String, version: String, groups: List<Group> = emptyList(), updates: List<ProjectUpdate> = emptyList(), projectRepo: String = "")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The author of the project

Link copied to clipboard
@SerialName
val creationDate: Long

The date when the project has been created

Link copied to clipboard
@SerialName
val description: String

The description of the project

Link copied to clipboard
@SerialName
val groups: List<Group>

The groups where the project is shared

Link copied to clipboard
@SerialName
val icon: String? = null

The icon of the project

Link copied to clipboard
val id: String

The identifier of the project

Link copied to clipboard

The name of the project

Link copied to clipboard
@SerialName
val projectRepo: String

The repository of the project

Link copied to clipboard
@SerialName
val updates: List<ProjectUpdate>

The list of the updates attached to the project

Link copied to clipboard
@SerialName
val version: String

The current latest version available of the project

Functions

Link copied to clipboard

Method to check whether the localUser is the author of the project

Link copied to clipboard

Method to calculate the average development days spent to publish the updates of the project

Link copied to clipboard

Method to calculate the total development days spent to publish the updates of the project

Link copied to clipboard

Method to extract from the updates list that updates that are PUBLISHED

Link copied to clipboard
fun getRepositoryPlatform(): <Error class: unknown class>?

Method to get the related platform based on the projectRepo value

Link copied to clipboard

Method to check whether the project is shared with any groups