Search in sources :

Example 1 with GetUserProfileTask

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

the class UserProfilePresenter method getUserProfile.

@Override
public void getUserProfile(String url) {
    mView.startLoading();
    NetworkTaskScheduler.getInstance().execute(new GetUserProfileTask(url, new OnResponseListener<UserProfile>() {

        @Override
        public void onSucceed(UserProfile data) {
            mView.stopLoading();
            mView.onGetUserProfileSucceed(data);
        }

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

Aggregations

OnResponseListener (org.mazhuang.guanggoo.data.OnResponseListener)1 UserProfile (org.mazhuang.guanggoo.data.entity.UserProfile)1 GetUserProfileTask (org.mazhuang.guanggoo.data.task.GetUserProfileTask)1