ApiResponse

internal data class ApiResponse<API_RESPONSE, ERROR_RESPONSE>(val result: API_RESPONSE? = null, val failure: ERROR_RESPONSE? = null)(source)

Internal class which maps the Spotify API responses.

Parameters

API_RESPONSE
ERROR_RESPONSE

Constructors

Link copied to clipboard
constructor(result: API_RESPONSE? = null, failure: ERROR_RESPONSE? = null)

Properties

Link copied to clipboard
val failure: ERROR_RESPONSE? = null

When the Spotify API returns success then it is mapped to result.

Link copied to clipboard
val result: API_RESPONSE? = null