mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-30 18:07:38 +00:00 
			
		
		
		
	Read remote file function added to the file service
This commit is contained in:
		
							parent
							
								
									01c4f52104
								
							
						
					
					
						commit
						b2b5af9a69
					
				| @ -56,6 +56,10 @@ interface FileService : Service { | ||||
|         targetRemotePath: String, | ||||
|     ): RemoteOperationResult<Unit> | ||||
| 
 | ||||
|     fun readFile( | ||||
|         remotePath: String | ||||
|     ): RemoteOperationResult<RemoteFile> | ||||
| 
 | ||||
|     fun refreshFolder( | ||||
|         remotePath: String | ||||
|     ): RemoteOperationResult<ArrayList<RemoteFile>> | ||||
|  | ||||
| @ -31,6 +31,7 @@ import com.owncloud.android.lib.resources.files.CreateRemoteFolderOperation | ||||
| import com.owncloud.android.lib.resources.files.DownloadRemoteFileOperation | ||||
| import com.owncloud.android.lib.resources.files.GetUrlToOpenInWebRemoteOperation | ||||
| import com.owncloud.android.lib.resources.files.MoveRemoteFileOperation | ||||
| import com.owncloud.android.lib.resources.files.ReadRemoteFileOperation | ||||
| import com.owncloud.android.lib.resources.files.ReadRemoteFolderOperation | ||||
| import com.owncloud.android.lib.resources.files.RemoteFile | ||||
| import com.owncloud.android.lib.resources.files.RemoveRemoteFileOperation | ||||
| @ -89,6 +90,13 @@ class OCFileService(override val client: OwnCloudClient) : FileService { | ||||
|             targetRemotePath = targetRemotePath, | ||||
|         ).execute(client) | ||||
| 
 | ||||
|     override fun readFile( | ||||
|         remotePath: String | ||||
|     ): RemoteOperationResult<RemoteFile> = | ||||
|         ReadRemoteFileOperation( | ||||
|             remotePath = remotePath | ||||
|         ).execute(client) | ||||
| 
 | ||||
|     override fun refreshFolder( | ||||
|         remotePath: String | ||||
|     ): RemoteOperationResult<ArrayList<RemoteFile>> = | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user