UI service attribute rename: workerBroadcastChannel -> uiServiceWorkerBroadcastChannel
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 23 Aug 2022 22:42:09 +0000 (00:42 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 23 Aug 2022 22:42:09 +0000 (00:42 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ui-server/ui-services/AbstractUIService.ts
src/charging-station/ui-server/ui-services/UIService001.ts

index 9c1525dc0aa6df441c0a726d32c3fa09e4f84593..aa35ac2b5dda360efa1e5f07791182b34886a2da 100644 (file)
@@ -24,7 +24,7 @@ export default abstract class AbstractUIService {
   protected readonly version: ProtocolVersion;
   protected readonly uiServer: AbstractUIServer;
   protected readonly requestHandlers: Map<ProcedureName, ProtocolRequestHandler>;
-  protected workerBroadcastChannel: UIServiceWorkerBroadcastChannel;
+  protected uiServiceWorkerBroadcastChannel: UIServiceWorkerBroadcastChannel;
 
   constructor(uiServer: AbstractUIServer, version: ProtocolVersion) {
     this.version = version;
@@ -34,7 +34,7 @@ export default abstract class AbstractUIService {
       [ProcedureName.START_SIMULATOR, this.handleStartSimulator.bind(this)],
       [ProcedureName.STOP_SIMULATOR, this.handleStopSimulator.bind(this)],
     ]);
-    this.workerBroadcastChannel = new UIServiceWorkerBroadcastChannel(this);
+    this.uiServiceWorkerBroadcastChannel = new UIServiceWorkerBroadcastChannel(this);
   }
 
   public async requestHandler(request: RawData): Promise<void> {
index 88a02bbac96fe48b942949b70ea090b0dd623ed4..d4f59ebc5e71746f609492e27d2042ca9be16101 100644 (file)
@@ -33,7 +33,7 @@ export default class UIService001 extends AbstractUIService {
   }
 
   private handleStartTransaction(uuid: string, payload: RequestPayload): void {
-    this.workerBroadcastChannel.sendRequest([
+    this.uiServiceWorkerBroadcastChannel.sendRequest([
       uuid,
       BroadcastChannelProcedureName.START_TRANSACTION,
       payload as BroadcastChannelRequestPayload,
@@ -41,7 +41,7 @@ export default class UIService001 extends AbstractUIService {
   }
 
   private handleStopTransaction(uuid: string, payload: RequestPayload): void {
-    this.workerBroadcastChannel.sendRequest([
+    this.uiServiceWorkerBroadcastChannel.sendRequest([
       uuid,
       BroadcastChannelProcedureName.STOP_TRANSACTION,
       payload as BroadcastChannelRequestPayload,
@@ -49,7 +49,7 @@ export default class UIService001 extends AbstractUIService {
   }
 
   private handleStartChargingStation(uuid: string, payload: RequestPayload): void {
-    this.workerBroadcastChannel.sendRequest([
+    this.uiServiceWorkerBroadcastChannel.sendRequest([
       uuid,
       BroadcastChannelProcedureName.START_CHARGING_STATION,
       payload as BroadcastChannelRequestPayload,
@@ -57,7 +57,7 @@ export default class UIService001 extends AbstractUIService {
   }
 
   private handleStopChargingStation(uuid: string, payload: RequestPayload): void {
-    this.workerBroadcastChannel.sendRequest([
+    this.uiServiceWorkerBroadcastChannel.sendRequest([
       uuid,
       BroadcastChannelProcedureName.STOP_CHARGING_STATION,
       payload as BroadcastChannelRequestPayload,