From b13e584ac3d32809492954d2e0a412b0e7898d88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Gonz=C3=A1lez=20Cabrero?= Date: Mon, 7 Mar 2016 09:07:51 +0100 Subject: [PATCH] Remove the share type constants from GetRemoteShareesOperation --- .../resources/shares/GetRemoteShareesOperation.java | 4 ---- .../android/lib/test_project/test/GetShareesTest.java | 11 ++++++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/com/owncloud/android/lib/resources/shares/GetRemoteShareesOperation.java b/src/com/owncloud/android/lib/resources/shares/GetRemoteShareesOperation.java index b588e913..4ac6505d 100644 --- a/src/com/owncloud/android/lib/resources/shares/GetRemoteShareesOperation.java +++ b/src/com/owncloud/android/lib/resources/shares/GetRemoteShareesOperation.java @@ -93,10 +93,6 @@ public class GetRemoteShareesOperation extends RemoteOperation{ public static final String PROPERTY_SHARE_TYPE = "shareType"; public static final String PROPERTY_SHARE_WITH = "shareWith"; - // Result types - public static final Byte USER_TYPE = 0; - public static final Byte GROUP_TYPE = 1; - private String mSearchString; private int mPage; private int mPerPage; diff --git a/test_client/tests/src/com/owncloud/android/lib/test_project/test/GetShareesTest.java b/test_client/tests/src/com/owncloud/android/lib/test_project/test/GetShareesTest.java index c80f805c..0713b7ea 100644 --- a/test_client/tests/src/com/owncloud/android/lib/test_project/test/GetShareesTest.java +++ b/test_client/tests/src/com/owncloud/android/lib/test_project/test/GetShareesTest.java @@ -41,6 +41,7 @@ import com.owncloud.android.lib.common.OwnCloudCredentialsFactory; import com.owncloud.android.lib.common.network.NetworkUtils; import com.owncloud.android.lib.common.operations.RemoteOperationResult; import com.owncloud.android.lib.resources.shares.GetRemoteShareesOperation; +import com.owncloud.android.lib.resources.shares.ShareType; import com.owncloud.android.lib.test_project.R; import com.owncloud.android.lib.test_project.SelfSignedConfidentSslSocketFactory; @@ -125,15 +126,15 @@ public class GetShareesTest extends RemoteTest { RemoteOperationResult result = getShareesOperation.execute(mClient); JSONObject resultItem; JSONObject value; - byte type; + int type; int userCount = 0, groupCount = 0; assertTrue(result.isSuccess() && result.getData().size() > 0); try { for (int i=0; i