Search in sources :

Example 1 with SetActivityCalendarRequestData

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetActivityCalendarRequestData in project open-smart-grid-platform by OSGP.

the class SetActivityCalendarRequestFactory method fromParameterMap.

public static SetActivityCalendarRequest fromParameterMap(final Map<String, String> requestParameters) {
    final SetActivityCalendarRequest setActivityCalendarRequest = new SetActivityCalendarRequest();
    setActivityCalendarRequest.setDeviceIdentification(requestParameters.get(PlatformSmartmeteringKeys.KEY_DEVICE_IDENTIFICATION));
    final ActivityCalendarType activityCalendarType = fetchActivityCalendar();
    final SetActivityCalendarRequestData setActivityCalendarRequestData = new SetActivityCalendarRequestData();
    setActivityCalendarRequestData.setActivityCalendar(activityCalendarType);
    setActivityCalendarRequest.setActivityCalendarData(setActivityCalendarRequestData);
    return setActivityCalendarRequest;
}
Also used : SetActivityCalendarRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetActivityCalendarRequest) ActivityCalendarType(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ActivityCalendarType) SetActivityCalendarRequestData(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetActivityCalendarRequestData)

Aggregations

ActivityCalendarType (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ActivityCalendarType)1 SetActivityCalendarRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetActivityCalendarRequest)1 SetActivityCalendarRequestData (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.SetActivityCalendarRequestData)1