Search in sources :

Example 1 with GetMbusEncryptionKeyStatusByChannelRequestData

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;
}
Also used : GetMbusEncryptionKeyStatusByChannelRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetMbusEncryptionKeyStatusByChannelRequest) GetMbusEncryptionKeyStatusByChannelRequestData(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetMbusEncryptionKeyStatusByChannelRequestData)

Aggregations

GetMbusEncryptionKeyStatusByChannelRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetMbusEncryptionKeyStatusByChannelRequest)1 GetMbusEncryptionKeyStatusByChannelRequestData (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetMbusEncryptionKeyStatusByChannelRequestData)1