Files
gridpilot.gg/apps/website/lib/view-models/ImportRaceResultsSummaryViewModel.ts
Marc Mintel d97f50ed72
Some checks failed
Contract Testing / contract-tests (pull_request) Failing after 6m4s
Contract Testing / contract-snapshot (pull_request) Has been skipped
view data fixes
2026-01-23 11:59:49 +01:00

25 lines
654 B
TypeScript

interface ImportRaceResultsSummaryDTO {
success: boolean;
raceId: string;
driversProcessed: number;
resultsRecorded: number;
errors?: string[];
}
import { ViewModel } from "../contracts/view-models/ViewModel";
export class ImportRaceResultsSummaryViewModel extends ViewModel {
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 || [];
}
}