Search in sources :

Example 1 with NodeBean

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

the class NodePresenter method getTopInfo.

@Override
public void getTopInfo(String node_name) {
    Subscription rxSubscription = mRetrofitHelper.fetchNodeInfo(node_name).compose(RxUtil.<NodeBean>rxSchedulerHelper()).subscribe(new CommonSubscriber<NodeBean>(mView) {

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

Aggregations

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