YaMusicApiClient

class YaMusicApiClient(val networkSettings: NetworkSettings, val language: Language, val token: String?)(source)

Constructors

Link copied to clipboard
constructor(networkSettings: NetworkSettings, language: Language, token: String?)

Properties

Link copied to clipboard
Link copied to clipboard
val httpClient: HttpClient
Link copied to clipboard
var jsonSettings: Json
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val me: Status? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun albumsWithTracks(albumId: Int): Album
Link copied to clipboard
inline suspend fun <T> HttpResponse.deserialize(): T
Link copied to clipboard
suspend fun genres(): List<Genre>
Link copied to clipboard
suspend fun playAudio(trackId: Int, from: String, albumId: Int, playlistId: String? = null, fromCache: Boolean = false, playId: String? = null, uid: Int? = null, timestamp: Instant? = null, trackLengthSeconds: Int = 0, totalPlayedSeconds: Int = 0, endPositionSeconds: Int = 0, clientNow: Instant? = null)
Link copied to clipboard
suspend fun playlistList(vararg playlistIds: String): List<Playlist>
Link copied to clipboard
suspend fun search(query: String, isCorrect: Boolean = false, type: QueryType = QueryType.All, page: Int = 0, playlistInBest: Boolean = false): <Error class: unknown class>
Link copied to clipboard
suspend fun searchSuggest(part: String): Suggestions
Link copied to clipboard
suspend fun tags(tagId: String): TagResult
Link copied to clipboard
suspend fun userInfo(): UserInfo
Link copied to clipboard
suspend fun userPlaylist(kind: Int, userId: Int? = null): Playlist
Link copied to clipboard
suspend fun userPlaylists(vararg kinds: Int, userId: Int? = null): List<Playlist>