gsdsdk / com.gsd.software.sdk.fileservice.repository.upload / UploadRemote

UploadRemote

class UploadRemote :UploadDataSource

Created by jmielczarek on 22/07/2020

Constructors

Name Summary
<init> UploadRemote(gsdRemoteData:GSDRemoteData)
Created by jmielczarek on 22/07/2020

Functions

Name Summary
getFileSize fun getFileSize(fileId:String, observer: (RepositoryResult<Long>) ->Unit):Unit
resumeUpload fun resumeUpload(fileContent:FileContent, uploadId:String, position:Long, patchQuery:Map<String,String>, resultObserver: (RepositoryResult<ResponseObject>) ->Unit, uploadIdObserver: (uploadId:String) ->Unit, successObserver: (UploadFileResponse) ->Unit, progressObserver: (Long,Long) ->Unit, cancelObserver: (CancelLoadCallback) ->Unit, patchObserver: (FilePatchResponse) ->Unit):Unit
startUpload fun startUpload(fileContent:FileContent, patchQuery:Map<String,String>, resultObserver: (RepositoryResult<ResponseObject>) ->Unit, uploadIdObserver: (uploadId:String) ->Unit, successObserver: (UploadFileResponse) ->Unit, progressObserver: (Long,Long) ->Unit, cancelObserver: (CancelLoadCallback) ->Unit, patchObserver: (FilePatchResponse) ->Unit):Unit