예제 #1
0
 public LiveChannelMatchAttributeCondition(JToken node) : base(node)
 {
     if (node["attribute"] != null)
     {
         this._Attribute = (LiveChannelMatchAttribute)StringEnum.Parse(typeof(LiveChannelMatchAttribute), node["attribute"].Value <string>());
     }
 }
예제 #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;
         }
     }
 }