use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetMbusEncryptionKeyStatusByChannelRequestData in project open-smart-grid-platform by OSGP.
the class GetMbusEncryptionKeyStatusByChannelRequestFactory method fromParameterMap.
public static GetMbusEncryptionKeyStatusByChannelRequest fromParameterMap(final Map<String, String> requestParameters) {
final GetMbusEncryptionKeyStatusByChannelRequest request = new GetMbusEncryptionKeyStatusByChannelRequest();
final GetMbusEncryptionKeyStatusByChannelRequestData requestData = new GetMbusEncryptionKeyStatusByChannelRequestData();
request.setGatewayDeviceIdentification(requestParameters.get(PlatformSmartmeteringKeys.KEY_DEVICE_IDENTIFICATION));
requestData.setChannel(Short.parseShort(requestParameters.get(PlatformSmartmeteringKeys.KEY_CHANNEL)));
request.setGetMbusEncryptionKeyStatusByChannelRequestData(requestData);
return request;
}
Aggregations