ClientDAOImpl

internal class ClientDAOImpl(clientsQueries: ClientsQueries, queriesContext: <Error class: unknown class>, mapper: ClientMapper = ClientMapper) : ClientDAO

Constructors

Link copied to clipboard
internal constructor(clientsQueries: ClientsQueries, queriesContext: <Error class: unknown class>, mapper: ClientMapper = ClientMapper)

Functions

Link copied to clipboard
open suspend override fun conversationRecipient(ids: QualifiedIDEntity): Map<QualifiedIDEntity, List<Client>>
Link copied to clipboard
open suspend override fun deleteClient(userId: QualifiedIDEntity, clientId: String): <Error class: unknown class>
Link copied to clipboard
open suspend override fun deleteClientsOfUserByQualifiedID(qualifiedID: QualifiedIDEntity)
Link copied to clipboard
open suspend override fun getClientsOfConversation(id: QualifiedIDEntity): Map<QualifiedIDEntity, List<Client>>
Link copied to clipboard
open suspend override fun getClientsOfUserByQualifiedID(qualifiedID: QualifiedIDEntity): List<Client>
Link copied to clipboard
open suspend override fun getClientsOfUserByQualifiedIDFlow(qualifiedID: QualifiedIDEntity): <Error class: unknown class><List<Client>>
Link copied to clipboard
open suspend override fun getClientsOfUsersByQualifiedIDs(ids: List<QualifiedIDEntity>): Map<QualifiedIDEntity, List<Client>>
Link copied to clipboard
open suspend override fun insertClient(client: InsertClientParam)

Inserts a client into the database. the isValid status is always true when inserting a client but if the client already exists then any new value will be ignored.

Link copied to clipboard
open suspend override fun insertClients(clients: List<InsertClientParam>): <Error class: unknown class>
Link copied to clipboard
open suspend override fun insertClientsAndRemoveRedundant(clients: List<InsertClientParam>): <Error class: unknown class>
Link copied to clipboard
open suspend override fun observeClient(userId: QualifiedIDEntity, clientId: String): <Error class: unknown class><Client?>
Link copied to clipboard
open suspend override fun observeClientsByUserId(qualifiedID: QualifiedIDEntity): <Error class: unknown class><List<Client>>
Link copied to clipboard
open suspend override 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
open suspend override fun removeClientsAndReturnUsersWithNoClients(redundantClientsOfUsers: Map<UserIDEntity, List<String>>): <Error class: unknown class>
Link copied to clipboard
open suspend override fun selectAllClients(): Map<QualifiedIDEntity, List<Client>>
Link copied to clipboard
open suspend override fun tryMarkInvalid(invalidClientsList: List<<Error class: unknown class><QualifiedIDEntity, List<String>>>): <Error class: unknown class>
Link copied to clipboard
open suspend override fun updateClientProteusVerificationStatus(userId: QualifiedIDEntity, clientId: String, verified: Boolean): <Error class: unknown class>