LinksCollection

The LinksCollection class is useful to represent a collection of links

Author

N7ghtm4r3 - Tecknobit

N7ghtm4r3 - Tecknobit

See also

Constructors

Link copied to clipboard
constructor()
Constructor to init the LinksCollection class No-any params required
constructor(id: String, owner: RefyUser, title: String, color: String, description: String, teams: List<Team>, links: List<RefyLink>)
Constructor to init the RefyItem class
constructor(jLinksCollection: JSONObject)
Constructor to init the LinksCollection class

Properties

Link copied to clipboard
val COLLECTION_COLOR_KEY: String = "collection_color"
COLLECTION_COLOR_KEY the key for the "collection_color" field
Link copied to clipboard
val COLLECTION_IDENTIFIER_KEY: String = "collection_id"
COLLECTION_IDENTIFIER_KEY the key for the "collection_id" field
Link copied to clipboard
val COLLECTIONS_KEY: String = "collections"
COLLECTIONS_KEY the key for the "collections" field
Link copied to clipboard
val COLLECTIONS_LINKS_TABLE: String = "collections_links"
COLLECTIONS_LINKS_TABLE the key for the "collections_links" field
Link copied to clipboard
color the color of the collection
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 contained by the collection
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
teams the teams where the collection is shared
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
open fun canBeUpdatedByUser(loggedUserId: String): Boolean
Method to check if the user can update the current item
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 getInstance(jCollection: JSONObject): LinksCollection
Method to assemble and return a LinksCollection instance
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
open fun getOwner(): RefyUser
Method to get owner instance No-any params required
Link copied to clipboard
open fun getTeamIds(): List<String>
Method to get the ids of the teams 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
open fun hasTeams(): Boolean
Method to get whether the collection is shared in any teams No-any params required
Link copied to clipboard
open fun returnCollections(jCollections: JSONArray): ArrayList<LinksCollection>
Method to assemble and return an ArrayList of collection
Link copied to clipboard
open fun toString(): String