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

UploadDataSource

interface UploadDataSource

Created by jmielczarek on 22/07/2020

Functions

Name Summary
getFileSize abstract fun getFileSize(fileId:String, observer: (RepositoryResult<Long>) ->Unit):Unit
resumeUpload abstract 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 abstract 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

Inheritors

Name Summary
UploadRemote class UploadRemote :UploadDataSource
Created by jmielczarek on 22/07/2020
UploadRepository class UploadRepository :UploadDataSource
Created by jmielczarek on 22/07/2020