X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Fui-websocket-services%2FUIService001.ts;h=18fb66a9d4a08589883bcb3569622bccac817034;hb=3e0905a14af7b7e0a96e859d6c4c615044845d54;hp=a9bc401c98f2f92895620bf57ca21b3e8f15b50c;hpb=d18886407cdb8b8148c87492f2c953075e708401;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ui-websocket-services/UIService001.ts b/src/charging-station/ui-websocket-services/UIService001.ts index a9bc401c..18fb66a9 100644 --- a/src/charging-station/ui-websocket-services/UIService001.ts +++ b/src/charging-station/ui-websocket-services/UIService001.ts @@ -7,10 +7,16 @@ import UIWebSocketServer from '../UIWebSocketServer'; export default class UIService001 extends AbstractUIService { constructor(uiWebSocketServer: UIWebSocketServer) { super(uiWebSocketServer); - this.messageHandlers.set(ProtocolCommand.START_TRANSACTION, this.handleStartTransaction.bind(this) as ProtocolRequestHandler); - this.messageHandlers.set(ProtocolCommand.STOP_TRANSACTION, this.handleStopTransaction.bind(this) as ProtocolRequestHandler); + this.messageHandlers.set( + ProtocolCommand.START_TRANSACTION, + this.handleStartTransaction.bind(this) as ProtocolRequestHandler + ); + this.messageHandlers.set( + ProtocolCommand.STOP_TRANSACTION, + this.handleStopTransaction.bind(this) as ProtocolRequestHandler + ); } - private handleStartTransaction(payload: JsonType): void { } - private handleStopTransaction(payload: JsonType): void { } + private handleStartTransaction(payload: JsonType): void {} + private handleStopTransaction(payload: JsonType): void {} }