import type { ImportRaceResultsSummaryDto } from '../dtos/ImportRaceResultsSummaryDto';

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

export class ImportRaceResultsPresenter {
  present(dto: ImportRaceResultsSummaryDto): ImportRaceResultsSummaryViewModel {
    return {
      success: dto.success,
      raceId: dto.raceId,
      driversProcessed: dto.driversProcessed,
      resultsRecorded: dto.resultsRecorded,
      errors: dto.errors,
    };
  }
}