ConnectionDAO

interface ConnectionDAO

Inheritors

Functions

Link copied to clipboard
abstract suspend fun deleteConnectionDataAndConversation(conversationId: QualifiedIDEntity)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getConnectionRequests(): Flow<List<ConnectionEntity>>
Link copied to clipboard
abstract fun getConnections(): Flow<List<ConnectionEntity>>
Link copied to clipboard
abstract suspend fun insertConnection(connectionEntity: ConnectionEntity)
Link copied to clipboard
abstract suspend fun insertConnections(users: List<ConnectionEntity>)
Link copied to clipboard
abstract suspend fun setAllConnectionsAsNotified()
Link copied to clipboard
abstract suspend fun updateConnectionLastUpdatedTime(lastUpdate: String, id: String)
Link copied to clipboard
abstract suspend fun updateConnectionStatus(userId: QualifiedIDEntity, status: ConnectionEntity.State)

Sets the user's connection status and the status of their stored request, if any, in one transaction.

Link copied to clipboard
abstract suspend fun updateNotificationFlag(flag: Boolean, userId: QualifiedIDEntity)