Search in sources :

Example 1 with SectionListBean

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

the class SectionPresenter method getSectionData.

@Override
public void getSectionData() {
    Subscription rxSubscription = mRetrofitHelper.fetchSectionListInfo().compose(RxUtil.<SectionListBean>rxSchedulerHelper()).subscribe(new CommonSubscriber<SectionListBean>(mView) {

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

Aggregations

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