import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
import type { UpdateLeagueMemberRoleResult } from '@core/racing/application/use-cases/UpdateLeagueMemberRoleUseCase';
import type { UpdateLeagueMemberRoleOutputDTO } from '../dtos/UpdateLeagueMemberRoleOutputDTO';

export class UpdateLeagueMemberRolePresenter implements UseCaseOutputPort<UpdateLeagueMemberRoleResult> {
  private result: UpdateLeagueMemberRoleOutputDTO | null = null;

  reset() {
    this.result = null;
  }

  present(result: UpdateLeagueMemberRoleResult): void {
    void result;

    this.result = {
      success: true,
    };
  }

  getViewModel(): UpdateLeagueMemberRoleOutputDTO | null {
    return this.result;
  }
}