SimpleArtist

@Serializable
data class SimpleArtist(externalUrlsString: Map<String, String>, val href: String, val id: String, val uri: SpotifyUri, val name: String? = null, val type: String) : CoreObject(source)

Simplified Artist object that can be used to retrieve a full Artist

Parameters

href

A link to the Web API endpoint providing full details of the artist.

id

The Spotify ID for the artist.

name

The name of the artist

type

The object type: "artist"

Constructors

Link copied to clipboard
constructor(externalUrlsString: Map<String, String>, href: String, id: String, uri: SpotifyUri, name: String? = null, type: String)

Properties

Link copied to clipboard
@Transient
lateinit var api: GenericSpotifyApi

The API client associated with the request

Link copied to clipboard

Known external URLs for this object

Link copied to clipboard
open override val href: String
Link copied to clipboard
open override val id: String
Link copied to clipboard
val name: String? = null
Link copied to clipboard
Link copied to clipboard
open override val uri: SpotifyUri

The URI associated with the object

Functions

Link copied to clipboard
suspend fun toFullArtist(): Artist?

Converts this SimpleArtist into a full Artist object

Link copied to clipboard

Converts this SimpleArtist into a full Artist object