use of com.example.changemax.sqhappy.model.network.entity.FilmInfoLocationBean in project PracticeFilmApplication by FOnlyJack.
the class FragmentOnePresenter method loadLocCityInfo.
@Override
public void loadLocCityInfo() {
Subscription subscription = ApiDataManager.getFilmLocation(ApiConstants.FILM_INFORMATION_BASIS_LOCATIONID_HOST).doOnSubscribe(new Action0() {
@Override
public void call() {
Logger.d("showLoading");
}
}).subscribe(new Subscriber<FilmInfoLocationBean>() {
@Override
public void onCompleted() {
view.onCompleted();
}
@Override
public void onError(Throwable e) {
view.onError(e);
}
@Override
public void onNext(FilmInfoLocationBean filmInfoLocationBean) {
datalist.addAll(filmInfoLocationBean.getP());
view.displayLocCityInformation(datalist);
datalist.clear();
}
});
compositeSubscription.add(subscription);
}
Aggregations