public static MonitoredItemCreateRequest decode(UaDecoder decoder) {
    ReadValueId _itemToMonitor = decoder.decodeSerializable("ItemToMonitor", ReadValueId.class);
    MonitoringMode _monitoringMode =
        decoder.decodeEnumeration("MonitoringMode", MonitoringMode.class);
    MonitoringParameters _requestedParameters =
        decoder.decodeSerializable("RequestedParameters", MonitoringParameters.class);

    return new MonitoredItemCreateRequest(_itemToMonitor, _monitoringMode, _requestedParameters);
  }
示例#2
0
  public static WriteResponse decode(UaDecoder decoder) {
    ResponseHeader _responseHeader =
        decoder.decodeSerializable("ResponseHeader", ResponseHeader.class);
    StatusCode[] _results =
        decoder.decodeArray("Results", decoder::decodeStatusCode, StatusCode.class);
    DiagnosticInfo[] _diagnosticInfos =
        decoder.decodeArray("DiagnosticInfos", decoder::decodeDiagnosticInfo, DiagnosticInfo.class);

    return new WriteResponse(_responseHeader, _results, _diagnosticInfos);
  }