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