コード例 #1
0
 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");
 }
コード例 #2
0
        public FeedNode AddFeed(string url, string name = null)
        {
            FeedNode f = _controller?.AddFeed(name ?? url, url);

            Save();
            return(f);
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: xxy1991/cozy
 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");
 }
コード例 #4
0
        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");
        }