16 lines
672 B
TypeScript
16 lines
672 B
TypeScript
import { ViewModel } from "../contracts/view-models/ViewModel";
|
|
import type { LeagueScoringConfigViewData } from "../view-data/LeagueScoringConfigViewData";
|
|
|
|
export class LeagueScoringConfigViewModel extends ViewModel {
|
|
private readonly data: LeagueScoringConfigViewData;
|
|
|
|
constructor(data: LeagueScoringConfigViewData) {
|
|
super();
|
|
this.data = data;
|
|
}
|
|
|
|
get gameName(): string { return this.data.gameName; }
|
|
get scoringPresetName(): string | undefined { return this.data.scoringPresetName; }
|
|
get dropPolicySummary(): string | undefined { return this.data.dropPolicySummary; }
|
|
get championships(): any[] | undefined { return this.data.championships; }
|
|
} |