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