UserDataSource

internal class UserDataSource(    userDAO: <Error class: unknown class>,     clientDAO: <Error class: unknown class>,     selfApi: <Error class: unknown class>,     userDetailsApi: <Error class: unknown class>,     upgradePersonalToTeamApi: <Error class: unknown class>,     teamsApi: <Error class: unknown class>,     sessionRepository: SessionRepository,     selfUserId: <Error class: unknown class>,     selfTeamIdProvider: SelfTeamIdProvider,     legalHoldHandler: LegalHoldHandler,     idMapper: IdMapper = MapperProvider.idMapper(),     userMapper: UserMapper = MapperProvider.userMapper(),     teamMapper: TeamMapper = MapperProvider.teamMapper(),     availabilityStatusMapper: AvailabilityStatusMapper = MapperProvider.availabilityStatusMapper(),     userTypeEntityMapper: UserEntityTypeMapper = MapperProvider.userTypeEntityMapper(),     memberMapper: MemberMapper = MapperProvider.memberMapper()) : UserRepository

Constructors

Link copied to clipboard
internal constructor(    userDAO: <Error class: unknown class>,     clientDAO: <Error class: unknown class>,     selfApi: <Error class: unknown class>,     userDetailsApi: <Error class: unknown class>,     upgradePersonalToTeamApi: <Error class: unknown class>,     teamsApi: <Error class: unknown class>,     sessionRepository: SessionRepository,     selfUserId: <Error class: unknown class>,     selfTeamIdProvider: SelfTeamIdProvider,     legalHoldHandler: LegalHoldHandler,     idMapper: IdMapper = MapperProvider.idMapper(),     userMapper: UserMapper = MapperProvider.userMapper(),     teamMapper: TeamMapper = MapperProvider.teamMapper(),     availabilityStatusMapper: AvailabilityStatusMapper = MapperProvider.availabilityStatusMapper(),     userTypeEntityMapper: UserEntityTypeMapper = MapperProvider.userTypeEntityMapper(),     memberMapper: MemberMapper = MapperProvider.memberMapper())

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun defederateUser(    userId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>, Unit>

Marks federated user as defederated in order to hold conversation history when backends stops federating.

Link copied to clipboard
open suspend override fun fetchAllOtherUsers(): <Error class: unknown class><<Error class: unknown class>, Unit>

Fetches user information for all of users id stored in the DB

Link copied to clipboard
open suspend override fun fetchSelfUser(): <Error class: unknown class><<Error class: unknown class>, Unit>
Link copied to clipboard
open suspend override fun fetchUserInfo(userId: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
open suspend override fun fetchUsersByIds(    qualifiedUserIdList: Set<<Error class: unknown class>>): <Error class: unknown class><<Error class: unknown class>, Boolean>
Link copied to clipboard
open suspend override fun fetchUsersIfUnknownByIds(    ids: Set<<Error class: unknown class>>): <Error class: unknown class><<Error class: unknown class>, Unit>
Link copied to clipboard
open suspend override fun fetchUsersLegalHoldConsent(    userIds: Set<<Error class: unknown class>>): <Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>
Link copied to clipboard
open suspend override fun getAllRecipients(): <Error class: unknown class><<Error class: unknown class>, <Error class: unknown class><List<<Error class: unknown class>>, List<<Error class: unknown class>>>>
Link copied to clipboard
open suspend override fun getKnownUser(userId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>?>
Link copied to clipboard
open suspend override fun getKnownUserMinimized(userId: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
open suspend override fun getNameAndHandle(    userId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>, NameAndHandle>
Link copied to clipboard
open suspend override fun getOneOnOnConversationId(    userId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>
Link copied to clipboard
open suspend override fun getSelfUser(): <Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>
Link copied to clipboard
open suspend override fun getUsersMinimizedByQualifiedIDs(userIds: List<<Error class: unknown class>>): <Error class: unknown class>
Link copied to clipboard
open suspend override fun getUsersSummaryByIds(    userIds: List<<Error class: unknown class>>): <Error class: unknown class><<Error class: unknown class>, List<<Error class: unknown class>>>

Gets users summary by their ids.

Link copied to clipboard
open suspend override fun getUsersWithOneOnOneConversation(): List<<Error class: unknown class>>
Link copied to clipboard
open suspend override fun insertOrIgnoreIncompleteUsers(userIds: List<<Error class: unknown class>>): <Error class: unknown class>
Link copied to clipboard
open suspend override fun insertSelfIncompleteUserWithOnlyEmail(email: String): <Error class: unknown class><<Error class: unknown class>, Unit>
Link copied to clipboard
open suspend override fun insertUsersIfUnknown(    users: List<<Error class: unknown class>>): <Error class: unknown class><<Error class: unknown class>, Unit>
Link copied to clipboard
open suspend override fun isAtLeastOneUserATeamMember(    userId: List<<Error class: unknown class>>,     teamId: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
open suspend override fun isClientMlsCapable(    userId: <Error class: unknown class>,     clientId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>, Boolean>
Link copied to clipboard
open suspend override fun markAsDeleted(    userId: List<<Error class: unknown class>>): <Error class: unknown class><<Error class: unknown class>, Unit>
open suspend override fun markUserAsDeletedAndRemoveFromGroupConversations(    userId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>, List<<Error class: unknown class>>>
Link copied to clipboard
open suspend override fun migrateUserToTeam(    teamName: String): <Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>
Link copied to clipboard
open suspend override fun observeAllKnownUsers(): <Error class: unknown class><<Error class: unknown class><<Error class: unknown class>, List<<Error class: unknown class>>>>
Link copied to clipboard
open override fun observeAllKnownUsersNotInConversation(    conversationId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class><<Error class: unknown class>, List<<Error class: unknown class>>>>
Link copied to clipboard
open suspend override fun observeSelfUser(): <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open suspend override fun observeSelfUserWithTeam(): <Error class: unknown class><<Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>?>>
Link copied to clipboard
open suspend override fun observeUser(userId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>?>
Link copied to clipboard
open suspend override fun removeUserBrokenAsset(qualifiedID: <Error class: unknown class>): <Error class: unknown class>

Removes broken user asset to avoid fetching it until next sync.

Link copied to clipboard
open suspend override fun syncUsersWithoutMetadata(): <Error class: unknown class><<Error class: unknown class>, Unit>

Updates users without metadata from the server.

Link copied to clipboard
open suspend override fun updateActiveOneOnOneConversation(    userId: <Error class: unknown class>,     conversationId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>, Unit>
Link copied to clipboard
open suspend override fun updateActiveOneOnOneConversationIfNotSet(    userId: <Error class: unknown class>,     conversationId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>, Unit>
Link copied to clipboard
open suspend override fun updateOtherUserAvailabilityStatus(userId: <Error class: unknown class>, status: <Error class: unknown class>)
Link copied to clipboard
open suspend override fun updateSelfUser(    newName: String?,     newAccent: Int?,     newAssetId: String?): <Error class: unknown class><<Error class: unknown class>, Unit>
Link copied to clipboard
open suspend override fun updateSupportedProtocols(    protocols: Set<<Error class: unknown class>>): <Error class: unknown class><<Error class: unknown class>, Unit>
Link copied to clipboard
open suspend override fun updateTeamId(    userId: <Error class: unknown class>,     teamId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>, Unit>
Link copied to clipboard
open suspend override fun updateUserFromEvent(event: Event.User.Update): <Error class: unknown class><<Error class: unknown class>, Unit>
Link copied to clipboard
open suspend override fun userById(    userId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>