use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.DecoupleMbusDeviceByChannelRequestData in project open-smart-grid-platform by OSGP.
the class DecoupleMbusDeviceByChannelRequestFactory method fromGatewayAndChannel.
public static DecoupleMbusDeviceByChannelRequest fromGatewayAndChannel(final String gatewayDeviceIdentification, final String channel) {
final DecoupleMbusDeviceByChannelRequest request = new DecoupleMbusDeviceByChannelRequest();
request.setDeviceIdentification(gatewayDeviceIdentification);
final DecoupleMbusDeviceByChannelRequestData requestData = new DecoupleMbusDeviceByChannelRequestData();
requestData.setChannel(Short.parseShort(channel));
request.setDecoupleMbusDeviceByChannelRequestData(requestData);
return request;
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.DecoupleMbusDeviceByChannelRequestData in project open-smart-grid-platform by OSGP.
the class DecoupleMbusDeviceByChannelRequestFactory method fromSettings.
public static DecoupleMbusDeviceByChannelRequest fromSettings(final Map<String, String> settings) {
final DecoupleMbusDeviceByChannelRequest request = new DecoupleMbusDeviceByChannelRequest();
final DecoupleMbusDeviceByChannelRequestData requestData = new DecoupleMbusDeviceByChannelRequestData();
requestData.setChannel(Short.valueOf(settings.get(PlatformKeys.KEY_CHANNEL)));
request.setDecoupleMbusDeviceByChannelRequestData(requestData);
request.setDeviceIdentification(settings.get(PlatformKeys.KEY_DEVICE_IDENTIFICATION));
return request;
}
Aggregations