view models
This commit is contained in:
15
apps/website/lib/view-models/RaceWithSOFViewModel.ts
Normal file
15
apps/website/lib/view-models/RaceWithSOFViewModel.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { RaceWithSOFDTO } from '../types/generated/RaceWithSOFDTO';
|
||||
|
||||
export class RaceWithSOFViewModel implements RaceWithSOFDTO {
|
||||
id: string;
|
||||
track: string;
|
||||
|
||||
constructor(dto: RaceWithSOFDTO) {
|
||||
this.id = dto.id;
|
||||
this.track = dto.track;
|
||||
}
|
||||
|
||||
// TODO: Add additional fields when RaceWithSOFDTO is updated in OpenAPI spec
|
||||
// sof?: number;
|
||||
// results?: RaceResultViewModel[];
|
||||
}
|
||||
Reference in New Issue
Block a user