Beispiel #1
0
        public async Task <IActionResult> Get(int numOfDays)
        {
            Dictionary <string, IEnumerable <string> > companies = new Dictionary <string, IEnumerable <string> >();

            companies = companies == null ? new Dictionary <string, IEnumerable <string> >() : companies;
            companies.Add("Newyork Times", new string[] { "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml", "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml" });
            companies.Add("NBC News", new string[] { "http://podcastfeeds.nbcnews.com/HL4TzgYC" });
            companies.Add("Libsyn", new string[] { "https://lincolnproject.libsyn.com/rss" });
            companies.Add("Apology line", new string[] { "https://rss.art19.com/apology-line" });
            companies.Add("Unraveled", new string[] { "https://rss.acast.com/unraveled" });
            return(Ok(await RSSFeed.FilterNotActiveCompanies(companies, numOfDays)));
        }
Beispiel #2
0
 public async Task <IActionResult> FetchNonActiveCompanies(int numOfDays, Dictionary <string, IEnumerable <string> > companies)
 {
     return(Ok(await RSSFeed.FilterNotActiveCompanies(companies, numOfDays)));
 }