public BaseSyndicationFeed(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "id":
                    this._Id = propertyNode.InnerText;
                    continue;

                case "feedUrl":
                    this._FeedUrl = propertyNode.InnerText;
                    continue;

                case "partnerId":
                    this._PartnerId = ParseInt(propertyNode.InnerText);
                    continue;

                case "playlistId":
                    this._PlaylistId = propertyNode.InnerText;
                    continue;

                case "name":
                    this._Name = propertyNode.InnerText;
                    continue;

                case "status":
                    this._Status = (SyndicationFeedStatus)ParseEnum(typeof(SyndicationFeedStatus), propertyNode.InnerText);
                    continue;

                case "type":
                    this._Type = (SyndicationFeedType)ParseEnum(typeof(SyndicationFeedType), propertyNode.InnerText);
                    continue;

                case "landingPage":
                    this._LandingPage = propertyNode.InnerText;
                    continue;

                case "createdAt":
                    this._CreatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "allowEmbed":
                    this._AllowEmbed = ParseBool(propertyNode.InnerText);
                    continue;

                case "playerUiconfId":
                    this._PlayerUiconfId = ParseInt(propertyNode.InnerText);
                    continue;

                case "flavorParamId":
                    this._FlavorParamId = ParseInt(propertyNode.InnerText);
                    continue;

                case "transcodeExistingContent":
                    this._TranscodeExistingContent = ParseBool(propertyNode.InnerText);
                    continue;

                case "addToDefaultConversionProfile":
                    this._AddToDefaultConversionProfile = ParseBool(propertyNode.InnerText);
                    continue;

                case "categories":
                    this._Categories = propertyNode.InnerText;
                    continue;

                case "storageId":
                    this._StorageId = ParseInt(propertyNode.InnerText);
                    continue;

                case "entriesOrderBy":
                    this._EntriesOrderBy = (SyndicationFeedEntriesOrderBy)StringEnum.Parse(typeof(SyndicationFeedEntriesOrderBy), propertyNode.InnerText);
                    continue;

                case "enforceEntitlement":
                    this._EnforceEntitlement = ParseBool(propertyNode.InnerText);
                    continue;

                case "privacyContext":
                    this._PrivacyContext = propertyNode.InnerText;
                    continue;

                case "updatedAt":
                    this._UpdatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "useCategoryEntries":
                    this._UseCategoryEntries = ParseBool(propertyNode.InnerText);
                    continue;

                case "feedContentTypeHeader":
                    this._FeedContentTypeHeader = propertyNode.InnerText;
                    continue;
                }
            }
        }
 public BaseSyndicationFeed(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = node["id"].Value <string>();
     }
     if (node["feedUrl"] != null)
     {
         this._FeedUrl = node["feedUrl"].Value <string>();
     }
     if (node["partnerId"] != null)
     {
         this._PartnerId = ParseInt(node["partnerId"].Value <string>());
     }
     if (node["playlistId"] != null)
     {
         this._PlaylistId = node["playlistId"].Value <string>();
     }
     if (node["name"] != null)
     {
         this._Name = node["name"].Value <string>();
     }
     if (node["status"] != null)
     {
         this._Status = (SyndicationFeedStatus)ParseEnum(typeof(SyndicationFeedStatus), node["status"].Value <string>());
     }
     if (node["type"] != null)
     {
         this._Type = (SyndicationFeedType)ParseEnum(typeof(SyndicationFeedType), node["type"].Value <string>());
     }
     if (node["landingPage"] != null)
     {
         this._LandingPage = node["landingPage"].Value <string>();
     }
     if (node["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["allowEmbed"] != null)
     {
         this._AllowEmbed = ParseBool(node["allowEmbed"].Value <string>());
     }
     if (node["playerUiconfId"] != null)
     {
         this._PlayerUiconfId = ParseInt(node["playerUiconfId"].Value <string>());
     }
     if (node["flavorParamId"] != null)
     {
         this._FlavorParamId = ParseInt(node["flavorParamId"].Value <string>());
     }
     if (node["transcodeExistingContent"] != null)
     {
         this._TranscodeExistingContent = ParseBool(node["transcodeExistingContent"].Value <string>());
     }
     if (node["addToDefaultConversionProfile"] != null)
     {
         this._AddToDefaultConversionProfile = ParseBool(node["addToDefaultConversionProfile"].Value <string>());
     }
     if (node["categories"] != null)
     {
         this._Categories = node["categories"].Value <string>();
     }
     if (node["storageId"] != null)
     {
         this._StorageId = ParseInt(node["storageId"].Value <string>());
     }
     if (node["entriesOrderBy"] != null)
     {
         this._EntriesOrderBy = (SyndicationFeedEntriesOrderBy)StringEnum.Parse(typeof(SyndicationFeedEntriesOrderBy), node["entriesOrderBy"].Value <string>());
     }
     if (node["enforceEntitlement"] != null)
     {
         this._EnforceEntitlement = ParseBool(node["enforceEntitlement"].Value <string>());
     }
     if (node["privacyContext"] != null)
     {
         this._PrivacyContext = node["privacyContext"].Value <string>();
     }
     if (node["updatedAt"] != null)
     {
         this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>());
     }
     if (node["useCategoryEntries"] != null)
     {
         this._UseCategoryEntries = ParseBool(node["useCategoryEntries"].Value <string>());
     }
     if (node["feedContentTypeHeader"] != null)
     {
         this._FeedContentTypeHeader = node["feedContentTypeHeader"].Value <string>();
     }
 }