OpenAPI-Android

com.kkbox.openapideveloper / com.kkbox.openapideveloper.api / ArtistFetcher

ArtistFetcher

class ArtistFetcher

Get artist metadata.

Constructors

<init> ArtistFetcher(httpClient: HttpClient, territory: String = "TW")
Creates an artist fetcher.

Properties

artistId lateinit var artistId: String

Functions

fetchAlbums fun fetchAlbums(limit: Int? = null, offset: Int? = null): ResponseFuture<JsonObject>
Fetch albums belong to an artist.
fetchMetadata fun fetchMetadata(): ResponseFuture<JsonObject>
Fetches metadata of an artist.
fetchTopTracks fun fetchTopTracks(limit: Int? = null, offset: Int? = null): ResponseFuture<JsonObject>
Fetch top tracks belong to an artist.
setArtistId fun setArtistId(artistId: String): ArtistFetcher
Init the artist object.