OpenAPI-Android

com.kkbox.openapideveloper / com.kkbox.openapideveloper.api / MoodStationFetcher

MoodStationFetcher

class MoodStationFetcher

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

Constructors

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

Properties

moodStationId lateinit var moodStationId: String

Functions

fetchAllMoodStations fun fetchAllMoodStations(limit: Int? = null, offset: Int? = null): ResponseFuture<JsonObject>
Fetch all mood stations.
fetchMetadata fun fetchMetadata(): ResponseFuture<JsonObject>
Fetch metadata of a mood station by given ID.
setMoodStationId fun setMoodStationId(moodStationId: String): MoodStationFetcher
Set a mood station ID.