OmhFileRemoteDataSource

Functions

Link copied to clipboard
abstract fun createFile(name: String, mimeType: String, parentId: String?): OmhFile?

This method create files in an specific folder

Link copied to clipboard
abstract fun deleteFile(fileId: String): Boolean

This method delete files with a given file id

Link copied to clipboard
abstract fun downloadFile(fileId: String, mimeType: String?): ByteArrayOutputStream

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

Link copied to clipboard
abstract fun getFilesList(parentId: String = "root"): List<OmhFile>

This method list files from an specific folder

Link copied to clipboard
abstract fun updateFile(localFileToUpload: File, fileId: String): OmhFile?

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

Link copied to clipboard
abstract fun uploadFile(localFileToUpload: File, parentId: String?): OmhFile?

This method upload a file in an specific folder