import { RaceDetailUserResultDTO } from '../types/generated/RaceDetailUserResultDTO'; export class RaceDetailUserResultViewModel { position: number; startPosition: number; incidents: number; fastestLap: number; positionChange: number; ratingChange: number; isPodium: boolean; isClean: boolean; constructor(dto: RaceDetailUserResultDTO) { this.position = dto.position; this.startPosition = dto.startPosition; this.incidents = dto.incidents; this.fastestLap = dto.fastestLap; this.positionChange = dto.positionChange; this.ratingChange = dto.ratingChange; this.isPodium = dto.isPodium; this.isClean = dto.isClean; } }