OpenAPI-Android

com.kkbox.openapideveloper / com.kkbox.openapideveloper.api / AlbumFetcher

AlbumFetcher

class AlbumFetcher

Get metadata and tracks of an album.

Constructors

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

Properties

albumId lateinit var albumId: String

Functions

fetchMetadata fun fetchMetadata(): ResponseFuture<JsonObject>
Fetches metadata of an album by given ID.
fetchTracks fun fetchTracks(limit: Int? = null, offset: Int? = null): ResponseFuture<JsonObject>
Fetches tracks in an album by given ID.
getWidgetUri fun getWidgetUri(): String
Get the widget url of the album.
setAlbumId fun setAlbumId(albumId: String): AlbumFetcher
Set the album ID.