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

component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): String
component4
Link copied to clipboard
common
operator fun component4(): PlayableUri
component5
Link copied to clipboard
common
operator fun component5(): String
copy
Link copied to clipboard
common
fun copy(externalUrlsString: Map<String, String>, href: String, id: String, uri: PlayableUri, type: String): LinkedTrack
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
getMembersThatNeedApiInstantiation
Link copied to clipboard
common
open override fun getMembersThatNeedApiInstantiation(): List<NeedsApi?>
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
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
toString
Link copied to clipboard
common
open override fun toString(): String

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

(source)
Link copied to clipboard