UserDAO
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
abstract suspend fun getUserDetailsByHandleAndConnectionStates(handle: String, connectionStates: List<ConnectionEntity.State>): <Error class: unknown class><List<UserDetailsEntity>>
Link copied to clipboard
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
abstract suspend fun getUserMinimizedByQualifiedID(qualifiedID: QualifiedIDEntity): UserEntityMinimized?
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>>
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
abstract suspend fun markUserAsDeletedAndRemoveFromGroupConv(qualifiedID: QualifiedIDEntity): List<ConversationIDEntity>
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
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
abstract suspend fun updateActiveOneOnOneConversationIfNotSet(userId: QualifiedIDEntity, conversationId: QualifiedIDEntity)
Update which 1-1 conversation iff it was not set before.
Link copied to clipboard
Perform a partial update of an existing user. Only non-null values will be updated otherwise the existing value is kept.
Link copied to clipboard
abstract suspend fun updateUserAvailabilityStatus(qualifiedID: QualifiedIDEntity, status: UserAvailabilityStatusEntity)
Link copied to clipboard
Link copied to clipboard
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
This will update UserEntity.team, UserEntity.userType, UserEntity.connectionStatus to ConnectionEntity.State.ACCEPTED or insert a new record.
Link copied to clipboard
This will update all columns (or insert a new record), except:
Link copied to clipboard
This will update all columns (or insert a new record), except: