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;
}
Aggregations