public static Entry For(StringCollection strings) { if (strings == null) { return(new NullEntry()); } else { ArrayEntry arrayEntry = new ArrayEntry(); StringCollection.Enumerator e = strings.GetEnumerator(); while (e.MoveNext()) { arrayEntry.Add(For(e.Current)); } return(arrayEntry); } }
public static Entry For(ExtensionObjectCollection collection) { if (collection == null) { return(new NullEntry()); } else { ArrayEntry array = new ArrayEntry(); ExtensionObjectCollection.Enumerator e = collection.GetEnumerator(); while (e.MoveNext()) { array.Add(For(e.Current)); } return(array); } }
public static Entry For(NodeTypeDescriptionCollection nodeTypeDescriptions) { if (nodeTypeDescriptions == null) { return(new NullEntry()); } else { ArrayEntry arrayEntry = new ArrayEntry(); NodeTypeDescriptionCollection.Enumerator e = nodeTypeDescriptions.GetEnumerator(); while (e.MoveNext()) { arrayEntry.Add(For(e.Current)); } return(arrayEntry); } }
public static Entry For(VariantCollection collection) { if (collection == null) { return(new NullEntry()); } else { ArrayEntry array = new ArrayEntry(); VariantCollection.Enumerator iae = collection.GetEnumerator(); while (iae.MoveNext()) { Variant argument = iae.Current; array.Add(For(argument.Value.ToString())); } return(array); } }
public static Entry For(SubscriptionAcknowledgementCollection collection) { if (collection == null) { return(new NullEntry()); } else { ArrayEntry array = new ArrayEntry(); SubscriptionAcknowledgementCollection.Enumerator e = collection.GetEnumerator(); while (e.MoveNext()) { ObjectEntry oe = new ObjectEntry(); oe.Add("SubscriptionId", For(e.Current.SubscriptionId)); oe.Add("SequenceNo", For(e.Current.SequenceNumber)); array.Add(oe); } return(array); } }
public static Entry For(MonitoredItemModifyRequestCollection collection) { if (collection == null) { return(new NullEntry()); } else { ArrayEntry array = new ArrayEntry(); MonitoredItemModifyRequestCollection.Enumerator e = collection.GetEnumerator(); while (e.MoveNext()) { ObjectEntry itemEntry = new ObjectEntry(); itemEntry.Add("ItemId", For(e.Current.MonitoredItemId)); itemEntry.Add("RequestedParameters", For(e.Current.RequestedParameters)); array.Add(itemEntry); } return(array); } }
public static Entry For(BrowseDescriptionCollection nodesToBrowse) { if (nodesToBrowse == null) { return(new NullEntry()); } else { List <BrowseDescription> .Enumerator e = nodesToBrowse.GetEnumerator(); ArrayEntry entry = new ArrayEntry(); while (e.MoveNext()) { ObjectEntry node = new ObjectEntry(); node.Add("NodeId", For(e.Current.NodeId)); node.Add("BrowseDirection", For(e.Current.BrowseDirection)); entry.Add(node); } return(entry); } }
public static Entry For(DeleteNodesItemCollection nodesToDelete) { if (nodesToDelete == null) { return(new NullEntry()); } else { ArrayEntry entry = new ArrayEntry(); DeleteNodesItemCollection.Enumerator e = nodesToDelete.GetEnumerator(); while (e.MoveNext()) { ObjectEntry node = new ObjectEntry(); node.Add("NodeId", For(e.Current.NodeId)); node.Add("DeleteTargetReferences", For(e.Current.DeleteTargetReferences)); entry.Add(node); } return(entry); } }
public static Entry For(MonitoredItemCreateRequestCollection collection) { if (collection == null) { return(new NullEntry()); } else { ArrayEntry array = new ArrayEntry(); MonitoredItemCreateRequestCollection.Enumerator e = collection.GetEnumerator(); while (e.MoveNext()) { ObjectEntry itemToCreate = new ObjectEntry(); itemToCreate.Add("ItemToMonitor", For(e.Current.ItemToMonitor)); itemToCreate.Add("MonitoringMode", For(e.Current.MonitoringMode)); itemToCreate.Add("RequestedParameters", For(e.Current.RequestedParameters)); array.Add(itemToCreate); } return(array); } }
public static Entry For(CallMethodRequestCollection methodsToCall) { if (methodsToCall == null) { return(new NullEntry()); } else { ArrayEntry array = new ArrayEntry(); CallMethodRequestCollection.Enumerator e = methodsToCall.GetEnumerator(); while (e.MoveNext()) { ObjectEntry methodEntry = new ObjectEntry(); methodEntry.Add("ObjectId", For(e.Current.ObjectId)); methodEntry.Add("MethodId", For(e.Current.MethodId)); methodEntry.Add("InputArguments", For(e.Current.InputArguments)); array.Add(methodEntry); } return(array); } }
public static Entry For(WriteValueCollection nodesToWrite) { if (nodesToWrite == null) { return(new NullEntry()); } else { ArrayEntry array = new ArrayEntry(); List <WriteValue> .Enumerator e = nodesToWrite.GetEnumerator(); while (e.MoveNext()) { ObjectEntry nodeEntry = new ObjectEntry(); nodeEntry.Add("NodeId", For(e.Current.NodeId)); nodeEntry.Add("AttributeId", For(e.Current.AttributeId)); nodeEntry.Add("IndexRange", For(e.Current.IndexRange)); nodeEntry.Add("Value", For(e.Current.Value)); array.Add(nodeEntry); } return(array); } }
public static Entry For(AddNodesItemCollection nodesToAdd) { if (nodesToAdd == null) { return(new NullEntry()); } else { ArrayEntry entry = new ArrayEntry(); AddNodesItemCollection.Enumerator e = nodesToAdd.GetEnumerator(); while (e.MoveNext()) { ObjectEntry node = new ObjectEntry(); node.Add("ParentNodeId", For(e.Current.ParentNodeId)); node.Add("ReferenceTypeId", For(e.Current.ReferenceTypeId)); node.Add("RequestedNewNodeId", For(e.Current.RequestedNewNodeId)); node.Add("TypeDefinition", For(e.Current.TypeDefinition)); entry.Add(node); } return(entry); } }
public static Entry For(ReadValueIdCollection nodesToRead) { if (nodesToRead == null) { return(new NullEntry()); } else { ArrayEntry array = new ArrayEntry(); List <ReadValueId> .Enumerator e = nodesToRead.GetEnumerator(); while (e.MoveNext()) { ObjectEntry readValueEntry = new ObjectEntry(); readValueEntry.Add("NodeId", For(e.Current.NodeId)); readValueEntry.Add("AttributeId", For(e.Current.AttributeId)); readValueEntry.Add("IndexRange", For(e.Current.IndexRange)); readValueEntry.Add("DataEncoding", For(e.Current.DataEncoding)); readValueEntry.Add("Range", For(e.Current.ParsedIndexRange)); array.Add(readValueEntry); } return(array); } }
public static Entry For(DeleteReferencesItemCollection referencesToDelete) { if (referencesToDelete == null) { return(new NullEntry()); } else { ArrayEntry entry = new ArrayEntry(); DeleteReferencesItemCollection.Enumerator e = referencesToDelete.GetEnumerator(); while (e.MoveNext()) { ObjectEntry node = new ObjectEntry(); node.Add("SourceNodeId", For(e.Current.SourceNodeId)); node.Add("ReferenceTypeId", For(e.Current.ReferenceTypeId)); node.Add("IsForward", For(e.Current.IsForward)); node.Add("TargetNodeId", For(e.Current.TargetNodeId)); node.Add("DeleteBidirectional", For(e.Current.DeleteBidirectional)); entry.Add(node); } return(entry); } }
public static Entry For(AddReferencesItemCollection referencesToAdd) { if (referencesToAdd == null) { return(new NullEntry()); } else { ArrayEntry entry = new ArrayEntry(); AddReferencesItemCollection.Enumerator e = referencesToAdd.GetEnumerator(); while (e.MoveNext()) { ObjectEntry node = new ObjectEntry(); node.Add("ReferenceTypeId", For(e.Current.ReferenceTypeId)); node.Add("SourceNodeId", For(e.Current.SourceNodeId)); node.Add("TargetNodeClass", For((uint)e.Current.TargetNodeClass)); node.Add("TargetNodeId", For(e.Current.TargetNodeId)); node.Add("TargetServerURI", For(e.Current.TargetServerUri)); entry.Add(node); } return(entry); } }