Refy Link Impl

@Serializable
data class RefyLinkImpl(val id: String, val owner: RefyUser.RefyUserImpl, val title: String, val description: String, val date: Long, val reference: String, val teams: List<Team> = emptyList(), val collections: List<LinksCollection> = emptyList(), val thumbnailPreview: String? = null) : RefyLink

The RefyLinkImpl class is the implementation of the RefyLink interface

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(), thumbnailPreview: String? = null)

Properties

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

The collections where the links is shared

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
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 = "reference_link" )
open override val reference: String

The reference of the link

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

The teams where the links is shared

Link copied to clipboard
@SerialName(value = "thumbnail_preview" )
val thumbnailPreview: String?

The og:image metadata

Link copied to clipboard
open override val title: String

The title of the link

Functions

Link copied to clipboard
open fun iAmTheOwner(): Boolean

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