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