Created
August 1, 2016 15:13
-
-
Save suciptoid/212d7a9c929745761b30b045e5e1337a to your computer and use it in GitHub Desktop.
Setelah ambil data dari API
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
service.getRepos("showcheap") | |
.subscribeOn(Schedulers.newThread()) | |
.observeOn(AndroidSchedulers.mainThread()) | |
.subscribe(new Subscriber<List<GithubRepo>>() { | |
@Override | |
public void onCompleted() { | |
} | |
@Override | |
public void onError(Throwable e) { | |
} | |
@Override | |
public void onNext(List<GithubRepo> githubRepos) { | |
repoObservable = Observable.from(githubRepos); | |
Log.d("getRepos:onNext",githubRepos.toString()); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment