Search in sources :

Example 1 with ZhihuDetailBean

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

the class ZhihuDetailPresenter method getDetailData.

@Override
public void getDetailData(int id) {
    Subscription rxSubscription = mRetrofitHelper.fetchDetailInfo(id).compose(RxUtil.<ZhihuDetailBean>rxSchedulerHelper()).subscribe(new CommonSubscriber<ZhihuDetailBean>(mView) {

        @Override
        public void onNext(ZhihuDetailBean zhihuDetailBean) {
            mData = zhihuDetailBean;
            mView.showContent(zhihuDetailBean);
        }
    });
    addSubscrebe(rxSubscription);
}
Also used : ZhihuDetailBean(com.codeest.geeknews.model.bean.ZhihuDetailBean) Subscription(rx.Subscription)

Aggregations

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