private void _SetDefaultFeeds() { _controller.AddFeed("博客园_老肉鸡", "http://feed.cnblogs.com/blog/u/132703/rss"); _controller.AddFeed("知乎每日精选", "http://www.zhihu.com/rss"); _controller.AddFeed("科学松鼠会", "http://songshuhui.net/feed"); _controller.AddFeed("虎嗅网", "http://www.huxiu.com/rss/0.xml"); _controller.AddFeed("36氪", "http://36kr.com/feed"); }
public FeedNode AddFeed(string url, string name = null) { FeedNode f = _controller?.AddFeed(name ?? url, url); Save(); return(f); }
static void Main(string[] args) { FeedManageController c = new FeedManageController(); c.AddCategory("c1"); c.AddCategory("c2"); c.AddFeed("f1", "hehe"); c.SaveToFile("c:\\cozy_test.json"); }
static void Main(string[] args) { FeedManageController c = new FeedManageController(); c.AddCategory("c1"); c.AddCategory("c2"); c.AddFeed("f1", "hehe"); c.SaveToFile("c:\\cozy_test.json"); }