Team

@Entity
open class Team : RefyItem

The Team class is useful to represent a team

Author

N7ghtm4r3 - Tecknobit

N7ghtm4r3 - Tecknobit

See also

EquinoxItem

Constructors

Link copied to clipboard
constructor()
Constructor to init the Team class No-any params required
constructor(    id: String,     title: String,     author: RefyUser,     logoPic: String,     description: String,     date: Long,     members: List<Team.RefyTeamMember>,     links: List<RefyLink>,     collections: List<LinksCollection>)
Constructor to init the RefyItem class

Types

Link copied to clipboard
@Entity
open class RefyTeamMember
The RefyTeamMember class is useful to represent a member of a team

Properties

Link copied to clipboard
collections the collections shared with the team
Link copied to clipboard
protected val date: Long
date the date when the item has been inserted in the system
Link copied to clipboard
protected val description: String
description the description of the item
Link copied to clipboard
Link copied to clipboard
protected val hItem: JsonHelper
Link copied to clipboard
protected val id: String
Link copied to clipboard
links the links shared with the team
Link copied to clipboard
logoPic the logo picture of the team
Link copied to clipboard
members the members of the team
Link copied to clipboard
private open var membersMapping: HashSet<String>
membersMapping the map used by the hasMember method
Link copied to clipboard
protected val owner: RefyUser
owner the owner of the item
Link copied to clipboard
protected val timeFormatter: TimeFormatter
Link copied to clipboard
protected val title: String
title the title of the item

Functions

Link copied to clipboard
Method to get the ids of the collections
Link copied to clipboard
open fun getDate(): Long
Method to get date instance
Link copied to clipboard
open fun getDescription(): String
Method to get description instance
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open fun getLinkIds(): List<String>
Method to get the ids of the links
Link copied to clipboard
Method to get the ids of the members
Link copied to clipboard
open fun getOwner(): RefyUser
Method to get owner instance
Link copied to clipboard
open fun getTitle(): String
Method to get title instance
Link copied to clipboard
Method to get the first member who is a viewer
Link copied to clipboard
open fun hasAdmins(exceptId: String): Boolean
Method to get whether the team has admins
Link copied to clipboard
open fun hasMember(memberId: String): Boolean
Method to get whether a member is in the team
Link copied to clipboard
open fun hasMembers(): Boolean
Method to get whether the team has members apart the author
Link copied to clipboard
open fun isAdmin(memberId: String): Boolean
Method to get whether a member is an admin
Link copied to clipboard
open fun isTheAuthor(memberId: String): Boolean
Method to get whether a member is the team author
Link copied to clipboard
open fun isTheCollectionOwner(memberId: String, collectionId: String): Boolean
Method to check whether the member is the owner of the collection shared in the team
Link copied to clipboard
open fun isTheLinkOwner(memberId: String, linkId: String): Boolean
Method to check whether the member is the owner of the link shared in the team
Link copied to clipboard
open fun toString(): String