22 lines
493 B
TypeScript
22 lines
493 B
TypeScript
import type { Standing } from '../../domain/entities/Standing';
|
|
|
|
export interface StandingItemViewModel {
|
|
id: string;
|
|
leagueId: string;
|
|
seasonId: string;
|
|
driverId: string;
|
|
position: number;
|
|
points: number;
|
|
wins: number;
|
|
podiums: number;
|
|
racesCompleted: number;
|
|
}
|
|
|
|
export interface LeagueStandingsViewModel {
|
|
leagueId: string;
|
|
standings: StandingItemViewModel[];
|
|
}
|
|
|
|
export interface ILeagueStandingsPresenter {
|
|
present(standings: Standing[]): LeagueStandingsViewModel;
|
|
} |