mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
40 lines
922 B
TypeScript
40 lines
922 B
TypeScript
import { ICoordinates, IEntityWithId, IEntityWithTimestamp } from "./SharedEntities";
|
|
|
|
export interface IRoute extends IEntityWithId, IEntityWithTimestamp {
|
|
name: string;
|
|
color: string;
|
|
polylineCoordinates: ICoordinates[];
|
|
systemId: string;
|
|
}
|
|
|
|
export interface IStop extends IEntityWithId, IEntityWithTimestamp {
|
|
name: string;
|
|
systemId: string;
|
|
coordinates: ICoordinates;
|
|
}
|
|
|
|
export interface IShuttle extends IEntityWithId, IEntityWithTimestamp {
|
|
coordinates: ICoordinates;
|
|
name: string;
|
|
routeId: string;
|
|
systemId: string;
|
|
orientationInDegrees: number;
|
|
}
|
|
|
|
export interface IEta extends IEntityWithTimestamp {
|
|
secondsRemaining: number;
|
|
shuttleId: string;
|
|
stopId: string;
|
|
systemId: string;
|
|
}
|
|
|
|
export interface IOrderedStop extends IEntityWithTimestamp {
|
|
nextStop?: IOrderedStop;
|
|
previousStop?: IOrderedStop;
|
|
routeId: string;
|
|
stopId: string;
|
|
position: number;
|
|
systemId: string;
|
|
}
|
|
|