OmhStorageClient

abstract class OmhStorageClient

Types

Link copied to clipboard
interface Builder

Functions

Link copied to clipboard
fun createFile(name: String, mimeType: String, parentId: String): OmhTask<CreateFileUseCaseResult>

This method create files in an specific folder

Link copied to clipboard
fun deleteFile(id: String): OmhTask<DeleteFileUseCaseResult>

This method delete files with a given file id

Link copied to clipboard
fun downloadFile(fileId: String, mimeType: String?): OmhTask<DownloadFileUseCaseResult>

This method download a file with a given mime type and a given id

Link copied to clipboard
fun listFiles(parentId: String): OmhTask<GetFilesListUseCaseResult>

This method list files from an specific folder

Link copied to clipboard
fun updateFile(localFileToUpload: File, fileId: String): OmhTask<UpdateFileUseCaseResult>

This method update a remote file with the content of a local file

Link copied to clipboard
fun uploadFile(localFileToUpload: File, parentId: String?): OmhTask<UploadFileUseCaseResult>

This method upload a file in an specific folder