Playlist

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

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

Playlist
Link copied to clipboard
common
fun Playlist(externalUrlsString: Map<String, String>, href: String, id: String, uri: PlaylistUri, collaborative: Boolean, description: String? = null, followers: Followers, primaryColor: String? = null, images: List<SpotifyImage>, name: String, owner: SpotifyPublicUser, public: Boolean? = null, snapshotIdString: String, tracks: PagingObject<PlaylistTrack>, type: String)
Returns true if context is not search and the owner allows other users to modify the playlist.

Functions

getMembersThatNeedApiInstantiation
Link copied to clipboard
common
open override fun getMembersThatNeedApiInstantiation(): List<NeedsApi?>

Properties

api
Link copied to clipboard
common
lateinit var api: GenericSpotifyApi
The API client associated with the request
collaborative
Link copied to clipboard
common
val collaborative: Boolean
Returns true if context is not search and the owner allows other users to modify the playlist.
description
Link copied to clipboard
common
val description: String? = null
The playlist description.
externalUrls
Link copied to clipboard
common
val externalUrls: List<ExternalUrl>
Known external URLs for this object
followers
Link copied to clipboard
common
val followers: Followers
href
Link copied to clipboard
common
open override val href: String
A link to the Web API endpoint providing full details of the playlist.
id
Link copied to clipboard
common
open override val id: String
The Spotify ID for the playlist.
images
Link copied to clipboard
common
val images: List<SpotifyImage>
Images for the playlist.
name
Link copied to clipboard
common
val name: String
The name of the playlist.
owner
Link copied to clipboard
common
val owner: SpotifyPublicUser
The user who owns the playlist
primaryColor
Link copied to clipboard
common
val primaryColor: String? = null
Unknown.
public
Link copied to clipboard
common
val public: Boolean? = null
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
snapshot
Link copied to clipboard
common
val snapshot: PlaylistSnapshot
The version identifier for the current playlist.
tracks
Link copied to clipboard
common
val tracks: PagingObject<PlaylistTrack>
Information about the tracks of the playlist.
type
Link copied to clipboard
common
val type: String
The object type: “playlist”
uri
Link copied to clipboard
common
open override val uri: PlaylistUri
The URI associated with the object

Sources

common source
Link copied to clipboard