use of org.opensmartgridplatform.domain.core.valueobjects.smartmetering.PushSetupSms in project open-smart-grid-platform by OSGP.
the class PushSetupSmsConverter method convertFrom.
@Override
public PushSetupSms convertFrom(final org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.PushSetupSms source, final Type<PushSetupSms> destinationType, final MappingContext context) {
if (source == null) {
return null;
}
final PushSetupSms.Builder builder = new PushSetupSms.Builder();
final String destination = source.getHost() + ":" + source.getPort();
final SendDestinationAndMethod sendDestinationAndMethod = new SendDestinationAndMethod(TransportServiceType.TCP, destination, MessageType.MANUFACTURER_SPECIFIC);
builder.withSendDestinationAndMethod(sendDestinationAndMethod);
return builder.build();
}
Aggregations