RefyLink

The RefyLink class is useful to represent a Refy's link

Author

N7ghtm4r3 - Tecknobit

N7ghtm4r3 - Tecknobit

See also

Inheritors

Constructors

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

Properties

Link copied to clipboard
collections the collections where the link is shared
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
val LINK_IDENTIFIER_KEY: String = "link_id"
LINK_IDENTIFIER_KEY the key for the "link_id" field
Link copied to clipboard
val LINK_KEY: String = "link"
LINK_KEY the key for the "link" field
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 REFERENCE_LINK_KEY: String = "reference_link"
REFERENCE_LINK_KEY the key for the "reference_link" field
Link copied to clipboard
protected val referenceLink: String
referenceLink the link reference value
Link copied to clipboard
protected val teams: List<Team>
teams the teams where the link 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 collections instance No-any params required
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 getOwner(): RefyUser
Method to get owner instance No-any params required
Link copied to clipboard
Method to get referenceLink 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 getTeams(): List<Team>
Method to get teams 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
open fun returnLinks(jLinks: JSONArray): ArrayList<RefyLink>
Method to assemble and return an ArrayList of links
Link copied to clipboard
open fun toString(): String