com.kkbox.openapideveloper / com.kkbox.openapideveloper.api / AlbumFetcher
class AlbumFetcher
Get metadata and tracks of an album.
<init> | AlbumFetcher(httpClient: HttpClient , territory: String = "TW") Creates an album fetcher. |
albumId | lateinit var albumId: String |
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. |