PlaylistTrack

data class PlaylistTrack(primaryColor: String?, addedAt: String?, addedBy: SpotifyPublicUser?, isLocal: Boolean?, track: Playable?, videoThumbnail: VideoThumbnail?)

Represents a Spotify track inside a Playlist

Parameters

primaryColor

Unknown. Undocumented field

addedAt

The date and time the track was added. Note that some very old playlists may return null in this field.

addedBy

The Spotify user who added the track. Note that some very old playlists may return null in this field.

isLocal

Whether this track is a local file or not.

track

Information about the track. In rare occasions, this field may be null if this track's API entry is broken. Warning: if this is a podcast, the track will be null if you are using SpotifyAppApi.

Constructors

PlaylistTrack
Link copied to clipboard
common
fun PlaylistTrack(primaryColor: String? = null, addedAt: String? = null, addedBy: SpotifyPublicUser? = null, isLocal: Boolean? = null, track: Playable? = null, videoThumbnail: VideoThumbnail? = null)
Unknown.

Functions

component1
Link copied to clipboard
common
operator fun component1(): String?
component2
Link copied to clipboard
common
operator fun component2(): String?
component3
Link copied to clipboard
common
operator fun component3(): SpotifyPublicUser?
component4
Link copied to clipboard
common
operator fun component4(): Boolean?
component5
Link copied to clipboard
common
operator fun component5(): Playable?
component6
Link copied to clipboard
common
operator fun component6(): VideoThumbnail?
copy
Link copied to clipboard
common
fun copy(primaryColor: String? = null, addedAt: String? = null, addedBy: SpotifyPublicUser? = null, isLocal: Boolean? = null, track: Playable? = null, videoThumbnail: VideoThumbnail? = null): PlaylistTrack
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

addedAt
Link copied to clipboard
common
val addedAt: String? = null
The date and time the track was added.
addedBy
Link copied to clipboard
common
val addedBy: SpotifyPublicUser? = null
The Spotify user who added the track.
isLocal
Link copied to clipboard
common
val isLocal: Boolean? = null
Whether this track is a local file or not.
primaryColor
Link copied to clipboard
common
val primaryColor: String? = null
Unknown.
track
Link copied to clipboard
common
val track: Playable? = null
Information about the track.
videoThumbnail
Link copied to clipboard
common
val videoThumbnail: VideoThumbnail? = null

Sources

(source)
Link copied to clipboard