0981ca358586e76235dd81f207c214654e5ceee6
[e-mobility-charging-stations-simulator.git] / src / charging-station / ui-server / ui-services / UIService001.ts
1 import { JsonType } from '../../../types/JsonType';
2 import {
3 ProtocolCommand,
4 ProtocolRequestHandler,
5 ProtocolVersion,
6 } from '../../../types/UIProtocol';
7 import { AbstractUIServer } from '../AbstractUIServer';
8 import AbstractUIService from './AbstractUIService';
9
10 export default class UIService001 extends AbstractUIService {
11 constructor(uiServer: AbstractUIServer) {
12 super(uiServer, ProtocolVersion['0.0.1']);
13 this.messageHandlers.set(
14 ProtocolCommand.START_TRANSACTION,
15 this.handleStartTransaction.bind(this) as ProtocolRequestHandler
16 );
17 this.messageHandlers.set(
18 ProtocolCommand.STOP_TRANSACTION,
19 this.handleStopTransaction.bind(this) as ProtocolRequestHandler
20 );
21 }
22
23 private handleStartTransaction(payload: JsonType): void {}
24 private handleStopTransaction(payload: JsonType): void {}
25 }