Group

@Serializable
data class Group(val id: String, val name: String, val logo: String, val creationDate: Long, val author: PandoroUser, val description: String, val members: List<GroupMember>, val projects: List<Project> = emptyList())

The Group data class allow to represent a group data

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor(id: String, name: String, logo: String, creationDate: Long, author: PandoroUser, description: String, members: List<GroupMember>, projects: List<Project> = emptyList())

Properties

Link copied to clipboard

The author of the group

Link copied to clipboard
@SerialName
val creationDate: Long

The date when the group has been created

Link copied to clipboard
@SerialName
val description: String

The description of the group

Link copied to clipboard
val id: String

The identifier of the group

Link copied to clipboard

The logo of the group

Link copied to clipboard
@SerialName
val members: List<GroupMember>

The members list of the group

Link copied to clipboard

The name of the group

Link copied to clipboard
@SerialName
val projects: List<Project>

The projects list shared with the group

Functions

Link copied to clipboard

Method to check whether the member can execute some actions based his/her role

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

Method to find the role in the group of the localUser

Link copied to clipboard

Method to check whether the localUser is a MAINTAINER of the group

Link copied to clipboard

Method to check whether the localUser is a ADMIN of the group

Link copied to clipboard

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