view data fixes

This commit is contained in:
2026-01-23 15:30:23 +01:00
parent e22033be38
commit f8099f04bc
213 changed files with 3466 additions and 3003 deletions

View File

@@ -1,15 +1,16 @@
import { DriverSummaryDTO } from '@/lib/types/generated/DriverSummaryDTO';
import { ViewModel } from "../contracts/view-models/ViewModel";
import type { ProtestDriverViewData } from "../view-data/ProtestDriverViewData";
export class ProtestDriverViewModel extends ViewModel {
constructor(private readonly dto: DriverSummaryDTO) {}
constructor(private readonly data: ProtestDriverViewData) {
super();
}
get id(): string {
return this.dto.id;
return this.data.id;
}
get name(): string {
return this.dto.name;
return this.data.name;
}
}
}