SpotifyApiResponse

sealed interface SpotifyApiResponse<out RESPONSE, out ERROR>(source)

All APIs return SpotifyApiResponse. If the request is success then you will be receiving SpotifyApiResponse.Success. If there is any error you will be receiving SpotifyApiResponse.Error.

See also

Inheritors

Types

Link copied to clipboard
data class Error<ERROR>(val body: ERROR) : SpotifyApiResponse<Nothing, ERROR>
Link copied to clipboard