From 6812b4e11d45a0d6179a266687c7ad9aa6e3b538 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 24 Aug 2022 00:42:09 +0200 Subject: [PATCH] UI service attribute rename: workerBroadcastChannel -> uiServiceWorkerBroadcastChannel MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .../ui-server/ui-services/AbstractUIService.ts | 4 ++-- .../ui-server/ui-services/UIService001.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/charging-station/ui-server/ui-services/AbstractUIService.ts b/src/charging-station/ui-server/ui-services/AbstractUIService.ts index 9c1525dc..aa35ac2b 100644 --- a/src/charging-station/ui-server/ui-services/AbstractUIService.ts +++ b/src/charging-station/ui-server/ui-services/AbstractUIService.ts @@ -24,7 +24,7 @@ export default abstract class AbstractUIService { protected readonly version: ProtocolVersion; protected readonly uiServer: AbstractUIServer; protected readonly requestHandlers: Map; - 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 { diff --git a/src/charging-station/ui-server/ui-services/UIService001.ts b/src/charging-station/ui-server/ui-services/UIService001.ts index 88a02bba..d4f59ebc 100644 --- a/src/charging-station/ui-server/ui-services/UIService001.ts +++ b/src/charging-station/ui-server/ui-services/UIService001.ts @@ -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, -- 2.34.1