Custom Refy Link

@Serializable
data class CustomRefyLink(val id: String, val owner: RefyUser.RefyUserImpl, val title: String, val description: String, val date: Long, _reference: String, val teams: List<Team> = emptyList(), val collections: List<LinksCollection> = emptyList(), val uniqueAccess: Boolean, val expiredTime: ExpiredTime = NO_EXPIRATION, val fields: Map<String, String> = emptyMap(), val resources: Map<String, String>, val previewToken: String) : RefyLink

The CustomRefyLink represent a custom link used to share, for example, informations

Author

N7ghtm4r3 - Tecknobit

See also

Constructors

Link copied to clipboard
constructor(id: String, owner: RefyUser.RefyUserImpl, title: String, description: String, date: Long, _reference: String, teams: List<Team> = emptyList(), collections: List<LinksCollection> = emptyList(), uniqueAccess: Boolean, expiredTime: ExpiredTime = NO_EXPIRATION, fields: Map<String, String> = emptyMap(), resources: Map<String, String>, previewToken: String)

Properties

Link copied to clipboard
open override val collections: List<LinksCollection>

The collections where the links is shared (always empty)

Link copied to clipboard
open override val date: Long

The date when the link has been inserted in the system

Link copied to clipboard
open override val description: String

The description of the link

Link copied to clipboard
@SerialName(value = "expired_time" )
val expiredTime: ExpiredTime

The time when the link is considered expire and no more available

Link copied to clipboard

The fields used to protect the resource from unauthorised accesses

Link copied to clipboard
open override val id: String

The identifier of the link

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

The owner of the link

Link copied to clipboard
@SerialName(value = "preview_token" )
val previewToken: String

The token used to enter and view the link in preview mode

Link copied to clipboard
open override val reference: String

reference the reference of the link

Link copied to clipboard

The resources shared by the link

Link copied to clipboard
open override val teams: List<Team>

The teams where the links is shared (always empty)

Link copied to clipboard
open override val title: String

The title of the link

Link copied to clipboard
@SerialName(value = "unique_access" )
val uniqueAccess: Boolean

Whether the link is deleted after the first view

Functions

Link copied to clipboard

Method to get the expiration date of the link

Link copied to clipboard
open fun iAmTheOwner(): Boolean

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

Link copied to clipboard

Method to check whether the link is expired

Link copied to clipboard

Method to get the reference to access and view the link in preview mode