public static TestStackExRequest decode(UaDecoder decoder) {
    RequestHeader _requestHeader = decoder.decodeSerializable("RequestHeader", RequestHeader.class);
    UInteger _testId = decoder.decodeUInt32("TestId");
    Integer _iteration = decoder.decodeInt32("Iteration");
    CompositeTestType _input = decoder.decodeSerializable("Input", CompositeTestType.class);

    return new TestStackExRequest(_requestHeader, _testId, _iteration, _input);
  }
Exemple #2
0
  public static CallResponse decode(UaDecoder decoder) {
    ResponseHeader _responseHeader =
        decoder.decodeSerializable("ResponseHeader", ResponseHeader.class);
    CallMethodResult[] _results =
        decoder.decodeArray("Results", decoder::decodeSerializable, CallMethodResult.class);
    DiagnosticInfo[] _diagnosticInfos =
        decoder.decodeArray("DiagnosticInfos", decoder::decodeDiagnosticInfo, DiagnosticInfo.class);

    return new CallResponse(_responseHeader, _results, _diagnosticInfos);
  }
Exemple #3
0
  public static ReadResponse decode(UaDecoder decoder) {
    ResponseHeader _responseHeader =
        decoder.decodeSerializable("ResponseHeader", ResponseHeader.class);
    DataValue[] _results =
        decoder.decodeArray("Results", decoder::decodeDataValue, DataValue.class);
    DiagnosticInfo[] _diagnosticInfos =
        decoder.decodeArray("DiagnosticInfos", decoder::decodeDiagnosticInfo, DiagnosticInfo.class);

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