AlbumApiImpl

internal class AlbumApiImpl(ktorService: KtorService, dispatcher: CoroutineDispatcher = Dispatchers.IO) : AlbumApi(source)

Constructors

Link copied to clipboard
constructor(ktorService: KtorService, dispatcher: CoroutineDispatcher = Dispatchers.IO)

Functions

Link copied to clipboard
open suspend override fun getAlbum(id: String, market: String?): ApiResponse<AlbumInfo, ErrorBody>

Get album API returns the information about an album.

Link copied to clipboard
open suspend override fun getAlbumTracks(id: String, market: String?, limit: Int, offset: Int): ApiResponse<GetAlbumTracksResponse, ErrorBody>

Get album tracks API returns all the tracks in an album.

Link copied to clipboard
open suspend override fun getNewAlbumReleases(limit: Int, offset: Int): ApiResponse<GetNewAlbumReleasesResponse, ErrorBody>

Get new album releases API returns all the albums that have newly released.