Project

@Entity
open class Project : PandoroItem

The Project class is useful to create a Pandoro's project

Author

N7ghtm4r3 - Tecknobit

See also

Constructors

Link copied to clipboard
constructor()
Default constructor
constructor(id: String, name: String, icon: String, creationDate: Long, author: PandoroUser, description: String, version: String, groups: ArrayList<Group>, updates: ArrayList<ProjectUpdate>, projectRepo: String)
Constructor to init a Project object

Properties

Link copied to clipboard
author author of the project
Link copied to clipboard
private val creationDate: Long
creationDate when the project has been created
Link copied to clipboard
description description of the project
Link copied to clipboard
Link copied to clipboard
private val groups: List<Group>
groups groups where the project has been assigned
Link copied to clipboard
protected val hItem: JsonHelper
Link copied to clipboard
protected val icon: String
icon the icon of the project
Link copied to clipboard
protected val id: String
Link copied to clipboard
Link copied to clipboard
protected val name: String
name of the item
Link copied to clipboard
projectRepo the project_repository of the project
Link copied to clipboard
protected val timeFormatter: TimeFormatter
Link copied to clipboard
private open var updates: List<ProjectUpdate>
updates updates of the project
Link copied to clipboard
project_version last update project_version

Functions

Link copied to clipboard
Method to get the average time for an update of the project
Link copied to clipboard
open fun getCreation(): Long
Method to get creationDate instance
Link copied to clipboard
Method to get groups instance
Link copied to clipboard
open fun getIcon(): String
Method to get icon instance
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open fun getName(): String
Method to get name instance
Link copied to clipboard
Method to get the published updates
Link copied to clipboard
Method to get the total development days for the project
Link copied to clipboard
Method to get updates instance
Link copied to clipboard
open fun hasGroups(): Boolean
Method to whether the project is in any Group
Link copied to clipboard
open fun setUpdates(updates: List<ProjectUpdate>)
Method to set the updates instance
Link copied to clipboard
open fun toString(): String