@Deprecated public void getMyFolloweesInBackground(final FindCallback callback) { if (!checkUserAuthentication(callback)) { return; } String endPoint = AVPowerfulUtils.getFolloweesEndPoint(getObjectId()); PaasClient.storageInstance().getObject(endPoint, null, false, null, new GenericObjectCallback() { @Override public void onSuccess(String content, AVException e) { super.onSuccess(content, e); List<AVUser> list = processResultByTag(content, FOLLOWEE_TAG); if (callback != null) { callback.internalDone(list, null); } } @Override public void onFailure(Throwable error, String content) { super.onFailure(error, content); if (callback != null) { callback.internalDone(null, AVErrorUtils.createException(error, content)); } } }); }
@Deprecated public void getMyFolloweesInBackground(final FindCallback callback) { if (!checkUserAuthentication(callback)) { return; } String endPoint = AVPowerfulUtils.getFolloweesEndPoint(getObjectId()); PaasClient.storageInstance().getObject(endPoint, null, false, null, new GenericObjectCallback() { @Override public void onSuccess(String content, AVException e) { super.onSuccess(content, e); List<AVUser> list = processResultByTag(content, FOLLOWEE_TAG); if (callback != null) { callback.internalDone(list, null); } } @Override public void onFailure(Throwable error, String content) { super.onFailure(error, content); if (callback != null) { callback.internalDone(null, AVErrorUtils.createException(error, content)); } } }); }
@Deprecated public void getFollowersInBackground(final FindCallback callback) { if (!checkUserAuthentication(callback)) { return; } String endPoint = AVPowerfulUtils.getFollowersEndPoint(getObjectId()); PaasClient.storageInstance().getObject(endPoint, null, false, null, new GenericObjectCallback() { @Override public void onSuccess(String content, AVException e) { super.onSuccess(content, e); List<AVUser> list = processResultByTag(content, FOLLOWER_TAG); if (callback != null) { callback.internalDone(list, null); } } @Override public void onFailure(Throwable error, String content) { super.onFailure(error, content); if (callback != null) { callback.internalDone(null, AVErrorUtils.createException(error, content)); } } }); }
@Deprecated public void getFollowersInBackground(final FindCallback callback) { if (!checkUserAuthentication(callback)) { return; } String endPoint = AVPowerfulUtils.getFollowersEndPoint(getObjectId()); PaasClient.storageInstance().getObject(endPoint, null, false, null, new GenericObjectCallback() { @Override public void onSuccess(String content, AVException e) { super.onSuccess(content, e); List<AVUser> list = processResultByTag(content, FOLLOWER_TAG); if (callback != null) { callback.internalDone(list, null); } } @Override public void onFailure(Throwable error, String content) { super.onFailure(error, content); if (callback != null) { callback.internalDone(null, AVErrorUtils.createException(error, content)); } } }); }
public void getFollowersAndFolloweesInBackground(final FollowersAndFolloweesCallback callback) { if (!checkUserAuthentication(callback)) { return; } String endPoint = AVPowerfulUtils.getFollowersAndFollowees(getObjectId()); PaasClient.storageInstance().getObject(endPoint, null, false, null, new GenericObjectCallback() { @Override public void onSuccess(String content, AVException e) { super.onSuccess(content, e); Map<String, List<AVUser>> map = processFollowerAndFollowee(content); if (callback != null) { callback.internalDone(map, null); } } @Override public void onFailure(Throwable error, String content) { super.onFailure(error, content); if (callback != null) { callback.internalDone(null, AVErrorUtils.createException(error, content)); } } }); }
public void unfollowInBackground(String userObjectId, final FollowCallback callback) { if (!checkUserAuthentication(callback)) { return; } String endPoint = AVPowerfulUtils.getFollowEndPoint(getObjectId(), userObjectId); PaasClient.storageInstance().deleteObject(endPoint, false, new GenericObjectCallback() { @Override public void onSuccess(String content, AVException e) { super.onSuccess(content, e); // To change body of overridden methods use File | Settings | // File Templates. if (callback != null) { callback.internalDone(AVUser.this, null); } } @Override public void onFailure(Throwable error, String content) { super.onFailure(error, content); // To change body of overridden methods use File | Settings // | File Templates. if (callback != null) { callback.internalDone(null, AVErrorUtils.createException(error, content)); } } }, null, null); }
public void getFollowersAndFolloweesInBackground(final FollowersAndFolloweesCallback callback) { if (!checkUserAuthentication(callback)) { return; } String endPoint = AVPowerfulUtils.getFollowersAndFollowees(getObjectId()); PaasClient.storageInstance().getObject(endPoint, null, false, null, new GenericObjectCallback() { @Override public void onSuccess(String content, AVException e) { super.onSuccess(content, e); Map<String, List<AVUser>> map = processFollowerAndFollowee(content); if (callback != null) { callback.internalDone(map, null); } } @Override public void onFailure(Throwable error, String content) { super.onFailure(error, content); if (callback != null) { callback.internalDone(null, AVErrorUtils.createException(error, content)); } } }); }
private void unfollow(boolean sync, String userObjectId, final FollowCallback callback) { if (!checkUserAuthentication(callback)) { return; } String endPoint = AVPowerfulUtils.getFollowEndPoint(getObjectId(), userObjectId); PaasClient.storageInstance().deleteObject(endPoint, sync, new GenericObjectCallback() { @Override public void onSuccess(String content, AVException e) { super.onSuccess(content, e); // To change body of overridden methods use File | Settings | // File Templates. if (callback != null) { callback.internalDone(AVUser.this, null); } } @Override public void onFailure(Throwable error, String content) { super.onFailure(error, content); // To change body of overridden methods use File | Settings // | File Templates. if (callback != null) { callback.internalDone(null, AVErrorUtils.createException(error, content)); } } }, null, null); }
public void followInBackground(String userObjectId, Map<String, Object> attributes, final FollowCallback callback) { if (!checkUserAuthentication(callback)) { return;
private void followInBackground(boolean sync, String userObjectId, Map<String, Object> attributes, final FollowCallback callback) { if (!checkUserAuthentication(callback)) { return;