コード例 #1
0
 public GoogleVideoSyndicationFeed(JToken node) : base(node)
 {
     if (node["adultContent"] != null)
     {
         this._AdultContent = (GoogleSyndicationFeedAdultValues)StringEnum.Parse(typeof(GoogleSyndicationFeedAdultValues), node["adultContent"].Value <string>());
     }
 }
コード例 #2
0
 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;
         }
     }
 }