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);
}
}));
}
Aggregations