From 2d1e3c13d259d44a1607ce39e80d90820ac58d3e Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Sun, 6 Apr 2025 10:58:58 -0700 Subject: [PATCH] add an id string argument for the system --- src/entities/InterchangeSystem.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/entities/InterchangeSystem.ts b/src/entities/InterchangeSystem.ts index 1c34506..5a2dc9f 100644 --- a/src/entities/InterchangeSystem.ts +++ b/src/entities/InterchangeSystem.ts @@ -8,12 +8,22 @@ import { ShuttleGetterSetterRepository } from "../repositories/ShuttleGetterSett export interface InterchangeSystemBuilderArguments { name: string; + + /** + * ID to identify the system internally and in the API. + */ + id: string; + + /** + * ID for fetching shuttle data from the Passio GO! system. + */ passioSystemId: string; } export class InterchangeSystem { constructor( public name: string, + public id: string, public shuttleDataLoader: ShuttleRepositoryLoader, public shuttleRepository: ShuttleGetterSetterRepository, public notificationScheduler: ETANotificationScheduler, @@ -38,6 +48,7 @@ export class InterchangeSystem { return new InterchangeSystem( args.name, + args.id, shuttleDataLoader, shuttleRepository, notificationScheduler,