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