Created
April 4, 2018 20:18
-
-
Save Hillsrion/33443ec0548a09db678fc2380bc7f875 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import kaaes.spotify.webapi.android.SpotifyCallback | |
| import kaaes.spotify.webapi.android.SpotifyError | |
| import kaaes.spotify.webapi.android.models.Track | |
| import kaaes.spotify.webapi.android.models.TracksPager | |
| import retrofit.client.Response | |
| class SeedResultsCallback(val onSuccess: (MutableList<Track>) -> Unit): SpotifyCallback<TracksPager>() { | |
| override fun failure(p0: SpotifyError?) { | |
| } | |
| override fun success(results: TracksPager?, response: Response?) { | |
| results?.let { | |
| onSuccess(it.tracks.items) | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment