示例#1
0
            public static ChromeWebStoreEvent CreateFromXml(System.Xml.XmlElement n)
            {
                ChromeWebStoreEvent e = new ChromeWebStoreEvent();

                e.costsList      = new List <string>();
                e.modifierList   = new List <string>();
                e.ikey           = n.GetAttribute("ikey");
                e.transaction_id = n.GetAttribute("transaction_id");

                System.Xml.XmlNode costsNode = n.SelectSingleNode("./costs");

                foreach (System.Xml.XmlNode nn in costsNode)
                {
                    e.costsList.Add(nn.InnerText);
                }

                System.Xml.XmlNode attributesNode = n.SelectSingleNode("./modifiers");

                foreach (System.Xml.XmlNode nn in attributesNode)
                {
                    e.modifierList.Add(nn.InnerText);
                }

                return(e);
            }
示例#2
0
            public static ChromeWebStoreEvent CreateFromXml( System.Xml.XmlElement n)
            {
                ChromeWebStoreEvent e = new ChromeWebStoreEvent();
                e.costsList = new List<string>();
                e.modifierList = new List<string>();
                e.ikey = n.GetAttribute("ikey");
                e.transaction_id = n.GetAttribute("transaction_id");

                System.Xml.XmlNode costsNode = n.SelectSingleNode("./costs");

                foreach (System.Xml.XmlNode nn in costsNode)
                {
                    e.costsList.Add (nn.InnerText);
                }

                System.Xml.XmlNode attributesNode = n.SelectSingleNode("./modifiers");

                foreach (System.Xml.XmlNode nn in attributesNode)
                {
                    e.modifierList.Add (nn.InnerText);
                }

                return e;
            }