X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcharging-station%2Focpp%2F1.6%2FOCPP16RequestService.ts;h=2a4165c491471064aca600a321b838ecfe2259ff;hb=e3822d6f1b40477f7308ad70c290ed2c4106c585;hp=75e113d21162efaecb375b069ab60e124552242c;hpb=094889611486ef8717ae9d6850a1ccb1e6ca6027;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ocpp/1.6/OCPP16RequestService.ts b/src/charging-station/ocpp/1.6/OCPP16RequestService.ts index 75e113d2..2a4165c4 100644 --- a/src/charging-station/ocpp/1.6/OCPP16RequestService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16RequestService.ts @@ -3,7 +3,7 @@ import type ChargingStation from '../../ChargingStation'; import Constants from '../../../utils/Constants'; import { ErrorType } from '../../../types/ocpp/ErrorType'; -import { JsonType } from '../../../types/JsonType'; +import { JsonObject } from '../../../types/JsonType'; import { OCPP16RequestCommand } from '../../../types/ocpp/1.6/Requests'; import { OCPP16ServiceUtils } from './OCPP16ServiceUtils'; import OCPPError from '../../../exception/OCPPError'; @@ -22,9 +22,9 @@ export default class OCPP16RequestService extends OCPPRequestService { super(chargingStation, ocppResponseService); } - public async requestHandler( + public async requestHandler( commandName: OCPP16RequestCommand, - commandParams?: JsonType, + commandParams?: JsonObject, params?: RequestParams ): Promise { if (Object.values(OCPP16RequestCommand).includes(commandName)) { @@ -43,9 +43,9 @@ export default class OCPP16RequestService extends OCPPRequestService { ); } - private buildRequestPayload( + private buildRequestPayload( commandName: OCPP16RequestCommand, - commandParams?: JsonType + commandParams?: JsonObject ): Request { let connectorId: number; switch (commandName) {