Skip to content

Instantly share code, notes, and snippets.

@suciptoid
Created August 1, 2016 15:10
Show Gist options
  • Save suciptoid/98513a39641cddae221ab3f3da325449 to your computer and use it in GitHub Desktop.
Save suciptoid/98513a39641cddae221ab3f3da325449 to your computer and use it in GitHub Desktop.
Pertama
repoObservable = Observable.from(listRepo);
repoObservable.subscribe(new Subscriber<GithubRepo>() {
@Override
public void onCompleted() {
Log.d("GithubRepo","Load done");
}
@Override
public void onError(Throwable e) {
Log.e("GithubRepo",e.getMessage());
}
@Override
public void onNext(GithubRepo githubRepo) {
Log.d("GithubRepo","Repo name: "+githubRepo.getName());
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment