public void UpdateRss() { List <FeedInfo> list = new List <FeedInfo>(); list = RSSHandle.ReadFromXml(AppDomain.CurrentDomain.BaseDirectory); foreach (var item in list) { RSSHandle.UpdateRssInfo(AppDomain.CurrentDomain.BaseDirectory, item); } }
public void ReadFeedsFromFile() { List <FeedInfo> list = new List <FeedInfo>(); list = RSSHandle.ReadFromXml(AppDomain.CurrentDomain.BaseDirectory); foreach (var item in list) { Console.WriteLine(item.Sort + "——" + item.LastUpdateTime); } }
public void GetReadingInfoFromFile() { List <FeedInfo> list = new List <FeedInfo>(); list = RSSHandle.ReadFromXml(AppDomain.CurrentDomain.BaseDirectory); foreach (var item in list) { Console.WriteLine(item.Sort + "——" + item.DataRelativePath + "——" + item.LastUpdateTime); List <ReadInfo> readinglist = RSSHandle.GetReadInfo(AppDomain.CurrentDomain.BaseDirectory, item); foreach (var subitem in readinglist) { Console.WriteLine("\t" + subitem.Id); } } }