Privatize some attributes in the ChargingStation class
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 19 Sep 2021 09:34:00 +0000 (11:34 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 19 Sep 2021 09:34:00 +0000 (11:34 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index aa5d24de2741e75410b433879d03fab0a93c8409..79336707c621f0785e14baa78f860f4bbb260a9a 100644 (file)
@@ -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<string, Request>;
-  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;