birdcage / soundcloud-web-api-android

A Java wrapper for the SoundCloud Web API, optimized for use with the Android SDK.
MIT License
36 stars 9 forks source link

Pagination #9

Open shysh opened 7 years ago

shysh commented 7 years ago

In what way i can use pagination. For example i want tracks of user api.getService().getUserTracks(userId)

But if user has more than 50 track?

https://developers.soundcloud.com/docs/api/guide#playing

Thanks

jacoblubecki commented 7 years ago

In the main project, there is a package called com.jlubecki.soundcloud.webapi.android.query that contains a track query class and a pager class that can be used to wrap the query. I'm not sure that this is the best solution and I have not tested it recently, but it may help. I will look into the SoundCloud documentation a bit and see about maybe improving that functionality.