20 lines
541 B
TypeScript
20 lines
541 B
TypeScript
// TODO: Create ImportRaceResultsSummaryDTO in apps/website/lib/types/generated when available
|
|
interface ImportRaceResultsSummaryDTO {
|
|
raceId: string;
|
|
importedCount: number;
|
|
errors: string[];
|
|
}
|
|
|
|
export class ImportRaceResultsSummaryViewModel {
|
|
raceId: string;
|
|
importedCount: number;
|
|
errors: string[];
|
|
|
|
constructor(dto: ImportRaceResultsSummaryDTO) {
|
|
this.raceId = dto.raceId;
|
|
this.importedCount = dto.importedCount;
|
|
this.errors = dto.errors;
|
|
}
|
|
|
|
// TODO: Add additional UI-specific fields when DTO is available
|
|
} |