public YahooDistributionProfile(JToken node) : base(node) { if (node["ftpPath"] != null) { this._FtpPath = node["ftpPath"].Value <string>(); } if (node["ftpUsername"] != null) { this._FtpUsername = node["ftpUsername"].Value <string>(); } if (node["ftpPassword"] != null) { this._FtpPassword = node["ftpPassword"].Value <string>(); } if (node["ftpHost"] != null) { this._FtpHost = node["ftpHost"].Value <string>(); } if (node["contactTelephone"] != null) { this._ContactTelephone = node["contactTelephone"].Value <string>(); } if (node["contactEmail"] != null) { this._ContactEmail = node["contactEmail"].Value <string>(); } if (node["processFeed"] != null) { this._ProcessFeed = (YahooDistributionProcessFeedActionStatus)ParseEnum(typeof(YahooDistributionProcessFeedActionStatus), node["processFeed"].Value <string>()); } }
public YahooDistributionProfile(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "ftpPath": this._FtpPath = propertyNode.InnerText; continue; case "ftpUsername": this._FtpUsername = propertyNode.InnerText; continue; case "ftpPassword": this._FtpPassword = propertyNode.InnerText; continue; case "ftpHost": this._FtpHost = propertyNode.InnerText; continue; case "contactTelephone": this._ContactTelephone = propertyNode.InnerText; continue; case "contactEmail": this._ContactEmail = propertyNode.InnerText; continue; case "processFeed": this._ProcessFeed = (YahooDistributionProcessFeedActionStatus)ParseEnum(typeof(YahooDistributionProcessFeedActionStatus), propertyNode.InnerText); continue; } } }