UserMapper

internal interface UserMapper

Inheritors

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun fromManagedByDtoToSsoManagedBy(managedBy: ManagedByDTO?): SsoManagedBy?
Link copied to clipboard
abstract 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
abstract fun fromOtherToUserEntity(otherUser: OtherUser): UserEntity
Link copied to clipboard
abstract fun fromSelfUserDtoToUserEntity(userDTO: SelfUserDTO, connectionState: ConnectionEntity.State, userTypeEntity: UserTypeEntity): UserEntity
Link copied to clipboard
Link copied to clipboard
abstract fun fromUpdateRequestToPartialUserEntity(updateRequest: UserUpdateRequest, selfUserId: UserId): PartialUserEntity
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun fromUserEntityToSelfUser(userEntity: UserEntity): SelfUser
Link copied to clipboard
abstract fun fromUserProfileDtoToOtherUser(userProfile: UserProfileDTO, selfUserId: UserId, selfTeamId: TeamId?): OtherUser
Link copied to clipboard
abstract fun fromUserProfileDtoToUserEntity(userProfile: UserProfileDTO, connectionState: ConnectionEntity.State, userTypeEntity: UserTypeEntity, selfUserId: UserId, selfTeamId: TeamId?): UserEntity