CellFileDaoImpl

internal class CellFileDaoImpl(queries: CellFilesQueries, readDispatcher: ReadDispatcher, writeDispatcher: WriteDispatcher) : CellFileDao

Constructors

Link copied to clipboard
constructor(queries: CellFilesQueries, readDispatcher: ReadDispatcher, writeDispatcher: WriteDispatcher)

Functions

Link copied to clipboard
open suspend override fun clearOfflineAccess(id: String)
Link copied to clipboard
open suspend override fun delete(id: String)
Link copied to clipboard
open suspend override 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
open suspend override 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
open suspend override fun getById(id: String): CellFileEntity?
Link copied to clipboard
open suspend override fun getLocalPathsByIds(ids: List<String>): List<CellFileLocalPath>
Link copied to clipboard
open override fun observeOfflineFiles(): Flow<List<CellFileEntity>>
Link copied to clipboard
open override fun observeOfflineFilesByConversationId(conversationId: String): Flow<List<CellFileEntity>>
Link copied to clipboard
open suspend override fun setTransferStatus(id: String, status: String)
Link copied to clipboard
open suspend override fun upsert(entity: CellFileEntity)