Artist

data class Artist(val id: String, val name: String, val cover: ImageHolder? = null, val bio: String? = null, val background: ImageHolder? = cover, val banners: List<ImageHolder> = listOf(), val subtitle: String? = null, val extras: Map<String, String> = mapOf(), val isRadioSupported: Boolean = true, val isFollowable: Boolean = true, val isSaveable: Boolean = true, val isLikeable: Boolean = false, val isHideable: Boolean = false, val isShareable: Boolean = true) : EchoMediaItem

A data class representing an artist

See also

Constructors

Link copied to clipboard
constructor(id: String, name: String, cover: ImageHolder? = null, bio: String? = null, background: ImageHolder? = cover, banners: List<ImageHolder> = listOf(), subtitle: String? = null, extras: Map<String, String> = mapOf(), isRadioSupported: Boolean = true, isFollowable: Boolean = true, isSaveable: Boolean = true, isLikeable: Boolean = false, isHideable: Boolean = false, isShareable: Boolean = true)

Properties

Link copied to clipboard
open override val background: ImageHolder?

The background image of the artist

Link copied to clipboard

The banners of the artist (not used yet)

Link copied to clipboard
val bio: String? = null

The bio of the artist

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

The cover image of the artist

Link copied to clipboard
open override val description: String?

A description of the media item, used to display additional information

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

Any extra data you want to associate with the artist

Link copied to clipboard
open override val id: String

The id of the artist

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

Whether the artist can be followed. Checkout FollowClient

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

Whether the artist can be hidden. Checkout HideClient

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

Whether the artist can be liked. Checkout LikeClient

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

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

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

Whether the artist can be saved to library. Checkout SaveClient

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

Whether the artist can be shared. Checkout ShareClient

Link copied to clipboard

The name of the artist

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

The subtitle of the artist, used to display information under the name

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 media item

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