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); }
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); }
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); }