15 lines
531 B
TypeScript
15 lines
531 B
TypeScript
import { ViewModel } from "../contracts/view-models/ViewModel";
|
|
import type { LeagueAdminScheduleViewData } from "../view-data/LeagueAdminScheduleViewData";
|
|
|
|
export class LeagueAdminScheduleViewModel extends ViewModel {
|
|
private readonly data: LeagueAdminScheduleViewData;
|
|
|
|
constructor(data: LeagueAdminScheduleViewData) {
|
|
super();
|
|
this.data = data;
|
|
}
|
|
|
|
get seasonId(): string { return this.data.seasonId; }
|
|
get published(): boolean { return this.data.published; }
|
|
get races(): any[] { return this.data.races; }
|
|
} |