use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.PeriodicMeterReadsGasRequest in project open-smart-grid-platform by OSGP.
the class PeriodicMeterReadsGasRequestFactory method fromParameterMap.
public static PeriodicMeterReadsGasRequest fromParameterMap(final Map<String, String> requestParameters) {
final PeriodicMeterReadsGasRequest periodicMeterReadsGasRequest = new PeriodicMeterReadsGasRequest();
periodicMeterReadsGasRequest.setDeviceIdentification(getString(requestParameters, PlatformKeys.KEY_DEVICE_IDENTIFICATION, PlatformSmartmeteringDefaults.DEFAULT_SMART_METER_GAS_DEVICE_IDENTIFICATION));
periodicMeterReadsGasRequest.setPeriodicReadsRequestData(PeriodicReadsRequestDataFactory.fromParameterMap(requestParameters));
return periodicMeterReadsGasRequest;
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.PeriodicMeterReadsGasRequest in project open-smart-grid-platform by OSGP.
the class PeriodicMeterReadsGasSteps method theGetMeterReadsGasRequestIsReceived.
@When("^the get \"([^\"]*)\" meter reads gas request is received$")
public void theGetMeterReadsGasRequestIsReceived(final String periodType, final Map<String, String> settings) throws Throwable {
final PeriodicMeterReadsGasRequest request = PeriodicMeterReadsGasRequestFactory.fromParameterMap(settings);
final PeriodicMeterReadsGasAsyncResponse asyncResponse = this.requestClient.doRequest(request);
assertThat(asyncResponse).isNotNull();
ScenarioContext.current().put(PlatformKeys.KEY_CORRELATION_UID, asyncResponse.getCorrelationUid());
}
Aggregations