UserDAO

interface UserDAO

Inheritors

Functions

Link copied to clipboard
abstract suspend fun allOtherUsersId(): List<UserIDEntity>
Link copied to clipboard
abstract suspend fun deleteUserByQualifiedID(qualifiedID: QualifiedIDEntity)
Link copied to clipboard
abstract suspend fun getAllUsersDetails(): <Error class: unknown class><List<UserDetailsEntity>>
Link copied to clipboard
abstract suspend fun getAllUsersDetailsByTeam(teamId: String): List<UserDetailsEntity>
Link copied to clipboard
abstract suspend fun getNameAndHandle(userId: UserIDEntity): NameAndHandleEntity?
Link copied to clipboard
abstract suspend fun getUserDetailsByHandleAndConnectionStates(handle: String, connectionStates: List<ConnectionEntity.State>): <Error class: unknown class><List<UserDetailsEntity>>
abstract suspend fun getUserDetailsByNameOrHandleOrEmailAndConnectionStates(searchQuery: String, connectionStates: List<ConnectionEntity.State>): <Error class: unknown class><List<UserDetailsEntity>>
Link copied to clipboard
abstract suspend fun getUserDetailsWithTeamByQualifiedID(qualifiedID: QualifiedIDEntity): <Error class: unknown class><<Error class: unknown class><UserDetailsEntity, TeamEntity?>?>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun getUsersDetailsByQualifiedIDList(qualifiedIDList: List<QualifiedIDEntity>): List<UserDetailsEntity>
Link copied to clipboard
abstract suspend fun getUsersDetailsNotInConversationByHandle(conversationId: QualifiedIDEntity, handle: String): <Error class: unknown class><List<UserDetailsEntity>>
abstract suspend fun getUsersDetailsNotInConversationByNameOrHandleOrEmail(conversationId: QualifiedIDEntity, searchQuery: String): <Error class: unknown class><List<UserDetailsEntity>>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun getUsersMinimizedByQualifiedIDs(qualifiedIDs: List<QualifiedIDEntity>): List<UserEntityMinimized>
Link copied to clipboard
abstract suspend fun getUsersWithOneOnOneConversation(): List<UserEntity>
Link copied to clipboard
abstract suspend fun insertOrIgnoreIncompleteUsers(userIds: List<QualifiedIDEntity>)
Link copied to clipboard
abstract suspend fun insertOrIgnoreUsers(users: List<UserEntity>)

Inserts each user into the local storage or ignores if already exists

Link copied to clipboard
abstract suspend fun isAtLeastOneUserATeamMember(userId: List<UserIDEntity>, teamId: String): Boolean
Link copied to clipboard
abstract suspend fun markAsDeleted(userId: List<UserIDEntity>)
Link copied to clipboard
abstract suspend fun markUserAsDefederated(qualifiedID: QualifiedIDEntity)
Link copied to clipboard
abstract suspend fun observeAllUsersDetailsByConnectionStatus(connectionState: ConnectionEntity.State): <Error class: unknown class><List<UserDetailsEntity>>
Link copied to clipboard
abstract suspend fun observeUserDetailsByQualifiedID(qualifiedID: QualifiedIDEntity): <Error class: unknown class><UserDetailsEntity?>
Link copied to clipboard
abstract fun observeUsersDetailsNotInConversation(conversationId: QualifiedIDEntity): <Error class: unknown class><List<UserDetailsEntity>>
Link copied to clipboard
abstract suspend fun removeUserAsset(assetId: QualifiedIDEntity)
Link copied to clipboard
abstract suspend fun updateActiveOneOnOneConversation(userId: QualifiedIDEntity, conversationId: QualifiedIDEntity)

Update which 1-1 conversation is the currently active one. If multiple encryption protocols are enabled there can be multiple co-existing 1-1 conversations.

Link copied to clipboard

Update which 1-1 conversation iff it was not set before.

Link copied to clipboard
abstract suspend fun updateUser(update: PartialUserEntity)

Perform a partial update of an existing user. Only non-null values will be updated otherwise the existing value is kept.

abstract suspend fun updateUser(users: List<PartialUserEntity>)
Link copied to clipboard
Link copied to clipboard
abstract suspend fun updateUserDisplayName(selfUserId: QualifiedIDEntity, displayName: String)
Link copied to clipboard
abstract suspend fun updateUserHandle(qualifiedID: QualifiedIDEntity, handle: String)
Link copied to clipboard
abstract suspend fun updateUserSupportedProtocols(selfUserId: QualifiedIDEntity, supportedProtocols: Set<SupportedProtocolEntity>)
Link copied to clipboard
abstract suspend fun upsertConnectionStatuses(userStatuses: Map<QualifiedIDEntity, ConnectionEntity.State>)
Link copied to clipboard
abstract suspend fun upsertUser(user: UserEntity)

This will update all columns (or insert a new record), except:

Link copied to clipboard
abstract suspend fun upsertUsers(users: List<UserEntity>)

This will update all columns (or insert a new record), except: