OpenAPI-Android

com.kkbox.openapideveloper / com.kkbox.openapideveloper.api / GenreStationFetcher

GenreStationFetcher

class GenreStationFetcher

Fetch genre stations and get tracks for a specific genre station.

Constructors

<init> GenreStationFetcher(httpClient: HttpClient, territory: String = "TW")
Creates a genre station fetcher.

Properties

genreStationId lateinit var genreStationId: String

Functions

fetchAllGenreStations fun fetchAllGenreStations(limit: Int? = null, offset: Int? = null): ResponseFuture<JsonObject>
Fetch all genre stations.
fetchMetadata fun fetchMetadata(): ResponseFuture<JsonObject>
Fetch metadata of a genre station by given ID.
setGenreStationId fun setGenreStationId(genreStationId: String): GenreStationFetcher
Set a genre station ID.