UserMapper
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
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 fromUserEntityToOtherUserMinimized(userEntity: UserEntityMinimized): OtherUserMinimized
Link copied to clipboard
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
Link copied to clipboard