OpenAPI-Android

com.kkbox.openapideveloper / com.kkbox.openapideveloper.api / NewHitsPlaylistFetcher

NewHitsPlaylistFetcher

class NewHitsPlaylistFetcher

List all new hits playlists and fetch tracks for specific new hit playlist.

Constructors

<init> NewHitsPlaylistFetcher(httpClient: HttpClient, territory: String = "TW")
Creates a new hits playlist fetcher.

Properties

playlistId lateinit var playlistId: String

Functions

fetchAllNewHitsPlaylists fun fetchAllNewHitsPlaylists(limit: Int? = null, offset: Int? = null): ResponseFuture<JsonObject>
Fetch all new hits playlists.
fetchMetadata fun fetchMetadata(): ResponseFuture<JsonObject>
Fetch new hits playlist by given ID.
setPlaylistId fun setPlaylistId(playlistId: String): NewHitsPlaylistFetcher
Set the new hits playlist ID.