15 lines
498 B
TypeScript
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; }
|
|
} |