897127b6e2ffa029073db6e365c969356c4490da
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / OCPPIncomingRequestService.ts
1 import ChargingStation from '../ChargingStation';
2 import { IncomingRequestCommand } from '../../types/ocpp/Requests';
3
4 export default abstract class OCPPIncomingRequestService {
5 protected chargingStation: ChargingStation;
6
7 constructor(chargingStation: ChargingStation) {
8 this.chargingStation = chargingStation;
9 }
10
11 public abstract handleRequest(messageId: string, commandName: IncomingRequestCommand, commandPayload: Record<string, unknown>): Promise<void>;
12 }