20 lines
533 B
TypeScript
20 lines
533 B
TypeScript
import { LeagueScoringPresetDTO } from '@/lib/types/generated/LeagueScoringPresetDTO';
|
|
|
|
/**
|
|
* LeagueScoringPresetViewModel
|
|
*
|
|
* View model for league scoring preset configuration
|
|
*/
|
|
export class LeagueScoringPresetViewModel {
|
|
readonly id: string;
|
|
readonly name: string;
|
|
readonly sessionSummary: string;
|
|
readonly bonusSummary?: string;
|
|
|
|
constructor(dto: LeagueScoringPresetDTO) {
|
|
this.id = dto.id;
|
|
this.name = dto.name;
|
|
this.sessionSummary = dto.sessionSummary;
|
|
this.bonusSummary = dto.bonusSummary;
|
|
}
|
|
} |