Example #1
0
        private static Journal BuildTdg()
        {
            var journal = new Journal
            {
                Title = "Tribune de Genève",
                Xpath = TdgXpath
            };

            journal.AddCategory(
                new Category
            {
                Name   = "Suisse",
                UrlRss = "https://www.tdg.ch/suisse/rss.html"
            }
                );
            journal.AddCategory(
                new Category
            {
                Name   = "Genève",
                UrlRss = "https://www.tdg.ch/geneve/rss.html"
            }
                );
            journal.AddCategory(
                new Category
            {
                Name   = "Le Monde",
                UrlRss = "https://www.tdg.ch/monde/rss.html"
            }
                );
            return(journal);
        }
Example #2
0
        private static Journal BuildLeMonde()
        {
            var journal = new Journal
            {
                Title = "Le Monde",
                Xpath = LeMondeXpath
            };

            journal.AddCategory(
                new Category
            {
                Name   = "Eurppe",
                UrlRss = "http://www.lemonde.fr/europe/rss_full.xml"
            }
                );

            return(journal);
        }