21 lines
725 B
TypeScript
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;
|
|
}
|
|
} |