AssetDAO

interface AssetDAO

Inheritors

Functions

Link copied to clipboard
abstract suspend fun deleteAsset(key: String)
Link copied to clipboard
abstract suspend fun deleteConversationFiles(conversationId: QualifiedIDEntity, deleteFile: (String) -> Unit)

Includes drafts owned by a conversation which is being removed.

Link copied to clipboard
abstract suspend fun deleteMessageFiles(conversationId: QualifiedIDEntity, messageId: String?, deleteFile: (String) -> Unit)

Null messageId selects the conversation's messages. Independent/shared file references survive.

Link copied to clipboard
abstract fun getAssetByKey(assetKey: String): Flow<AssetEntity?>
Link copied to clipboard
abstract suspend fun getAssets(): List<AssetEntity>
Link copied to clipboard
abstract suspend fun insertAsset(assetEntity: AssetEntity)
Link copied to clipboard
abstract suspend fun insertAssets(assetsEntity: List<AssetEntity>)
Link copied to clipboard
abstract suspend fun isFileReferenced(path: String): Boolean
Link copied to clipboard
abstract suspend fun updateAsset(assetEntity: AssetEntity)