Esempio n. 1
0
 public LiveChannelMatchAttributeCondition(JToken node) : base(node)
 {
     if (node["attribute"] != null)
     {
         this._Attribute = (LiveChannelMatchAttribute)StringEnum.Parse(typeof(LiveChannelMatchAttribute), node["attribute"].Value <string>());
     }
 }
Esempio n. 2
0
 public LiveChannelMatchAttributeCondition(XmlElement node) : base(node)
 {
     foreach (XmlElement propertyNode in node.ChildNodes)
     {
         switch (propertyNode.Name)
         {
         case "attribute":
             this._Attribute = (LiveChannelMatchAttribute)StringEnum.Parse(typeof(LiveChannelMatchAttribute), propertyNode.InnerText);
             continue;
         }
     }
 }