You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
689 B

import { Expose, Type } from 'class-transformer';
import { Race } from "./race.model";
import { SeasonStanding } from "./season-standing.model";
import { Racer } from './racer.model';
export class Season {
@Expose()
id: string = "0";
@Expose()
title: string = "";
@Expose()
subTitle: string = "";
@Expose()
@Type(() => Date)
startingDate: Date = new Date(0);
@Expose()
@Type(() => Race)
races: Race[] = [];
@Expose()
@Type(() => Racer)
racers: Racer[] = [];
@Expose()
@Type(() => SeasonStanding)
standings: SeasonStanding[] = [];
getStartingDate() {
return this.startingDate.toUTCString();
}
}