com.kkbox.openapideveloper / com.kkbox.openapideveloper.api / SharedPlaylistFetcher
class SharedPlaylistFetcher
Fetch metadata and tracks of a specific shared playlist.
| <init> | SharedPlaylistFetcher(httpClient: HttpClient, territory: String = "TW")Creates a shared playlist fetcher. |
| playlistId | lateinit var playlistId: String |
| 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(): StringGet the widget url of the album. |
| setPlaylistId | fun setPlaylistId(playlistId: String): SharedPlaylistFetcherSet the shared playlist ID. |