Search in sources :

Example 1 with GetNodesCloudTask

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

the class NodesCloudPresenter method getNodesCloud.

@Override
public void getNodesCloud() {
    mView.startLoading();
    NetworkTaskScheduler.getInstance().execute(new GetNodesCloudTask(new OnResponseListener<List<NodeCategory>>() {

        @Override
        public void onSucceed(List<NodeCategory> data) {
            mView.stopLoading();
            mView.onGetNodesCloudSucceed(data);
        }

        @Override
        public void onFailed(String msg) {
            mView.stopLoading();
            mView.onGetNodesCloudFailed(msg);
        }
    }));
}
Also used : OnResponseListener(org.mazhuang.guanggoo.data.OnResponseListener) NodeCategory(org.mazhuang.guanggoo.data.entity.NodeCategory) List(java.util.List) GetNodesCloudTask(org.mazhuang.guanggoo.data.task.GetNodesCloudTask)

Aggregations

List (java.util.List)1 OnResponseListener (org.mazhuang.guanggoo.data.OnResponseListener)1 NodeCategory (org.mazhuang.guanggoo.data.entity.NodeCategory)1 GetNodesCloudTask (org.mazhuang.guanggoo.data.task.GetNodesCloudTask)1