From: Jérôme Benoit Date: Fri, 2 Sep 2022 15:05:27 +0000 (+0200) Subject: UI server: refine attributes scope X-Git-Tag: v1.1.70~21 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=53870cffad98eb2f1b0cfad79c3400551e2ecd1d;p=e-mobility-charging-stations-simulator.git UI server: refine attributes scope Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/UIServiceWorkerBroadcastChannel.ts b/src/charging-station/UIServiceWorkerBroadcastChannel.ts index 5986a051..652d825a 100644 --- a/src/charging-station/UIServiceWorkerBroadcastChannel.ts +++ b/src/charging-station/UIServiceWorkerBroadcastChannel.ts @@ -18,7 +18,7 @@ type Responses = { export default class UIServiceWorkerBroadcastChannel extends WorkerBroadcastChannel { private readonly uiService: AbstractUIService; - private responses: Map; + private readonly responses: Map; constructor(uiService: AbstractUIService) { super(); diff --git a/src/charging-station/ui-server/ui-services/AbstractUIService.ts b/src/charging-station/ui-server/ui-services/AbstractUIService.ts index 9120f199..71e6888b 100644 --- a/src/charging-station/ui-server/ui-services/AbstractUIService.ts +++ b/src/charging-station/ui-server/ui-services/AbstractUIService.ts @@ -24,10 +24,10 @@ import type { AbstractUIServer } from '../AbstractUIServer'; const moduleName = 'AbstractUIService'; export default abstract class AbstractUIService { - protected readonly version: ProtocolVersion; - protected readonly uiServer: AbstractUIServer; protected readonly requestHandlers: Map; - private uiServiceWorkerBroadcastChannel: UIServiceWorkerBroadcastChannel; + private readonly version: ProtocolVersion; + private readonly uiServer: AbstractUIServer; + private readonly uiServiceWorkerBroadcastChannel: UIServiceWorkerBroadcastChannel; private readonly broadcastChannelRequests: Map; constructor(uiServer: AbstractUIServer, version: ProtocolVersion) {