ClientRepository
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun getClientsByConversationId(conversationId: ConversationId): Either<StorageFailure, Map<UserId, List<Client>>>
Link copied to clipboard
abstract suspend fun getClientsByUserId(userId: UserId): Either<StorageFailure, List<OtherUserClient>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun observeClientsByUserIdAndClientId(userId: UserId, clientId: ClientId): Flow<Either<StorageFailure, Client>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun persistClientHasConsumableNotifications(hasConsumableNotifications: Boolean): Either<CoreFailure, Unit>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun registerClient(param: RegisterClientParameters): Either<NetworkFailure, Client>
Link copied to clipboard
abstract suspend fun registerMLSClient(clientId: ClientId, publicKey: ByteArray, cipherSuite: CipherSuite): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun registerToken(senderId: String, client: String, token: String, transport: String): Either<NetworkFailure, Unit>
Link copied to clipboard
abstract suspend fun removeClientsAndReturnUsersWithNoClients(redundantClientsOfUsers: Map<UserId, List<ClientId>>): Either<StorageFailure, List<UserId>>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun saveNewClientEvent(newClientEvent: Event.User.NewClient): Either<CoreFailure, Unit>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun storeMapOfUserToClientId(userToClientMap: Map<UserId, List<ClientId>>): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun storeUserClientIdList(userId: UserId, clients: List<ClientId>): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun storeUserClientListAndRemoveRedundantClients(clients: List<InsertClientParam>): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun tryMarkClientsAsValid(userToClientMap: Map<UserId, List<ClientId>>): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun updateClientProteusVerificationStatus(userId: UserId, clientId: ClientId, verified: Boolean): Either<StorageFailure, Unit>