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

component10
Link copied to clipboard
common
operator fun component10(): String
component11
Link copied to clipboard
common
operator fun component11(): SpotifyPublicUser
component12
Link copied to clipboard
common
operator fun component12(): Boolean?
component14
Link copied to clipboard
common
operator fun component14(): PagingObject<PlaylistTrack>
component15
Link copied to clipboard
common
operator fun component15(): String
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(): PlaylistUri
component5
Link copied to clipboard
common
operator fun component5(): Boolean
component6
Link copied to clipboard
common
operator fun component6(): String?
component7
Link copied to clipboard
common
operator fun component7(): Followers
component8
Link copied to clipboard
common
operator fun component8(): String?
component9
Link copied to clipboard
common
operator fun component9(): List<SpotifyImage>
copy
Link copied to clipboard
common
fun copy(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): Playlist
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
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
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

(source)
Link copied to clipboard