15 lines
359 B
TypeScript
15 lines
359 B
TypeScript
import { DriverSummaryDTO } from '@/lib/types/generated/DriverSummaryDTO';
|
|
|
|
import { ViewModel } from "../contracts/view-models/ViewModel";
|
|
|
|
export class ProtestDriverViewModel extends ViewModel {
|
|
constructor(private readonly dto: DriverSummaryDTO) {}
|
|
|
|
get id(): string {
|
|
return this.dto.id;
|
|
}
|
|
|
|
get name(): string {
|
|
return this.dto.name;
|
|
}
|
|
} |