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