ClientDAO

interface ClientDAO

Inheritors

Functions

Link copied to clipboard
abstract suspend fun conversationRecipient(ids: QualifiedIDEntity): Map<QualifiedIDEntity, List<Client>>
Link copied to clipboard
abstract suspend fun deleteClient(userId: QualifiedIDEntity, clientId: String)
Link copied to clipboard
abstract suspend fun deleteClientsOfUserByQualifiedID(qualifiedID: QualifiedIDEntity)
Link copied to clipboard
Link copied to clipboard
abstract suspend fun getClientsOfUserByQualifiedID(qualifiedID: QualifiedIDEntity): List<Client>
Link copied to clipboard
abstract suspend fun getClientsOfUserByQualifiedIDFlow(qualifiedID: QualifiedIDEntity): <Error class: unknown class><List<Client>>
Link copied to clipboard
abstract suspend fun getClientsOfUsersByQualifiedIDs(ids: List<QualifiedIDEntity>): Map<QualifiedIDEntity, List<Client>>
Link copied to clipboard
abstract suspend fun insertClient(client: InsertClientParam)
Link copied to clipboard
abstract suspend fun insertClients(clients: List<InsertClientParam>)
Link copied to clipboard
abstract suspend fun insertClientsAndRemoveRedundant(clients: List<InsertClientParam>)
Link copied to clipboard
abstract suspend fun observeClient(userId: QualifiedIDEntity, clientId: String): <Error class: unknown class><Client?>
Link copied to clipboard
abstract suspend fun observeClientsByUserId(qualifiedID: QualifiedIDEntity): <Error class: unknown class><List<Client>>
Link copied to clipboard
abstract suspend fun recipientsIfTheyArePartOfConversation(conversationId: ConversationIDEntity, userIds: Set<QualifiedIDEntity>): Map<QualifiedIDEntity, List<Client>>

Returns a map of users and their clients. the result include only users that are in the conversation

Link copied to clipboard
abstract suspend fun removeClientsAndReturnUsersWithNoClients(redundantClientsOfUsers: Map<UserIDEntity, List<String>>): List<QualifiedIDEntity>
Link copied to clipboard
abstract suspend fun selectAllClients(): Map<QualifiedIDEntity, List<Client>>
Link copied to clipboard
abstract suspend fun tryMarkInvalid(invalidClientsList: List<<Error class: unknown class><QualifiedIDEntity, List<String>>>)
Link copied to clipboard
abstract suspend fun updateClientProteusVerificationStatus(userId: QualifiedIDEntity, clientId: String, verified: Boolean)