@Test public void firmwareStatusNotificationVerifyResponse() { FirmwareStatusNotificationRequest request = new FirmwareStatusNotificationRequest(); FirmwareStatusNotificationResponse response = motownCentralSystemService.firmwareStatusNotification(request, CHARGING_STATION_ID.getId()); assertNotNull(response); }
@Override public FirmwareStatusNotificationResponse firmwareStatusNotification(FirmwareStatusNotificationRequest request, String chargeBoxIdentity) { ChargingStationId chargingStationId = new ChargingStationId(chargeBoxIdentity); FirmwareStatus status = request.getStatus(); io.motown.domain.api.chargingstation.FirmwareStatus firmwareStatus; if (FirmwareStatus.INSTALLED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.INSTALLED; } else if (FirmwareStatus.DOWNLOADED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.DOWNLOADED; } else if (FirmwareStatus.INSTALLATION_FAILED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.INSTALLATION_FAILED; } else { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.DOWNLOAD_FAILED; } domainService.firmwareStatusUpdate(chargingStationId, firmwareStatus, addOnIdentity); return new FirmwareStatusNotificationResponse(); }
MotownCentralSystemService implements io.motown.ocpp.v15.soap.centralsystem.schema.CentralSystemService { @Override public FirmwareStatusNotificationResponse firmwareStatusNotification(FirmwareStatusNotificationRequest request, String chargeBoxIdentity) { ChargingStationId chargingStationId = new ChargingStationId(chargeBoxIdentity); FirmwareStatus status = request.getStatus(); io.motown.domain.api.chargingstation.FirmwareStatus firmwareStatus; if (FirmwareStatus.INSTALLED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.INSTALLED; } else if (FirmwareStatus.DOWNLOADED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.DOWNLOADED; } else if (FirmwareStatus.INSTALLATION_FAILED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.INSTALLATION_FAILED; } else { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.DOWNLOAD_FAILED; } domainService.firmwareStatusUpdate(chargingStationId, firmwareStatus, addOnIdentity); return new FirmwareStatusNotificationResponse(); } }
MotownCentralSystemService implements io.motown.ocpp.v15.soap.centralsystem.schema.CentralSystemService { @Override public FirmwareStatusNotificationResponse firmwareStatusNotification(FirmwareStatusNotificationRequest request, String chargeBoxIdentity) { ChargingStationId chargingStationId = new ChargingStationId(chargeBoxIdentity); FirmwareStatus status = request.getStatus(); io.motown.domain.api.chargingstation.FirmwareStatus firmwareStatus; if (FirmwareStatus.INSTALLED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.INSTALLED; } else if (FirmwareStatus.DOWNLOADED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.DOWNLOADED; } else if (FirmwareStatus.INSTALLATION_FAILED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.INSTALLATION_FAILED; } else { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.DOWNLOAD_FAILED; } domainService.firmwareStatusUpdate(chargingStationId, firmwareStatus, addOnIdentity); return new FirmwareStatusNotificationResponse(); }  }
MotownCentralSystemService implements io.motown.ocpp.v15.soap.centralsystem.schema.CentralSystemService { @Override public FirmwareStatusNotificationResponse firmwareStatusNotification(FirmwareStatusNotificationRequest request, String chargeBoxIdentity) { ChargingStationId chargingStationId = new ChargingStationId(chargeBoxIdentity); FirmwareStatus status = request.getStatus(); io.motown.domain.api.chargingstation.FirmwareStatus firmwareStatus; if (FirmwareStatus.INSTALLED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.INSTALLED; } else if (FirmwareStatus.DOWNLOADED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.DOWNLOADED; } else if (FirmwareStatus.INSTALLATION_FAILED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.INSTALLATION_FAILED; } else { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.DOWNLOAD_FAILED; } domainService.firmwareStatusUpdate(chargingStationId, firmwareStatus, addOnIdentity); return new FirmwareStatusNotificationResponse(); }  @Override DataTransferResponse dataTransfer(final DataTransferRequest request, final String chargeBoxIdentity); @Override StatusNotificationResponse statusNotification(StatusNotificationRequest request, String chargeBoxIdentity); @Override StopTransactionResponse stopTransaction(StopTransactionRequest request, String chargeBoxIdentity); @Override BootNotificationResponse bootNotification(BootNotificationRequest request, String chargeBoxIdentity); @Override HeartbeatResponse heartbeat(HeartbeatRequest parameters, String chargeBoxIdentity); @Override MeterValuesResponse meterValues(MeterValuesRequest request, String chargeBoxIdentity); @Override DiagnosticsStatusNotificationResponse diagnosticsStatusNotification(DiagnosticsStatusNotificationRequest request, String chargeBoxIdentity); @Override AuthorizeResponse authorize(final AuthorizeRequest request, final String chargeBoxIdentity); @Override FirmwareStatusNotificationResponse firmwareStatusNotification(FirmwareStatusNotificationRequest request, String chargeBoxIdentity); @Override StartTransactionResponse startTransaction(final StartTransactionRequest parameters, final String chargeBoxIdentity); void setDomainService(DomainService domainService); void setContext(WebServiceContext context); void setContinuationTimeout(int continuationTimeout); void setHeartbeatIntervalFallback(int heartbeatIntervalFallback); void setSoapHeaderReader(SoapHeaderReader soapHeaderReader); void setAddOnId(String id); }
MotownCentralSystemService implements io.motown.ocpp.v15.soap.centralsystem.schema.CentralSystemService { @Override public FirmwareStatusNotificationResponse firmwareStatusNotification(FirmwareStatusNotificationRequest request, String chargeBoxIdentity) { ChargingStationId chargingStationId = new ChargingStationId(chargeBoxIdentity); FirmwareStatus status = request.getStatus(); io.motown.domain.api.chargingstation.FirmwareStatus firmwareStatus; if (FirmwareStatus.INSTALLED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.INSTALLED; } else if (FirmwareStatus.DOWNLOADED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.DOWNLOADED; } else if (FirmwareStatus.INSTALLATION_FAILED.equals(status)) { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.INSTALLATION_FAILED; } else { firmwareStatus = io.motown.domain.api.chargingstation.FirmwareStatus.DOWNLOAD_FAILED; } domainService.firmwareStatusUpdate(chargingStationId, firmwareStatus, addOnIdentity); return new FirmwareStatusNotificationResponse(); }  @Override DataTransferResponse dataTransfer(final DataTransferRequest request, final String chargeBoxIdentity); @Override StatusNotificationResponse statusNotification(StatusNotificationRequest request, String chargeBoxIdentity); @Override StopTransactionResponse stopTransaction(StopTransactionRequest request, String chargeBoxIdentity); @Override BootNotificationResponse bootNotification(BootNotificationRequest request, String chargeBoxIdentity); @Override HeartbeatResponse heartbeat(HeartbeatRequest parameters, String chargeBoxIdentity); @Override MeterValuesResponse meterValues(MeterValuesRequest request, String chargeBoxIdentity); @Override DiagnosticsStatusNotificationResponse diagnosticsStatusNotification(DiagnosticsStatusNotificationRequest request, String chargeBoxIdentity); @Override AuthorizeResponse authorize(final AuthorizeRequest request, final String chargeBoxIdentity); @Override FirmwareStatusNotificationResponse firmwareStatusNotification(FirmwareStatusNotificationRequest request, String chargeBoxIdentity); @Override StartTransactionResponse startTransaction(final StartTransactionRequest parameters, final String chargeBoxIdentity); void setDomainService(DomainService domainService); void setContext(WebServiceContext context); void setContinuationTimeout(int continuationTimeout); void setHeartbeatIntervalFallback(int heartbeatIntervalFallback); void setSoapHeaderReader(SoapHeaderReader soapHeaderReader); void setAddOnId(String id); static final String ADD_ON_TYPE; }