X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Fui-server%2Fui-services%2FUIService001.ts;h=511bfa7a3de64383c7302584a5c4c6f42d155157;hb=8fa6f565c86b72f3d6f040d283da83740a51542e;hp=b8ac1c9181069c13cd8d44d075eff95953e223e6;hpb=5edd8ba0f8978cfb3ca9d80f299d9748c6c5970e;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ui-server/ui-services/UIService001.ts b/src/charging-station/ui-server/ui-services/UIService001.ts index b8ac1c91..511bfa7a 100644 --- a/src/charging-station/ui-server/ui-services/UIService001.ts +++ b/src/charging-station/ui-server/ui-services/UIService001.ts @@ -1,15 +1,15 @@ -import { AbstractUIService } from './AbstractUIService'; -import { type ProcedureName, type ProtocolRequestHandler, ProtocolVersion } from '../../../types'; -import type { AbstractUIServer } from '../AbstractUIServer'; +import { type ProtocolRequestHandler, ProtocolVersion } from '../../../types/index.js' +import type { AbstractUIServer } from '../AbstractUIServer.js' +import { AbstractUIService } from './AbstractUIService.js' export class UIService001 extends AbstractUIService { - constructor(uiServer: AbstractUIServer) { - super(uiServer, ProtocolVersion['0.0.1']); - for (const procedureName in AbstractUIService.ProcedureNameToBroadCastChannelProcedureNameMapping) { + constructor (uiServer: AbstractUIServer) { + super(uiServer, ProtocolVersion['0.0.1']) + for (const procedureName of AbstractUIService.ProcedureNameToBroadCastChannelProcedureNameMapping.keys()) { this.requestHandlers.set( - procedureName as ProcedureName, - this.handleProtocolRequest.bind(this) as ProtocolRequestHandler, - ); + procedureName, + this.handleProtocolRequest.bind(this) as ProtocolRequestHandler + ) } } }