Exemplo n.º 1
0
		internal UPnPAction(XmlElement Xml, ServiceDescriptionDocument Parent)
		{
			List<UPnPArgument> Arguments = new List<UPnPArgument>();

			this.parent = Parent;
			this.xml = Xml;

			foreach (XmlNode N in Xml.ChildNodes)
			{
				switch (N.LocalName)
				{
					case "name":
						this.name = N.InnerText;
						break;

					case "argumentList":
						foreach (XmlNode N2 in N.ChildNodes)
						{
							if (N2.LocalName == "argument")
							{
								UPnPArgument Argument = new UPnPArgument((XmlElement)N2);
								Arguments.Add(Argument);
								this.argumentByName[Argument.Name] = Argument;
							}
						}
						break;
				}
			}

			this.arguments = Arguments.ToArray();
		}
Exemplo n.º 2
0
        internal UPnPAction(XmlElement Xml, ServiceDescriptionDocument Parent)
        {
            List <UPnPArgument> Arguments = new List <UPnPArgument>();

            this.parent = Parent;
            this.xml    = Xml;

            foreach (XmlNode N in Xml.ChildNodes)
            {
                switch (N.LocalName)
                {
                case "name":
                    this.name = N.InnerText;
                    break;

                case "argumentList":
                    foreach (XmlNode N2 in N.ChildNodes)
                    {
                        if (N2.LocalName == "argument")
                        {
                            UPnPArgument Argument = new UPnPArgument((XmlElement)N2);
                            Arguments.Add(Argument);
                            this.argumentByName[Argument.Name] = Argument;
                        }
                    }
                    break;
                }
            }

            this.arguments = Arguments.ToArray();
        }