19 lines
544 B
TypeScript
19 lines
544 B
TypeScript
import { LeagueStatsOutputPort } from '@core/racing/application/ports/output/LeagueStatsOutputPort';
|
|
import { LeagueStatsDTO } from '../dtos/LeagueStatsDTO';
|
|
import type { Presenter } from '@core/shared/presentation';
|
|
|
|
export class LeagueStatsPresenter implements Presenter<LeagueStatsOutputPort, LeagueStatsDTO> {
|
|
private result: LeagueStatsDTO | null = null;
|
|
|
|
reset() {
|
|
this.result = null;
|
|
}
|
|
|
|
present(dto: LeagueStatsOutputPort) {
|
|
this.result = dto;
|
|
}
|
|
|
|
getViewModel(): LeagueStatsDTO | null {
|
|
return this.result;
|
|
}
|
|
} |