Files
gridpilot.gg/apps/website/lib/view-models/RaceWithSOFViewModel.ts
2026-01-23 15:30:23 +01:00

15 lines
498 B
TypeScript

import { ViewModel } from "../contracts/view-models/ViewModel";
import type { RaceWithSOFViewData } from "../view-data/RaceWithSOFViewData";
export class RaceWithSOFViewModel extends ViewModel {
private readonly data: RaceWithSOFViewData;
constructor(data: RaceWithSOFViewData) {
super();
this.data = data;
}
get id(): string { return this.data.id; }
get track(): string { return this.data.track; }
get strengthOfField(): number | null { return this.data.strengthOfField; }
}