mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 10:27:45 +00:00 
			
		
		
		
	update shareeservice to use ShareeOcsResponse
This commit is contained in:
		
							parent
							
								
									b86638412e
								
							
						
					
					
						commit
						fe425c8083
					
				| @ -1,5 +1,6 @@ | |||||||
| /* ownCloud Android Library is available under MIT license | /* ownCloud Android Library is available under MIT license | ||||||
|  * |  * | ||||||
|  |  *   @author Christian Schabesberger | ||||||
|  *   @author masensio |  *   @author masensio | ||||||
|  *   @author David A. Velasco |  *   @author David A. Velasco | ||||||
|  *   @author David González Verdugo |  *   @author David González Verdugo | ||||||
| @ -73,6 +74,7 @@ import java.util.ArrayList | |||||||
|  * Status codes: |  * Status codes: | ||||||
|  * 100 - successful |  * 100 - successful | ||||||
|  * |  * | ||||||
|  |  * @author Christian Schabesberger | ||||||
|  * @author masensio |  * @author masensio | ||||||
|  * @author David A. Velasco |  * @author David A. Velasco | ||||||
|  * @author David González Verdugo |  * @author David González Verdugo | ||||||
|  | |||||||
| @ -1,6 +1,7 @@ | |||||||
| /** | /** | ||||||
|  * ownCloud Android client application |  * ownCloud Android client application | ||||||
|  * |  * | ||||||
|  |  * @author Christian Schabesberger | ||||||
|  * @author David González Verdugo |  * @author David González Verdugo | ||||||
|  * |  * | ||||||
|  * Copyright (C) 2020 ownCloud GmbH. |  * 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.common.operations.RemoteOperationResult | ||||||
| import com.owncloud.android.lib.resources.Service | import com.owncloud.android.lib.resources.Service | ||||||
| import org.json.JSONObject | import com.owncloud.android.lib.resources.shares.responses.ShareeOcsResponse | ||||||
| import java.util.ArrayList |  | ||||||
| 
 | 
 | ||||||
| interface ShareeService : Service { | interface ShareeService : Service { | ||||||
|     fun getSharees( |     fun getSharees( | ||||||
|         searchString: String, |         searchString: String, | ||||||
|         page: Int, |         page: Int, | ||||||
|         perPage: Int |         perPage: Int | ||||||
|     ): RemoteOperationResult<ArrayList<JSONObject>> |     ): RemoteOperationResult<ShareeOcsResponse> | ||||||
| } | } | ||||||
|  | |||||||
| @ -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.OwnCloudClient | ||||||
| import com.owncloud.android.lib.common.operations.RemoteOperationResult | import com.owncloud.android.lib.common.operations.RemoteOperationResult | ||||||
| import com.owncloud.android.lib.resources.shares.GetRemoteShareesOperation | 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 com.owncloud.android.lib.resources.shares.services.ShareeService | ||||||
| import org.json.JSONObject | import org.json.JSONObject | ||||||
| import java.util.ArrayList | import java.util.ArrayList | ||||||
| @ -33,7 +34,7 @@ class OCShareeService(override val client: OwnCloudClient) : | |||||||
|         searchString: String, |         searchString: String, | ||||||
|         page: Int, |         page: Int, | ||||||
|         perPage: Int |         perPage: Int | ||||||
|     ): RemoteOperationResult<ArrayList<JSONObject>> = |     ): RemoteOperationResult<ShareeOcsResponse> = | ||||||
|         GetRemoteShareesOperation( |         GetRemoteShareesOperation( | ||||||
|             searchString, |             searchString, | ||||||
|             page, |             page, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user