import type { RaceStatsDTO } from '@/lib/types/generated/RaceStatsDTO'; /** * Race stats view model * Represents race statistics for display */ import { ViewModel } from "../contracts/view-models/ViewModel"; export class RaceStatsViewModel extends ViewModel { totalRaces: number; constructor(dto: RaceStatsDTO) { this.totalRaces = dto.totalRaces; } /** UI-specific: Formatted total races */ get formattedTotalRaces(): string { return this.totalRaces.toLocaleString(); } }