LinkedTrack

@Serializable
data class LinkedTrack(externalUrlsString: Map<String, String>, val href: String, val id: String, val uri: PlayableUri, val type: String) : CoreObject(source)

Represents a relinked track. This is playable in the searched market. If null, the API result is playable in the market.

Parameters

href

A link to the Web API endpoint providing full details of the track.

id

The Spotify ID for the track.

type

The object type: “track”.

Constructors

Link copied to clipboard
constructor(externalUrlsString: Map<String, String>, href: String, id: String, uri: PlayableUri, type: String)

Properties

Link copied to clipboard
@Transient
lateinit var api: GenericSpotifyApi

The API client associated with the request

Link copied to clipboard

Known external URLs for this object

Link copied to clipboard
open override val href: String
Link copied to clipboard
open override val id: String
Link copied to clipboard
Link copied to clipboard
open override val uri: PlayableUri

The URI associated with the object

Functions

Link copied to clipboard
suspend fun toFullTrack(market: Market? = null): Track?

Retrieves the full Track object associated with this LinkedTrack with the given market

Link copied to clipboard

Converts this SimpleTrack into a full Track object with the given market