Map<String, String> getParameters() { return conditions.getParameters(); }
Map<String, String> getParameters() { Map<String, String> result = conditions.getParameters(); if (this.includeACL && null != result) { result.put("returnACL", "true"); } return result; }
private void countInBackground(boolean sync, CountCallback callback) { conditions.assembleParameters(); Map<String, String> parameters = conditions.getParameters(); parameters.put("count", "1"); parameters.put("limit", "0"); final CountCallback internalCallback = callback; String path = queryPath(); queryPath = PaasClient.storageInstance().getObject(path, new AVRequestParams(parameters), sync, null, new GenericObjectCallback() { @Override public void onSuccess(String content, AVException e) { try { AVResponse resp = JSON.parseObject(content, AVResponse.class); if (internalCallback != null) { internalCallback.internalDone(resp.count, null); } } catch (Exception jsonParseException) { internalCallback.internalDone(AVErrorUtils.createException(jsonParseException, "Exception during response parse")); } } @Override public void onFailure(Throwable error, String content) { if (internalCallback != null) { internalCallback.internalDone(0, AVErrorUtils.createException(error, content)); } } }, cachePolicy, maxCacheAge); }
Map<String, String> queryParams = queryConditions.getParameters(); queryParams.put("client_id", this.clientId); AVRequestParams params = new AVRequestParams(queryParams);
private void countInBackground(boolean sync, CountCallback callback) { conditions.assembleParameters(); Map<String, String> parameters = conditions.getParameters(); parameters.put("count", "1"); parameters.put("limit", "0");
final AVFriendshipCallback internalCallback = callback; conditions.assembleParameters(); PaasClient.storageInstance().getObject(path, new AVRequestParams(conditions.getParameters()), sync, null, new GenericObjectCallback() {
final AVFriendshipCallback internalCallback = callback; conditions.assembleParameters(); PaasClient.storageInstance().getObject(path, new AVRequestParams(conditions.getParameters()), sync, null, new GenericObjectCallback() { @Override