) as JSONSchemaType<OCPP16TriggerMessageRequest>,
],
]);
+ this.validatePayload.bind(this);
}
public async incomingRequestHandler(
) as JSONSchemaType<OCPP16StopTransactionRequest>,
],
]);
+ this.buildRequestPayload.bind(this);
+ this.validatePayload.bind(this);
}
public async requestHandler<Request extends JsonType, Response extends JsonType>(
) as JSONSchemaType<DiagnosticsStatusNotificationResponse>,
],
]);
+ this.validatePayload.bind(this);
}
public async responseHandler(
protected constructor() {
this.ajv = new Ajv();
ajvFormats(this.ajv);
+ this.incomingRequestHandler.bind(this);
+ this.validateIncomingRequestPayload.bind(this);
}
public static getInstance<T extends OCPPIncomingRequestService>(this: new () => T): T {
protected constructor(ocppResponseService: OCPPResponseService) {
this.ocppResponseService = ocppResponseService;
+ this.ajv = new Ajv();
+ ajvFormats(this.ajv);
this.requestHandler.bind(this);
this.sendResponse.bind(this);
this.sendError.bind(this);
- this.ajv = new Ajv();
- ajvFormats(this.ajv);
+ this.internalSendMessage.bind(this);
+ this.buildMessageToSend.bind(this);
+ this.validateRequestPayload.bind(this);
}
public static getInstance<T extends OCPPRequestService>(
protected constructor() {
this.ajv = new Ajv();
ajvFormats(this.ajv);
+ this.responseHandler.bind(this);
+ this.validateResponsePayload.bind(this);
}
public static getInstance<T extends OCPPResponseService>(this: new () => T): T {