Playlist

@Serializable
data class Playlist(externalUrlsString: Map<String, String>, val href: String, val id: String, val uri: PlaylistUri, val collaborative: Boolean, val description: String? = null, val followers: Followers, val primaryColor: String? = null, val images: List<SpotifyImage>? = null, val name: String, val owner: SpotifyPublicUser, val public: Boolean? = null, snapshotIdString: String, val tracks: PagingObject<PlaylistTrack>, val type: String) : CoreObject(source)

Represents a Playlist on Spotify

Parameters

collaborative

Returns true if context is not search and the owner allows other users to modify the playlist. Otherwise returns false.

description

The playlist description. Only returned for modified, verified playlists, otherwise null.

followers
href

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

id

The Spotify ID for the playlist.

primaryColor

Unknown.

images

Images for the playlist. The array may be empty or contain up to three images. The images are returned by size in descending order.Note: If returned, the source URL for the image ( url ) is temporary and will expire in less than a day.

name

The name of the playlist.

owner

The user who owns the playlist

public

The playlist’s public/private status: true the playlist is public, false the playlist is private, null the playlist status is not relevant a specific playlist version

tracks

Information about the tracks of the playlist.

type

The object type: “playlist”

Constructors

Link copied to clipboard
constructor(externalUrlsString: Map<String, String>, href: String, id: String, uri: PlaylistUri, collaborative: Boolean, description: String? = null, followers: Followers, primaryColor: String? = null, images: List<SpotifyImage>? = null, name: String, owner: SpotifyPublicUser, public: Boolean? = null, snapshotIdString: String, tracks: PagingObject<PlaylistTrack>, type: String)

Properties

Link copied to clipboard
@Transient
lateinit var api: GenericSpotifyApi

The API client associated with the request

Link copied to clipboard
Link copied to clipboard
val description: String? = null
Link copied to clipboard

Known external URLs for this object

Link copied to clipboard
Link copied to clipboard
open override val href: String
Link copied to clipboard
open override val id: String
Link copied to clipboard
val images: List<SpotifyImage>? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "primary_color")
val primaryColor: String? = null
Link copied to clipboard
val public: Boolean? = null
Link copied to clipboard

The version identifier for the current playlist. Can be supplied in other requests to target

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val uri: PlaylistUri

The URI associated with the object

Functions