UserMapperImpl
internal class UserMapperImpl(idMapper: IdMapper = MapperProvider.idMapper(), domainUserTypeMapper: DomainUserTypeMapper = MapperProvider.userTypeMapper(), availabilityStatusMapper: AvailabilityStatusMapper = MapperProvider.availabilityStatusMapper(), connectionStateMapper: ConnectionStateMapper = MapperProvider.connectionStateMapper(), userEntityTypeMapper: UserEntityTypeMapper = MapperProvider.userTypeEntityMapper()) : UserMapper
Constructors
Link copied to clipboard
constructor(idMapper: IdMapper = MapperProvider.idMapper(), domainUserTypeMapper: DomainUserTypeMapper = MapperProvider.userTypeMapper(), availabilityStatusMapper: AvailabilityStatusMapper = MapperProvider.availabilityStatusMapper(), connectionStateMapper: ConnectionStateMapper = MapperProvider.connectionStateMapper(), userEntityTypeMapper: UserEntityTypeMapper = MapperProvider.userTypeEntityMapper())
Functions
Link copied to clipboard
Link copied to clipboard
Default values and marked as UserEntity.hasIncompleteMetadata = true. So later we can re-fetch them.
Link copied to clipboard
Link copied to clipboard
open override fun fromModelToUpdateApiModel(newName: String?, newAccent: Int?, newAssetId: String?): UserUpdateRequest
Maps the user data to be updated. if the parameters newName newAssetId are nulls, it indicates that not updation should be made.
Link copied to clipboard
Link copied to clipboard
open override fun fromSearchEntityToUserSearchDetails(searchEntity: UserSearchEntity): UserSearchDetails
Link copied to clipboard
open override fun fromSelfUserDtoToUserEntity(userDTO: SelfUserDTO, connectionState: ConnectionEntity.State, userTypeEntity: UserTypeEntity): UserEntity
Link copied to clipboard
Link copied to clipboard
open override fun fromUpdateRequestToPartialUserEntity(updateRequest: UserUpdateRequest, selfUserId: UserId): PartialUserEntity
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun fromUserEntityToOtherUserMinimized(userEntity: UserEntityMinimized): OtherUserMinimized
Link copied to clipboard
Link copied to clipboard
open override fun fromUserProfileDtoToOtherUser(userProfile: UserProfileDTO, selfUserId: UserId, selfTeamId: TeamId?): OtherUser
Link copied to clipboard
open override fun fromUserProfileDtoToUserEntity(userProfile: UserProfileDTO, connectionState: ConnectionEntity.State, userTypeEntity: UserTypeEntity, selfUserId: UserId, selfTeamId: TeamId?): UserEntity
Link copied to clipboard
open override fun fromUserUpdateEventToPartialUserEntity(event: Event.User.Update): PartialUserEntity