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);
}
Aggregations