Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
UPnPArgument.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Xml;
5
7{
12 {
16 In,
17
21 Out
22 }
23
27 public class UPnPArgument
28 {
29 private readonly XmlElement xml;
30 private readonly string name;
31 private readonly ArgumentDirection direction;
32 private readonly bool returnValue;
33 private readonly string relatedStateVariable;
34
35 internal UPnPArgument(XmlElement Xml)
36 {
37 this.xml = Xml;
38
39 foreach (XmlNode N in Xml.ChildNodes)
40 {
41 switch (N.LocalName)
42 {
43 case "name":
44 this.name = N.InnerText;
45 break;
46
47 case "direction":
48 if (string.Compare(N.InnerText, "out", true) == 0)
49 this.direction = ArgumentDirection.Out;
50 else
51 this.direction = ArgumentDirection.In;
52 break;
53
54 case "retval":
55 this.returnValue = true;
56 break;
57
58 case "relatedStateVariable":
59 this.relatedStateVariable = N.InnerText;
60 break;
61 }
62 }
63 }
64
68 public XmlElement Xml => this.xml;
69
73 public string Name => this.name;
74
78 public ArgumentDirection Direction => this.direction;
79
83 public bool ReturnValue => this.returnValue;
84
88 public string RelatedStateVariable => this.relatedStateVariable;
89
90 }
91}
Contains information about an argument.
Definition: UPnPArgument.cs:28
string RelatedStateVariable
Related State Variable
Definition: UPnPArgument.cs:88
XmlElement Xml
Underlying XML definition.
Definition: UPnPArgument.cs:68
ArgumentDirection Direction
Argument Direction
Definition: UPnPArgument.cs:78
bool ReturnValue
If the argument is the return value
Definition: UPnPArgument.cs:83
ArgumentDirection
Direction of action arguments.
Definition: UPnPArgument.cs:12