25 lines
684 B
TypeScript
25 lines
684 B
TypeScript
import type {
|
|
ISponsorDashboardPresenter,
|
|
SponsorDashboardViewModel,
|
|
} from '@gridpilot/racing/application/presenters/ISponsorDashboardPresenter';
|
|
import type { SponsorDashboardDTO } from '@gridpilot/racing/application/use-cases/GetSponsorDashboardUseCase';
|
|
|
|
export class SponsorDashboardPresenter implements ISponsorDashboardPresenter {
|
|
private viewModel: SponsorDashboardViewModel = null;
|
|
|
|
reset(): void {
|
|
this.viewModel = null;
|
|
}
|
|
|
|
present(data: SponsorDashboardDTO | null): void {
|
|
this.viewModel = data;
|
|
}
|
|
|
|
getViewModel(): SponsorDashboardViewModel {
|
|
return this.viewModel;
|
|
}
|
|
|
|
getData(): SponsorDashboardDTO | null {
|
|
return this.viewModel;
|
|
}
|
|
} |