Files
gridpilot.gg/apps/api/src/domain/league/presenters/TransferLeagueOwnershipPresenter.ts
2025-12-25 13:40:38 +01:00

23 lines
737 B
TypeScript

import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
import type { TransferLeagueOwnershipResult } from '@core/racing/application/use-cases/TransferLeagueOwnershipUseCase';
import type { TransferLeagueOwnershipOutputDTO } from '../dtos/TransferLeagueOwnershipOutputDTO';
export class TransferLeagueOwnershipPresenter implements UseCaseOutputPort<TransferLeagueOwnershipResult> {
private result: TransferLeagueOwnershipOutputDTO | null = null;
reset() {
this.result = null;
}
present(result: TransferLeagueOwnershipResult): void {
void result;
this.result = {
success: true,
};
}
getViewModel(): TransferLeagueOwnershipOutputDTO | null {
return this.result;
}
}