17 lines
389 B
TypeScript
17 lines
389 B
TypeScript
import { ViewModel } from "../contracts/view-models/ViewModel";
|
|
import type { ProtestDriverViewData } from "../view-data/ProtestDriverViewData";
|
|
|
|
export class ProtestDriverViewModel extends ViewModel {
|
|
constructor(private readonly data: ProtestDriverViewData) {
|
|
super();
|
|
}
|
|
|
|
get id(): string {
|
|
return this.data.id;
|
|
}
|
|
|
|
get name(): string {
|
|
return this.data.name;
|
|
}
|
|
}
|