PlaylistTrack

@Serializable
data class PlaylistTrack(val primaryColor: String? = null, val addedAt: String? = null, val addedBy: SpotifyPublicUser? = null, val isLocal: Boolean? = null, val track: Playable? = null, val videoThumbnail: VideoThumbnail? = null)(source)

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

Link copied to clipboard
constructor(primaryColor: String? = null, addedAt: String? = null, addedBy: SpotifyPublicUser? = null, isLocal: Boolean? = null, track: Playable? = null, videoThumbnail: VideoThumbnail? = null)

Properties

Link copied to clipboard
@SerialName(value = "added_at")
val addedAt: String? = null
Link copied to clipboard
@SerialName(value = "added_by")
val addedBy: SpotifyPublicUser? = null
Link copied to clipboard
@SerialName(value = "is_local")
val isLocal: Boolean? = null
Link copied to clipboard
@SerialName(value = "primary_color")
val primaryColor: String? = null
Link copied to clipboard
@Serializable(with = PlayableSerializer::class)
val track: Playable? = null
Link copied to clipboard
@SerialName(value = "video_thumbnail")
val videoThumbnail: VideoThumbnail? = null