Search in sources :

Example 1 with SetActivityCalendarRequest

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;
}
Also used : SetActivityCalendarRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetActivityCalendarRequest)

Example 2 with SetActivityCalendarRequest

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);
}
Also used : ActivityCalendar(org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.activitycalendar.ActivityCalendar) SetActivityCalendarRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetActivityCalendarRequest) SetActivityCalendarRequestBuilder(org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.SetActivityCalendarRequestBuilder) Given(io.cucumber.java.en.Given)

Aggregations

SetActivityCalendarRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetActivityCalendarRequest)2 Given (io.cucumber.java.en.Given)1 SetActivityCalendarRequestBuilder (org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.SetActivityCalendarRequestBuilder)1 ActivityCalendar (org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.activitycalendar.ActivityCalendar)1