com.kkbox.openapideveloper / com.kkbox.openapideveloper.api / NewHitsPlaylistFetcher
class NewHitsPlaylistFetcher
List all new hits playlists and fetch tracks for specific new hit playlist.
| <init> | NewHitsPlaylistFetcher(httpClient: HttpClient, territory: String = "TW")Creates a new hits playlist fetcher. |
| playlistId | lateinit var playlistId: String |
| 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): NewHitsPlaylistFetcherSet the new hits playlist ID. |