use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetPushSetupAlarmRequest in project open-smart-grid-platform by OSGP.
the class BundledSetPushSetupAlarmSteps method theBundleRequestContainsASetPushSetupAlarmAction.
@Given("^the bundle request contains a set push setup alarm action with parameters$")
public void theBundleRequestContainsASetPushSetupAlarmAction(final Map<String, String> parameters) throws Throwable {
final SetPushSetupAlarmRequest action = new SetPushSetupAlarmRequestBuilder().fromParameterMap(parameters).build();
this.addActionToBundleRequest(action);
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetPushSetupAlarmRequest in project open-smart-grid-platform by OSGP.
the class BundledSetPushSetupAlarmSteps method theBundleRequestContainsASetPushSetupAlarmAction.
@Given("^the bundle request contains a set push setup alarm action$")
public void theBundleRequestContainsASetPushSetupAlarmAction() throws Throwable {
final SetPushSetupAlarmRequest action = new SetPushSetupAlarmRequestBuilder().withDefaults().build();
this.addActionToBundleRequest(action);
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetPushSetupAlarmRequest in project open-smart-grid-platform by OSGP.
the class SetPushSetupAlarmRequestBuilder method build.
public SetPushSetupAlarmRequest build() {
final SetPushSetupAlarmRequest request = new SetPushSetupAlarmRequest();
final PushSetupAlarm pushSetupAlarm = new PushSetupAlarm();
pushSetupAlarm.setHost(this.host);
pushSetupAlarm.setPort(this.port);
pushSetupAlarm.getPushObjectList().addAll(this.pushObjectList);
request.setPushSetupAlarm(pushSetupAlarm);
return request;
}
Aggregations