SpotifyApi.NetCore icon indicating copy to clipboard operation
SpotifyApi.NetCore copied to clipboard

Return results from all API methods

Open DanielLarsenNZ opened this issue 5 years ago • 1 comments

PlayerApi.GetCurrentPlaybackInfo() returns null when no devices are connected. I propose we return a result which reflects the API response to make this less ambiguous, e.g.

SpotifyResponse
    HttpStatusCode = 204,
    Message = "No content",
    IsSuccessful = true

This could be a base class for the current response models, e.g.

CurrentPlaybackContext : SpotifyResponseModel
    SpotifyResponse
        HttpStatusCode = 204,
        Message = "No content",
        IsSuccessful = true
    Timestamp
    Device
    ...

DanielLarsenNZ avatar Apr 12 '20 21:04 DanielLarsenNZ

Related to #50

DanielLarsenNZ avatar Apr 13 '21 09:04 DanielLarsenNZ