CellFileDao

interface CellFileDao

Inheritors

Functions

Link copied to clipboard
abstract suspend fun clearOfflineAccess(id: String)
Link copied to clipboard
abstract suspend fun delete(id: String)
Link copied to clipboard
abstract suspend fun deleteStandalone(id: String)

Deletes the file's row, unless a message refers to it as an attachment: deleting it would remove the attachment from the message, so only its local copy and offline access are cleared.

Link copied to clipboard
abstract suspend fun deleteUnderFolder(folderPath: String, attachmentStatus: String): List<CellFileLocalPath>

deleteStandalone for every file stored under the folder at folderPath, at any depth, matched by the remote path they were saved with. The attachments among them are also set to attachmentStatus.

Link copied to clipboard
abstract suspend fun getById(id: String): CellFileEntity?
Link copied to clipboard
abstract suspend fun getLocalPathsByIds(ids: List<String>): List<CellFileLocalPath>
Link copied to clipboard
abstract fun observeOfflineFiles(): Flow<List<CellFileEntity>>
Link copied to clipboard
abstract fun observeOfflineFilesByConversationId(conversationId: String): Flow<List<CellFileEntity>>
Link copied to clipboard
abstract suspend fun setTransferStatus(id: String, status: String)
Link copied to clipboard
abstract suspend fun upsert(entity: CellFileEntity)