Search in sources :

Example 1 with CoupleMbusDeviceByChannelRequestData

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

the class CoupleMbusDeviceByChannelRequestFactory method fromSettings.

public static CoupleMbusDeviceByChannelRequest fromSettings(final Map<String, String> settings) {
    final CoupleMbusDeviceByChannelRequest request = new CoupleMbusDeviceByChannelRequest();
    final CoupleMbusDeviceByChannelRequestData requestData = new CoupleMbusDeviceByChannelRequestData();
    requestData.setChannel(Short.valueOf(settings.get(PlatformKeys.KEY_CHANNEL)));
    request.setCoupleMbusDeviceByChannelRequestData(requestData);
    request.setDeviceIdentification(settings.get(PlatformKeys.KEY_DEVICE_IDENTIFICATION));
    return request;
}
Also used : CoupleMbusDeviceByChannelRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.CoupleMbusDeviceByChannelRequest) CoupleMbusDeviceByChannelRequestData(org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.CoupleMbusDeviceByChannelRequestData)

Aggregations

CoupleMbusDeviceByChannelRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.CoupleMbusDeviceByChannelRequest)1 CoupleMbusDeviceByChannelRequestData (org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.CoupleMbusDeviceByChannelRequestData)1