Search in sources :

Example 1 with GetTopicDetailTask

use of org.mazhuang.guanggoo.data.task.GetTopicDetailTask in project guanggoo-android by mzlogin.

the class TopicDetailPresenter method getTopicDetail.

@Override
public void getTopicDetail() {
    mView.startLoading();
    NetworkTaskScheduler.getInstance().execute(new GetTopicDetailTask(getUrl(), new OnResponseListener<TopicDetail>() {

        @Override
        public void onSucceed(TopicDetail data) {
            mView.stopLoading();
            mView.onGetTopicDetailSucceed(data);
        }

        @Override
        public void onFailed(String msg) {
            mView.stopLoading();
            mView.onGetTopicDetailFailed(msg);
        }
    }));
}
Also used : OnResponseListener(org.mazhuang.guanggoo.data.OnResponseListener) GetTopicDetailTask(org.mazhuang.guanggoo.data.task.GetTopicDetailTask) TopicDetail(org.mazhuang.guanggoo.data.entity.TopicDetail)

Aggregations

OnResponseListener (org.mazhuang.guanggoo.data.OnResponseListener)1 TopicDetail (org.mazhuang.guanggoo.data.entity.TopicDetail)1 GetTopicDetailTask (org.mazhuang.guanggoo.data.task.GetTopicDetailTask)1