Created
January 28, 2016 23:53
-
-
Save patrykpoborca/c12085c3cb0d62defc1e 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
gitHubService.fetchUsers().enqueue(new Callback<List<GithubUser>>() { | |
@Override | |
public void onResponse(Response<List<GithubUser>> response) { | |
for(GithubUser user : response.body()){ | |
gitHubService.fetchDetails(user.getId()) | |
.enqueue(new Callback<GithubUserDescription>() { | |
@Override | |
public void onResponse(Response<GithubUserDescription> response) { | |
//do things | |
} | |
@Override | |
public void onFailure(Throwable throwable) { | |
} | |
}); | |
} | |
} | |
@Override | |
public void onFailure(Throwable throwable) { | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment