use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetActivityCalendarRequest in project open-smart-grid-platform by OSGP.
the class SetActivityCalendarRequestBuilder method build.
public SetActivityCalendarRequest build() {
final SetActivityCalendarRequest request = new SetActivityCalendarRequest();
request.setActivityCalendar(this.getActivityCalendarType());
return request;
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetActivityCalendarRequest in project open-smart-grid-platform by OSGP.
the class BundledSetActivityCalendarSteps method theBundleRequestContainsASetActivityCalendarAction.
@Given("^the bundle request contains a set activity calendar action$")
public void theBundleRequestContainsASetActivityCalendarAction() throws Throwable {
SetActivityCalendarRequest action;
if (ScenarioContext.current().get(PlatformSmartmeteringKeys.ACTIVITY_CALENDAR) == null) {
action = new SetActivityCalendarRequestBuilder().withDefaults().build();
} else {
final ActivityCalendar activityCalendar = (ActivityCalendar) ScenarioContext.current().get(PlatformSmartmeteringKeys.ACTIVITY_CALENDAR);
action = new SetActivityCalendarRequestBuilder().withActivityCalendar(activityCalendar).build();
}
this.addActionToBundleRequest(action);
}
Aggregations