interface ImportRaceResultsSummaryDTO {
  success: boolean;
  raceId: string;
  driversProcessed: number;
  resultsRecorded: number;
  errors?: string[];
}

export class ImportRaceResultsSummaryViewModel {
  success: boolean;
  raceId: string;
  driversProcessed: number;
  resultsRecorded: number;
  errors: string[];

  constructor(dto: ImportRaceResultsSummaryDTO) {
    this.success = dto.success;
    this.raceId = dto.raceId;
    this.driversProcessed = dto.driversProcessed;
    this.resultsRecorded = dto.resultsRecorded;
    this.errors = dto.errors || [];
  }
}