LinkedTrack

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

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

LinkedTrack
Link copied to clipboard
common
fun LinkedTrack(externalUrlsString: Map<String, String>, href: String, id: String, uri: PlayableUri, type: String)
A link to the Web API endpoint providing full details of the track.

Functions

getMembersThatNeedApiInstantiation
Link copied to clipboard
common
open override fun getMembersThatNeedApiInstantiation(): List<NeedsApi?>
toFullTrack
Link copied to clipboard
common
suspend fun toFullTrack(market: Market? = null): Track?
Retrieves the full Track object associated with this LinkedTrack with the given market
toFullTrackRestAction
Link copied to clipboard
common
fun toFullTrackRestAction(market: Market? = null): SpotifyRestAction<Track?>
Converts this SimpleTrack into a full Track object with the given market

Properties

api
Link copied to clipboard
common
lateinit var api: GenericSpotifyApi
The API client associated with the request
externalUrls
Link copied to clipboard
common
val externalUrls: List<ExternalUrl>
Known external URLs for this object
href
Link copied to clipboard
common
open override val href: String
A link to the Web API endpoint providing full details of the track.
id
Link copied to clipboard
common
open override val id: String
The Spotify ID for the track.
type
Link copied to clipboard
common
val type: String
The object type: “track”.
uri
Link copied to clipboard
common
open override val uri: PlayableUri
The URI associated with the object

Sources

common source
Link copied to clipboard