use of com.marshalchen.ultimateandroid.demo.model.RepositoryList in project UltimateAndroid by cymcsg.
the class RepositoryPresenter method loadRepositoryInfo.
public void loadRepositoryInfo() {
repositoryView.showProgressBar();
Subscriber subscriber = new Subscriber<RepositoryList<List<Repository>>>() {
@Override
public void onCompleted() {
Logs.d("completed");
}
@Override
public void onError(Throwable e) {
Logs.e(e.getMessage());
}
@Override
public void onNext(RepositoryList<List<Repository>> repositoryList) {
repositoryView.setReposotories(repositoryList);
}
};
// GithubApiService.getInstance().loadRepositoryInfo(subscriber, "ultimate", "java");
GithubApiService.getInstance().loadRepositoryInfo(subscriber, "stars:>100", "java");
}
Aggregations