public static void encode(
     MonitoredItemCreateRequest monitoredItemCreateRequest, UaEncoder encoder) {
   encoder.encodeSerializable(
       "ItemToMonitor",
       monitoredItemCreateRequest._itemToMonitor != null
           ? monitoredItemCreateRequest._itemToMonitor
           : new ReadValueId());
   encoder.encodeEnumeration("MonitoringMode", monitoredItemCreateRequest._monitoringMode);
   encoder.encodeSerializable(
       "RequestedParameters",
       monitoredItemCreateRequest._requestedParameters != null
           ? monitoredItemCreateRequest._requestedParameters
           : new MonitoringParameters());
 }
示例#2
0
 public static void encode(WriteResponse writeResponse, UaEncoder encoder) {
   encoder.encodeSerializable(
       "ResponseHeader",
       writeResponse._responseHeader != null
           ? writeResponse._responseHeader
           : new ResponseHeader());
   encoder.encodeArray("Results", writeResponse._results, encoder::encodeStatusCode);
   encoder.encodeArray(
       "DiagnosticInfos", writeResponse._diagnosticInfos, encoder::encodeDiagnosticInfo);
 }