Commit | Line | Data |
---|---|---|
c0560973 | 1 | import ChargingStation from '../ChargingStation'; |
d1888640 | 2 | import { JsonType } from '../../types/JsonType'; |
c0560973 JB |
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 | ||
d1888640 | 12 | public abstract handleResponse(commandName: RequestCommand, payload: JsonType | string, requestPayload: JsonType): Promise<void>; |
c0560973 | 13 | } |