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=e6ee2d2cddc405b1cd54b40f8d3de26155bbe489;hpb=b2b606263e2676354259164d532ff9aa91ccdf87;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 e6ee2d2c..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, + procedureName, this.handleProtocolRequest.bind(this) as ProtocolRequestHandler - ); + ) } } }