Search in sources :

Example 1 with SetDeviceLifecycleStatusByChannelRequestData

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

the class SetDeviceLifecycleStatusByChannelRequestFactory method fromParameterMap.

public static SetDeviceLifecycleStatusByChannelRequest fromParameterMap(final Map<String, String> settings) {
    final SetDeviceLifecycleStatusByChannelRequest request = new SetDeviceLifecycleStatusByChannelRequest();
    final SetDeviceLifecycleStatusByChannelRequestData requestData = new SetDeviceLifecycleStatusByChannelRequestData();
    request.setGatewayDeviceIdentification(settings.get(PlatformSmartmeteringKeys.KEY_DEVICE_IDENTIFICATION));
    requestData.setChannel(Short.parseShort(settings.get(PlatformSmartmeteringKeys.KEY_CHANNEL)));
    requestData.setDeviceLifecycleStatus(DeviceLifecycleStatus.valueOf(settings.get(PlatformSmartmeteringKeys.KEY_DEVICE_LIFECYCLE_STATUS)));
    request.setSetDeviceLifecycleStatusByChannelRequestData(requestData);
    return request;
}
Also used : SetDeviceLifecycleStatusByChannelRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.SetDeviceLifecycleStatusByChannelRequest) SetDeviceLifecycleStatusByChannelRequestData(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.SetDeviceLifecycleStatusByChannelRequestData)

Aggregations

SetDeviceLifecycleStatusByChannelRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.SetDeviceLifecycleStatusByChannelRequest)1 SetDeviceLifecycleStatusByChannelRequestData (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.SetDeviceLifecycleStatusByChannelRequestData)1