gsdsdk / com.gsd.software.sdk.fileservice.repository.download / DownloadRepository

DownloadRepository

class DownloadRepository :DownloadDataSource

Created by jmielczarek on 14/09/2020

Constructors

Name Summary
<init> DownloadRepository(local:DownloadDataSource, remote:DownloadDataSource)
Created by jmielczarek on 14/09/2020

Functions

Name Summary
downloadFile fun downloadFile(fileId:String, resultObserver: (RepositoryResult<String>) ->Unit, progressObserver: (progress:Long, size:Long) ->Unit, cancelObserver: (CancelLoadCallback) ->Unit, directoryName:String):Unit
fun downloadFile(fileId:String, directoryPath:String, resultObserver: (RepositoryResult<String>) ->Unit, progressObserver: (progress:Long, size:Long) ->Unit, cancelObserver: (CancelLoadCallback) ->Unit):Unit
getFilePath fun getFilePath(fileId:String, fileName:String, directoryName:String):String?
getOrCreateDirectoryPath fun getOrCreateDirectoryPath(directoryName:String):String