From: Jérôme Benoit Date: Tue, 23 Aug 2022 22:42:09 +0000 (+0200) Subject: UI service attribute rename: workerBroadcastChannel -> uiServiceWorkerBroadcastChannel X-Git-Tag: v1.1.66~17 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6812b4e11d45a0d6179a266687c7ad9aa6e3b538;p=e-mobility-charging-stations-simulator.git UI service attribute rename: workerBroadcastChannel -> uiServiceWorkerBroadcastChannel Signed-off-by: Jérôme Benoit --- 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,