import type { LeagueScoringPresetDTO } from '@/lib/types/generated/LeagueScoringPresetDTO';

/**
 * View Model for league scoring presets
 * Transform from DTO to ViewModel with UI fields
 */
export class LeagueScoringPresetsViewModel {
  presets: LeagueScoringPresetDTO[];
  totalCount: number;

  constructor(dto: {
    presets: LeagueScoringPresetDTO[];
    totalCount?: number;
  }) {
    this.presets = dto.presets;
    this.totalCount = dto.totalCount ?? dto.presets.length;
  }
}