mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add an id string argument for the system
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user