Team

@Serializable
data class Team(val id: String, val owner: RefyUser.RefyUserImpl, val title: String, val description: String, val date: Long, _logoPic: String, val members: List<TeamMember>, val links: List<RefyLink.RefyLinkImpl> = emptyList(), val collections: List<LinksCollection> = emptyList()) : RefyItem

The Team data class represent a team

Author

N7ghtm4r3 - Tecknobit

See also

Constructors

Link copied to clipboard
constructor(id: String, owner: RefyUser.RefyUserImpl, title: String, description: String, date: Long, _logoPic: String, members: List<TeamMember>, links: List<RefyLink.RefyLinkImpl> = emptyList(), collections: List<LinksCollection> = emptyList())

Properties

Link copied to clipboard

The collections shared with team

Link copied to clipboard
open override val date: Long

The date when the collection has been inserted in the system

Link copied to clipboard
open override val description: String

The description of the team

Link copied to clipboard
open override val id: String

The identifier of the team

Link copied to clipboard

The links shared with team

Link copied to clipboard

logoPic the logo pic of the team

Link copied to clipboard

The members joined in the team

Link copied to clipboard
open override val owner: RefyUser.RefyUserImpl

The owner of the team

Link copied to clipboard
open override val title: String

The title of the team

Functions

Link copied to clipboard
fun findMyRole(): TeamRole

Method to find the role of the localUser inside the team

Link copied to clipboard

Method to check whether the localUser is an TeamRole.ADMIN of the team

Link copied to clipboard
open fun iAmTheOwner(): Boolean

Method used to determine if the current localUser is the owner of the item