Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit fe425c8

Browse files
theScrabiabelgardep
authored andcommitted
update shareeservice to use ShareeOcsResponse
1 parent b866384 commit fe425c8

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/shares/GetRemoteShareesOperation.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* ownCloud Android Library is available under MIT license
22
*
3+
* @author Christian Schabesberger
34
* @author masensio
45
* @author David A. Velasco
56
* @author David González Verdugo
@@ -73,6 +74,7 @@ import java.util.ArrayList
7374
* Status codes:
7475
* 100 - successful
7576
*
77+
* @author Christian Schabesberger
7678
* @author masensio
7779
* @author David A. Velasco
7880
* @author David González Verdugo

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/shares/services/ShareeService.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* ownCloud Android client application
33
*
4+
* @author Christian Schabesberger
45
* @author David González Verdugo
56
*
67
* Copyright (C) 2020 ownCloud GmbH.
@@ -22,13 +23,12 @@ package com.owncloud.android.lib.resources.shares.services
2223

2324
import com.owncloud.android.lib.common.operations.RemoteOperationResult
2425
import com.owncloud.android.lib.resources.Service
25-
import org.json.JSONObject
26-
import java.util.ArrayList
26+
import com.owncloud.android.lib.resources.shares.responses.ShareeOcsResponse
2727

2828
interface ShareeService : Service {
2929
fun getSharees(
3030
searchString: String,
3131
page: Int,
3232
perPage: Int
33-
): RemoteOperationResult<ArrayList<JSONObject>>
33+
): RemoteOperationResult<ShareeOcsResponse>
3434
}

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/shares/services/implementation/OCShareeService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ package com.owncloud.android.lib.resources.shares.services.implementation
2323
import com.owncloud.android.lib.common.OwnCloudClient
2424
import com.owncloud.android.lib.common.operations.RemoteOperationResult
2525
import com.owncloud.android.lib.resources.shares.GetRemoteShareesOperation
26+
import com.owncloud.android.lib.resources.shares.responses.ShareeOcsResponse
2627
import com.owncloud.android.lib.resources.shares.services.ShareeService
2728
import org.json.JSONObject
2829
import java.util.ArrayList
@@ -33,7 +34,7 @@ class OCShareeService(override val client: OwnCloudClient) :
3334
searchString: String,
3435
page: Int,
3536
perPage: Int
36-
): RemoteOperationResult<ArrayList<JSONObject>> =
37+
): RemoteOperationResult<ShareeOcsResponse> =
3738
GetRemoteShareesOperation(
3839
searchString,
3940
page,

0 commit comments

Comments
 (0)