15 lines
367 B
TypeScript
15 lines
367 B
TypeScript
import { RaceWithSOFDTO } from '../types/generated/RaceWithSOFDTO';
|
|
|
|
export class RaceWithSOFViewModel {
|
|
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[];
|
|
} |