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