Search in sources :

Example 1 with DetailExtraBean

use of com.codeest.geeknews.model.bean.DetailExtraBean in project GeekNews by codeestX.

the class ZhihuDetailPresenter method getExtraData.

@Override
public void getExtraData(int id) {
    Subscription rxSubscription = mRetrofitHelper.fetchDetailExtraInfo(id).compose(RxUtil.<DetailExtraBean>rxSchedulerHelper()).subscribe(new CommonSubscriber<DetailExtraBean>(mView, "加载额外信息失败ヽ(≧Д≦)ノ") {

        @Override
        public void onNext(DetailExtraBean detailExtraBean) {
            mView.showExtraInfo(detailExtraBean);
        }
    });
    addSubscrebe(rxSubscription);
}
Also used : Subscription(rx.Subscription) DetailExtraBean(com.codeest.geeknews.model.bean.DetailExtraBean)

Aggregations

DetailExtraBean (com.codeest.geeknews.model.bean.DetailExtraBean)1 Subscription (rx.Subscription)1