1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 07:56:19 +00:00

update shareeservice to use ShareeOcsResponse

This commit is contained in:
Christian Schabesberger 2020-10-13 11:05:53 +02:00 committed by Abel García de Prada
parent b86638412e
commit fe425c8083
3 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,6 @@
/* ownCloud Android Library is available under MIT license
*
* @author Christian Schabesberger
* @author masensio
* @author David A. Velasco
* @author David González Verdugo
@ -73,6 +74,7 @@ import java.util.ArrayList
* Status codes:
* 100 - successful
*
* @author Christian Schabesberger
* @author masensio
* @author David A. Velasco
* @author David González Verdugo

View File

@ -1,6 +1,7 @@
/**
* ownCloud Android client application
*
* @author Christian Schabesberger
* @author David González Verdugo
*
* Copyright (C) 2020 ownCloud GmbH.
@ -22,13 +23,12 @@ package com.owncloud.android.lib.resources.shares.services
import com.owncloud.android.lib.common.operations.RemoteOperationResult
import com.owncloud.android.lib.resources.Service
import org.json.JSONObject
import java.util.ArrayList
import com.owncloud.android.lib.resources.shares.responses.ShareeOcsResponse
interface ShareeService : Service {
fun getSharees(
searchString: String,
page: Int,
perPage: Int
): RemoteOperationResult<ArrayList<JSONObject>>
): RemoteOperationResult<ShareeOcsResponse>
}

View File

@ -23,6 +23,7 @@ package com.owncloud.android.lib.resources.shares.services.implementation
import com.owncloud.android.lib.common.OwnCloudClient
import com.owncloud.android.lib.common.operations.RemoteOperationResult
import com.owncloud.android.lib.resources.shares.GetRemoteShareesOperation
import com.owncloud.android.lib.resources.shares.responses.ShareeOcsResponse
import com.owncloud.android.lib.resources.shares.services.ShareeService
import org.json.JSONObject
import java.util.ArrayList
@ -33,7 +34,7 @@ class OCShareeService(override val client: OwnCloudClient) :
searchString: String,
page: Int,
perPage: Int
): RemoteOperationResult<ArrayList<JSONObject>> =
): RemoteOperationResult<ShareeOcsResponse> =
GetRemoteShareesOperation(
searchString,
page,