RemoteStorage

interface RemoteStorage

Adapter for interfacing with remote attachment storage.

Functions

Link copied to clipboard
abstract suspend fun deleteFile(attachment: Attachment)

Deletes a file from remote storage.

Link copied to clipboard
abstract suspend fun downloadFile(attachment: Attachment): Flow<ByteArray>

Downloads a file from remote storage.

Link copied to clipboard
abstract suspend fun uploadFile(fileData: Flow<ByteArray>, attachment: Attachment)

Uploads a file to remote storage.