OpenAPI-Android

com.kkbox.openapideveloper / com.kkbox.openapideveloper.api / SharedPlaylistFetcher

SharedPlaylistFetcher

class SharedPlaylistFetcher

Fetch metadata and tracks of a specific shared playlist.

Constructors

<init> SharedPlaylistFetcher(httpClient: HttpClient, territory: String = "TW")
Creates a shared playlist fetcher.

Properties

playlistId lateinit var playlistId: String

Functions

fetchMetadata fun fetchMetadata(): ResponseFuture<JsonObject>
Fetch the shared playlist by given ID.
fetchTracks fun fetchTracks(limit: Int? = null, offset: Int? = null): ResponseFuture<JsonObject>
Fetch track list of a playlist by given ID.
getWidgetUri fun getWidgetUri(): String
Get the widget url of the album.
setPlaylistId fun setPlaylistId(playlistId: String): SharedPlaylistFetcher
Set the shared playlist ID.