czydojade/resources/ts/model/departure.ts
2020-01-23 19:27:08 +01:00

24 lines
411 B
TypeScript

import { Stop } from "./stop";
import { Line } from "./line";
import { Moment } from "moment";
import { Identity } from "./identity";
export interface Departure {
key: string;
display: string;
estimated: Moment;
scheduled?: Moment;
stop: Stop;
line: Line;
delay: number;
vehicle?: Vehicle;
trip?: Identity;
}
export interface Vehicle {
id: string;
// todo: ???
}