From: Jérôme Benoit Date: Sun, 19 Sep 2021 09:34:00 +0000 (+0200) Subject: Privatize some attributes in the ChargingStation class X-Git-Tag: v1.1.5~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a472cf2bed2330c2a1a485e5b5a9703806d7d140;p=e-mobility-charging-stations-simulator.git Privatize some attributes in the ChargingStation class Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index aa5d24de..79336707 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -42,20 +42,20 @@ export default class ChargingStation { public stationInfo!: ChargingStationInfo; public connectors: Connectors; public configuration!: ChargingStationConfiguration; - public stopped: boolean; public wsConnection!: WebSocket; public requests: Map; - public messageQueue: string[]; public performanceStatistics!: PerformanceStatistics; public heartbeatSetInterval!: NodeJS.Timeout; - public ocppIncomingRequestService!: OCPPIncomingRequestService; public ocppRequestService!: OCPPRequestService; private index: number; private bootNotificationRequest!: BootNotificationRequest; private bootNotificationResponse!: BootNotificationResponse | null; private connectorsConfigurationHash!: string; + private ocppIncomingRequestService!: OCPPIncomingRequestService; + private messageQueue: string[]; private wsConnectionUrl!: URL; private wsConnectionRestarted: boolean; + private stopped: boolean; private autoReconnectRetryCount: number; private automaticTransactionGenerator!: AutomaticTransactionGenerator; private webSocketPingSetInterval!: NodeJS.Timeout;