mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add timestamp to all interfaces
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
export interface IEntityWithId {
|
export interface IEntityWithIdAndOptionalTimestamp {
|
||||||
id: string;
|
id: string;
|
||||||
|
millisecondsSinceEpoch: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ISystem extends IEntityWithId {
|
export interface ISystem extends IEntityWithIdAndOptionalTimestamp {
|
||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -11,20 +12,20 @@ export interface ICoordinates {
|
|||||||
longitude: number;
|
longitude: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IRoute extends IEntityWithId {
|
export interface IRoute extends IEntityWithIdAndOptionalTimestamp {
|
||||||
name: string;
|
name: string;
|
||||||
color: string;
|
color: string;
|
||||||
polylineCoordinates: ICoordinates[];
|
polylineCoordinates: ICoordinates[];
|
||||||
systemId: string;
|
systemId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IStop extends IEntityWithId {
|
export interface IStop extends IEntityWithIdAndOptionalTimestamp {
|
||||||
name: string;
|
name: string;
|
||||||
systemId: string;
|
systemId: string;
|
||||||
coordinates: ICoordinates;
|
coordinates: ICoordinates;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IShuttle extends IEntityWithId {
|
export interface IShuttle extends IEntityWithIdAndOptionalTimestamp {
|
||||||
coordinates: ICoordinates;
|
coordinates: ICoordinates;
|
||||||
name: string;
|
name: string;
|
||||||
routeId: string;
|
routeId: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user