Link

constructor(href: Href, mediaType: MediaType? = null, title: String? = null, rels: Set<String> = setOf(), properties: Properties = Properties(), height: Int? = null, width: Int? = null, bitrate: Double? = null, duration: Double? = null, languages: List<String> = listOf(), alternates: List<Link> = listOf(), children: List<Link> = listOf())

Parameters

href

URI or URI template of the linked resource.

mediaType

Media type of the linked resource.

title

Title of the linked resource.

rels

Relation between the linked resource and its containing collection.

properties

Properties associated to the linked resource.

height

Height of the linked resource in pixels.

width

Width of the linked resource in pixels.

bitrate

Bitrate of the linked resource in kbps.

duration

Length of the linked resource in seconds.

languages

Expected language of the linked resource (BCP 47 tag).

alternates

Alternate resources for the linked resource.

children

Resources that are children of the linked resource, in the context of a given collection role.


constructor(href: Url, mediaType: MediaType? = null, title: String? = null, rels: Set<String> = setOf(), properties: Properties = Properties(), alternates: List<Link> = listOf(), children: List<Link> = listOf())

Convenience constructor for a Link with a Url as href.