import type {
  ILeagueScoringPresetsPresenter,
  LeagueScoringPresetsResultDTO,
  LeagueScoringPresetsViewModel,
} from '@core/racing/application/presenters/ILeagueScoringPresetsPresenter';

export class LeagueScoringPresetsPresenter implements ILeagueScoringPresetsPresenter {
  private viewModel: LeagueScoringPresetsViewModel | null = null;

  reset(): void {
    this.viewModel = null;
  }

  present(dto: LeagueScoringPresetsResultDTO): void {
    this.viewModel = {
      presets: dto.presets,
    };
  }

  getViewModel(): LeagueScoringPresetsViewModel | null {
    return this.viewModel;
  }
}