UserDataSource
internal class UserDataSource(userDAO: <Error class: unknown class>, metadataDAO: <Error class: unknown class>, clientDAO: <Error class: unknown class>, selfApi: <Error class: unknown class>, userDetailsApi: <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>, metadataDAO: <Error class: unknown class>, clientDAO: <Error class: unknown class>, selfApi: <Error class: unknown class>, userDetailsApi: <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())
Functions
Link copied to clipboard
open suspend override fun defederateUser(userId: <Error class: unknown class>): Either<CoreFailure, Unit>
Marks federated user as defederated in order to hold conversation history when backends stops federating.
Link copied to clipboard
Fetches user information for all of users id stored in the DB
Link copied to clipboard
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>>): Either<CoreFailure, Unit>
Link copied to clipboard
open suspend override fun fetchUsersIfUnknownByIds(ids: Set<<Error class: unknown class>>): Either<CoreFailure, Unit>
Link copied to clipboard
open suspend override fun fetchUsersLegalHoldConsent(userIds: Set<<Error class: unknown class>>): Either<CoreFailure, <Error class: unknown class>>
Link copied to clipboard
open suspend override fun getAllRecipients(): Either<CoreFailure, <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>): Either<StorageFailure, NameAndHandle>
Link copied to clipboard
open suspend override fun getOneOnOnConversationId(userId: <Error class: unknown class>): Either<StorageFailure, <Error class: unknown class>>
Link copied to clipboard
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>>): Either<StorageFailure, List<<Error class: unknown class>>>
Gets users summary by their ids.
Link copied to clipboard
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 insertUsersIfUnknown(users: List<<Error class: unknown class>>): Either<StorageFailure, 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 markAsDeleted(userId: List<<Error class: unknown class>>): Either<StorageFailure, Unit>
Link copied to clipboard
open suspend override fun markUserAsDeletedAndRemoveFromGroupConversations(userId: <Error class: unknown class>): Either<CoreFailure, List<<Error class: unknown class>>>
Link copied to clipboard
open suspend override fun observeAllKnownUsers(): <Error class: unknown class><Either<StorageFailure, List<<Error class: unknown class>>>>
Link copied to clipboard
open override fun observeAllKnownUsersNotInConversation(conversationId: <Error class: unknown class>): <Error class: unknown class><Either<StorageFailure, 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
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>): Either<CoreFailure, Unit>
Link copied to clipboard
open suspend override fun updateActiveOneOnOneConversationIfNotSet(userId: <Error class: unknown class>, conversationId: <Error class: unknown class>): Either<CoreFailure, 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?): Either<CoreFailure, Unit>
Link copied to clipboard
open suspend override fun updateSupportedProtocols(protocols: Set<<Error class: unknown class>>): Either<CoreFailure, Unit>
Link copied to clipboard
Link copied to clipboard
open suspend override fun userById(userId: <Error class: unknown class>): Either<CoreFailure, <Error class: unknown class>>