UserDAOImpl

class UserDAOImpl(userQueries: UsersQueries, userCache: FlowCache<UserIDEntity, UserDetailsEntity?>, queriesContext: <Error class: unknown class>) : UserDAO

Constructors

Link copied to clipboard
internal constructor(userQueries: UsersQueries, userCache: FlowCache<UserIDEntity, UserDetailsEntity?>, queriesContext: <Error class: unknown class>)

Properties

Link copied to clipboard

Functions

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

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

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

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
open suspend override fun updateActiveOneOnOneConversationIfNotSet(userId: QualifiedIDEntity, conversationId: QualifiedIDEntity): <Error class: unknown class>

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

Link copied to clipboard
open suspend override fun updateUser(update: PartialUserEntity): <Error class: unknown class>

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

open suspend override fun updateUser(users: List<PartialUserEntity>): <Error class: unknown class>
Link copied to clipboard
open suspend override fun updateUserAvailabilityStatus(qualifiedID: QualifiedIDEntity, status: UserAvailabilityStatusEntity): <Error class: unknown class>
Link copied to clipboard
open suspend override fun updateUserDisplayName(selfUserId: QualifiedIDEntity, displayName: String): <Error class: unknown class>
Link copied to clipboard
open suspend override fun updateUserHandle(qualifiedID: QualifiedIDEntity, handle: String): <Error class: unknown class>
Link copied to clipboard
open suspend override fun updateUserSupportedProtocols(selfUserId: QualifiedIDEntity, supportedProtocols: Set<SupportedProtocolEntity>): <Error class: unknown class>
Link copied to clipboard
open suspend override fun upsertConnectionStatuses(userStatuses: Map<QualifiedIDEntity, ConnectionEntity.State>)
Link copied to clipboard
open suspend override fun upsertTeamMemberUserTypes(users: Map<QualifiedIDEntity, UserTypeEntity>): <Error class: unknown class>
Link copied to clipboard
open suspend override fun upsertUser(user: UserEntity)

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

Link copied to clipboard
open suspend override fun upsertUsers(users: List<UserEntity>): <Error class: unknown class>

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