public TRssChannelImage(TRssChannelImage rssChannelImage) { Title = rssChannelImage.Title; Url = new Uri(rssChannelImage.Url.ToString()); Width = rssChannelImage.Width; Height = rssChannelImage.Height; }
public TRssChannel(TRssChannel rssChannel) : this() { Name = rssChannel.Name; Title = rssChannel.Title; Link = new Uri(rssChannel.Link.ToString()); Description = rssChannel.Description; Category = rssChannel.Category; Language = rssChannel.Language; Copyright = rssChannel.Copyright; LastBuildDate = rssChannel.LastBuildDate; Image = new TRssChannelImage(rssChannel.Image); RssItems = new TRssItemCollection(rssChannel.RssItems); }
public TRssChannel(XElement rssChannel) : this() { Name = ""; Title = rssChannel.SafeReadElementValue <string>("title", ""); Link = new Uri(rssChannel.SafeReadElementValue <string>("link", "http://127.0.0.1")); Description = rssChannel.SafeReadElementValue <string>("description", ""); Category = rssChannel.SafeReadElementValue <string>("category", ""); Language = rssChannel.SafeReadElementValue <string>("language", ""); Copyright = rssChannel.SafeReadElementValue <string>("copyright", ""); LastBuildDate = rssChannel.SafeReadElementValue <DateTime>("lastBuildDate", DateTime.MinValue); Image = new TRssChannelImage(rssChannel.SafeReadElement("image")); RssItems = new TRssItemCollection(rssChannel.Elements("item")); }