Simplify some code logic
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / OCPPResponseService.ts
1 import ChargingStation from '../ChargingStation';
2 import { JsonType } from '../../types/JsonType';
3 import { RequestCommand } from '../../types/ocpp/Requests';
4
5 export default abstract class OCPPResponseService {
6 protected chargingStation: ChargingStation;
7
8 constructor(chargingStation: ChargingStation) {
9 this.chargingStation = chargingStation;
10 }
11
12 public abstract handleResponse(commandName: RequestCommand, payload: JsonType | string, requestPayload: JsonType): Promise<void>;
13 }