14 lines
648 B
TypeScript
14 lines
648 B
TypeScript
import { ViewModel } from "../contracts/view-models/ViewModel";
|
|
import type { RaceDetailsRaceViewData } from "../view-data/RaceDetailsViewData";
|
|
|
|
export class RaceDetailsRaceViewModel extends ViewModel {
|
|
private readonly data: RaceDetailsRaceViewData;
|
|
constructor(data: RaceDetailsRaceViewData) { super(); this.data = data; }
|
|
get id(): string { return this.data.id; }
|
|
get track(): string { return this.data.track; }
|
|
get car(): string { return this.data.car; }
|
|
get scheduledAt(): string { return this.data.scheduledAt; }
|
|
get status(): string { return this.data.status; }
|
|
get sessionType(): string { return this.data.sessionType; }
|
|
}
|