Files
gridpilot.gg/apps/website/lib/view-models/LeagueScoringConfigViewModel.ts
2026-01-12 01:01:49 +01:00

21 lines
725 B
TypeScript

import { LeagueScoringConfigDTO } from '@/lib/types/generated/LeagueScoringConfigDTO';
import type { LeagueScoringChampionshipDTO } from '@/lib/types/generated/LeagueScoringChampionshipDTO';
/**
* LeagueScoringConfigViewModel
*
* View model for league scoring configuration
*/
export class LeagueScoringConfigViewModel {
readonly gameName: string;
readonly scoringPresetName?: string;
readonly dropPolicySummary?: string;
readonly championships?: LeagueScoringChampionshipDTO[];
constructor(dto: LeagueScoringConfigDTO) {
this.gameName = dto.gameName;
this.scoringPresetName = dto.scoringPresetName;
this.dropPolicySummary = dto.dropPolicySummary;
this.championships = dto.championships;
}
}