Playlist

data class Playlist(val id: String, val title: String, val isEditable: Boolean, val isPrivate: Boolean = true, val cover: ImageHolder? = null, val authors: List<Artist> = listOf(), val trackCount: Long? = null, val duration: Long? = null, val creationDate: Date? = null, val description: String? = null, val background: ImageHolder? = cover, val subtitle: String? = null, val extras: Map<String, String> = mapOf(), val isRadioSupported: Boolean = true, val isFollowable: Boolean = false, val isSaveable: Boolean = true, val isLikeable: Boolean = false, val isHideable: Boolean = false, val isShareable: Boolean = true) : EchoMediaItem.Lists

A data class representing a playlist

See also

Constructors

Link copied to clipboard
constructor(id: String, title: String, isEditable: Boolean, isPrivate: Boolean = true, cover: ImageHolder? = null, authors: List<Artist> = listOf(), trackCount: Long? = null, duration: Long? = null, creationDate: Date? = null, description: String? = null, background: ImageHolder? = cover, subtitle: String? = null, extras: Map<String, String> = mapOf(), isRadioSupported: Boolean = true, isFollowable: Boolean = false, isSaveable: Boolean = true, isLikeable: Boolean = false, isHideable: Boolean = false, isShareable: Boolean = true)

Properties

Link copied to clipboard
open override val artists: List<Artist>
Link copied to clipboard

The authors of the playlist

Link copied to clipboard
open override val background: ImageHolder?

The background image of the playlist

Link copied to clipboard
open override val cover: ImageHolder? = null

The cover image of the playlist

Link copied to clipboard
val creationDate: Date? = null

The creation date of the playlist

Link copied to clipboard
open override val date: Date?
Link copied to clipboard
open override val description: String? = null

The description of the playlist

Link copied to clipboard
open override val duration: Long? = null

The total duration of the playlist in milliseconds

Link copied to clipboard
open override val extras: Map<String, String>

Any extra data you want to associate with the playlist

Link copied to clipboard
open override val id: String

The id of the playlist

Link copied to clipboard

Whether the playlist is editable. Checkout PlaylistEditClient

Link copied to clipboard
Link copied to clipboard
open override val isFollowable: Boolean = false

Whether the playlist can be followed. Checkout FollowClient

Link copied to clipboard
open override val isHideable: Boolean = false

Whether the playlist can be hidden. Checkout HideClient

Link copied to clipboard
open override val isLikeable: Boolean = false

Whether the playlist can be liked. Checkout LikeClient

Link copied to clipboard
open override val isPrivate: Boolean = true

Whether the playlist is private. Checkout PlaylistEditPrivacyClient

Link copied to clipboard
open override val isRadioSupported: Boolean = true

Whether the playlist can be used to create a radio. Checkout RadioClient

Link copied to clipboard
open override val isSaveable: Boolean = true

Whether the playlist can be saved to library. Checkout SaveClient

Link copied to clipboard
open override val isShareable: Boolean = true

Whether the playlist can be shared. Checkout ShareClient

Link copied to clipboard
open val label: String?
Link copied to clipboard
open override val subtitle: String? = null

The subtitle of the playlist, used to display information under the title

Link copied to clipboard
open val subtitleWithE: <Error class: unknown class>
Link copied to clipboard
open override val subtitleWithOutE: String
Link copied to clipboard
open override val title: String

The title of the playlist

Link copied to clipboard
open override val trackCount: Long? = null

The total number of tracks in the playlist

Link copied to clipboard
open val type: Album.Type?

Functions

Link copied to clipboard
open fun copyMediaItem(id: String = this.id, title: String = this.title, cover: ImageHolder? = this.cover, description: String? = this.description, subtitle: String? = this.subtitle, extras: Map<String, String> = this.extras, isRadioSupported: Boolean = this.isRadioSupported, isFollowable: Boolean = this.isFollowable, isSaveable: Boolean = this.isSaveable): EchoMediaItem
Link copied to clipboard
open fun sameAs(other: EchoMediaItem): Boolean
Link copied to clipboard
open fun toShelf(): Shelf.Item