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, members: List<Team.RefyTeamMember>, links: List<RefyLink>, collections: List<LinksCollection>)
Constructor to init the RefyItem class
constructor(jTeam: JSONObject)
Constructor to init the Team 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
val COLLECTIONS_TEAMS_TABLE: String = "collections_teams"
COLLECTIONS_TEAMS_TABLE the key for the "collections_teams" table
Link copied to clipboard
protected val description: String
description the description of the item
Link copied to clipboard
val DESCRIPTION_KEY: String = "description"
DESCRIPTION_KEY the key for the "description" field
Link copied to clipboard
Link copied to clipboard
protected val hItem: JsonHelper
Link copied to clipboard
protected val id: String
Link copied to clipboard
Link copied to clipboard
links the links shared with the team
Link copied to clipboard
val LOGO_PIC_KEY: String = "logo_pic"
LOGO_PIC_KEY the key for the "logo_pic" field
Link copied to clipboard
logoPic the logo picture of the team
Link copied to clipboard
MAX_TEAMS_DISPLAYED number of teams displayed
Link copied to clipboard
members the members of the team
Link copied to clipboard
val MEMBERS_KEY: String = "members"
members the key for the "members" field
Link copied to clipboard
private open var membersMapping: HashSet<String>
membersMapping the map used by the hasMember method
Link copied to clipboard
val OWNED_ONLY_KEY: String = "owned_only"
OWNED_ONLY_KEY the key for the "owned_only" field
Link copied to clipboard
protected val owner: RefyUser
owner the owner of the item
Link copied to clipboard
val OWNER_KEY: String = "owner"
OWNER_KEY the key for the "owner" field
Link copied to clipboard
val SOURCE_TEAM_KEY: String = "sourceTeam"
SOURCE_TEAM_KEY the key for the "sourceTeam" field
Link copied to clipboard
val TEAM_IDENTIFIER_KEY: String = "team_id"
TEAM_IDENTIFIER_KEY the key for the "team_id" field
Link copied to clipboard
val TEAM_KEY: String = "team"
TEAM_KEY the key for the "team" field
Link copied to clipboard
val TEAMS_LINKS_TABLE: String = "teams_links"
TEAMS_LINKS_TABLE the key for the "teams_links" table
Link copied to clipboard
protected val timeFormatter: TimeFormatter
Link copied to clipboard
protected val title: String
title the title of the item
Link copied to clipboard
val TITLE_KEY: String = "title"
TITLE_KEY the key for the "title" field

Functions

Link copied to clipboard
Method to get the ids of the collections No-any params required
Link copied to clipboard
Method to get description instance No-any params required
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 No-any params required
Link copied to clipboard
Method to get the ids of the members No-any params required
Link copied to clipboard
open fun getOwner(): RefyUser
Method to get owner instance No-any params required
Link copied to clipboard
open fun getTitle(): String
Method to get title instance No-any params required
Link copied to clipboard
Method to get the first member who is a viewer No-any params required
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 No-any params required
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 returnTeams(jTeams: JSONArray): ArrayList<Team>
Method to assemble and return an ArrayList of teams
Link copied to clipboard
open fun toString(): String