use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.PowerQualityObjects in project open-smart-grid-platform by OSGP.
the class ActualPowerQualityResponseDataConverter method convert.
@Override
public org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.ActualPowerQualityData convert(final ActualPowerQualityData source, final Type<? extends org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.ActualPowerQualityData> destinationType, final MappingContext mappingContext) {
if (source == null) {
return null;
}
final org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.ActualPowerQualityData result = new org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.ActualPowerQualityData();
final PowerQualityObjects powerQualityObjects = new PowerQualityObjects();
powerQualityObjects.getPowerQualityObject().addAll(this.mapperFacade.mapAsList(source.getPowerQualityObjects(), PowerQualityObject.class));
result.setPowerQualityObjects(powerQualityObjects);
final PowerQualityValues powerQualityValues = new PowerQualityValues();
powerQualityValues.getPowerQualityValue().addAll(this.mapPowerQualityValues(source));
result.setPowerQualityValues(powerQualityValues);
return result;
}
Aggregations