JohnnyCrazy / SpotifyAPI-NET

:sound: A Client for the Spotify Web API, written in C#/.NET
http://johnnycrazy.github.io/SpotifyAPI-NET/
MIT License
1.51k stars 308 forks source link

Recentlyplayed - IResponse missing Total value #754

Closed WalterEbbers closed 2 years ago

WalterEbbers commented 2 years ago

Hi,

I have been playing around with the GetRecentLyPlayed() call to get progress on how much % has been loaded and i am seeing that the "Total" value in the response is not there. I have done something similar for Paging (having a progress paginator) which works very nice and wanted to do the same for the CursorPaging.

According to the recently played docs the response should have a Total property, but when checking the IResponse data, i only see the following properties filled: Items, Next, Cursors, Limit and Href.

Is this something something on the Spotify API side? or is there something missing at the .NET side of the API?

JohnnyCrazy commented 2 years ago

Hi,

Sorry for the late response here. In this case, I think the docs are wrong as cursor paginations don't have a total field. A quick test on https://developer.spotify.com/console/get-recently-played/?limit=&after=&before= seems to confirm it

WalterEbbers commented 2 years ago

Hi,

It's okay! Thnx for the reply about this!