1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-14 18:02:58 +00:00

Renamed operation to get quota following scheme of rest of operations, and some clean-up

This commit is contained in:
David A. Velasco
2016-08-17 10:54:53 +02:00
parent b8aa7b6119
commit 477a99e243
3 changed files with 7 additions and 18 deletions
@@ -43,7 +43,7 @@ import java.util.ArrayList;
/**
* @author marcello
*/
public class RemoteGetUserQuotaOperation extends RemoteOperation {
public class GetRemoteUserQuotaOperation extends RemoteOperation {
static public class Quota {
long mFree, mUsed, mTotal;
@@ -62,7 +62,7 @@ public class RemoteGetUserQuotaOperation extends RemoteOperation {
public double getRelative() { return mRelative; }
}
private static final String TAG = RemoteGetUserQuotaOperation.class.getSimpleName();
private static final String TAG = GetRemoteUserQuotaOperation.class.getSimpleName();
private static final String NODE_OCS = "ocs";
private static final String NODE_DATA = "data";
@@ -89,6 +89,7 @@ public class RemoteGetUserQuotaOperation extends RemoteOperation {
get = new GetMethod(url);
get.setQueryString(new NameValuePair[]{new NameValuePair("format","json")});
get.addRequestHeader(OCS_API_HEADER, OCS_API_HEADER_VALUE);
status = client.executeMethod(get);
if(isSuccess(status)) {