34 lines
754 B
TypeScript
34 lines
754 B
TypeScript
export interface RaceWithSOFViewModel {
|
|
id: string;
|
|
leagueId: string;
|
|
scheduledAt: string;
|
|
track: string;
|
|
trackId: string;
|
|
car: string;
|
|
carId: string;
|
|
sessionType: string;
|
|
status: string;
|
|
strengthOfField: number | null;
|
|
registeredCount: number;
|
|
maxParticipants: number;
|
|
participantCount: number;
|
|
}
|
|
|
|
export interface IRaceWithSOFPresenter {
|
|
present(
|
|
raceId: string,
|
|
leagueId: string,
|
|
scheduledAt: Date,
|
|
track: string,
|
|
trackId: string,
|
|
car: string,
|
|
carId: string,
|
|
sessionType: string,
|
|
status: string,
|
|
strengthOfField: number | null,
|
|
registeredCount: number,
|
|
maxParticipants: number,
|
|
participantCount: number
|
|
): RaceWithSOFViewModel;
|
|
getViewModel(): RaceWithSOFViewModel;
|
|
} |