Album
data class Album(val id: String, val title: String, val type: Album.Type? = null, val cover: ImageHolder? = null, val artists: List<Artist> = listOf(), val trackCount: Long? = null, val duration: Long? = null, val releaseDate: Date? = null, val description: String? = null, val background: ImageHolder? = cover, val label: String? = null, val isExplicit: Boolean = false, 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 an album
See also
Constructors
Link copied to clipboard
constructor(id: String, title: String, type: Album.Type? = null, cover: ImageHolder? = null, artists: List<Artist> = listOf(), trackCount: Long? = null, duration: Long? = null, releaseDate: Date? = null, description: String? = null, background: ImageHolder? = cover, label: String? = null, isExplicit: Boolean = false, 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)
Types
Link copied to clipboard
The type of the album. This can be actual album types like PreRelease, Single, EP, LP, Compilation or Special types like :
Properties
Link copied to clipboard
The background image of the album
Link copied to clipboard
The cover image of the album
Link copied to clipboard
The description of the album
Link copied to clipboard
Whether the album is explicit
Link copied to clipboard
Whether the album can be followed. Checkout FollowClient
Link copied to clipboard
Whether the album can be hidden. Checkout HideClient
Link copied to clipboard
Whether the album can be liked. Checkout LikeClient
Link copied to clipboard
Whether the album can be used to create a radio. Checkout RadioClient
Link copied to clipboard
Whether the album can be saved to library. Checkout SaveClient
Link copied to clipboard
Whether the album can be shared. Checkout ShareClient
Link copied to clipboard
The release date of the album
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The total number of tracks in the album
Link copied to clipboard
The Type of the album.
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
Link copied to clipboard