Created
August 1, 2016 15:10
-
-
Save suciptoid/98513a39641cddae221ab3f3da325449 to your computer and use it in GitHub Desktop.
Pertama
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
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