refactor core presenters

This commit is contained in:
2025-12-19 19:42:19 +01:00
parent 8116fe888f
commit 94fc538f44
228 changed files with 2817 additions and 3097 deletions

View File

@@ -1,16 +1,16 @@
import { DriverStatsDTO } from '../dtos/DriverStatsDTO';
import type { ITotalDriversPresenter, TotalDriversResultDTO } from '../../../../../core/racing/application/presenters/ITotalDriversPresenter';
import type { TotalDriversOutputPort } from '../../../../../core/racing/application/ports/output/TotalDriversOutputPort';
export class DriverStatsPresenter implements ITotalDriversPresenter {
export class DriverStatsPresenter {
private result: DriverStatsDTO | null = null;
reset() {
this.result = null;
}
present(dto: TotalDriversResultDTO) {
present(output: TotalDriversOutputPort) {
this.result = {
totalDrivers: dto.totalDrivers,
totalDrivers: output.totalDrivers,
};
}