Ejemplo n.º 1
0
 public async Task <News> GetNews(string[] feeds, string[] categories, string[] excludeCategories, long?its,
                                  string lang, string sort)
 {
     return(await GetAsync <News>(NewsApiUrls.News(feeds, categories, excludeCategories, its, lang, sort))
            .ConfigureAwait(false));
 }
Ejemplo n.º 2
0
 public async Task <FeedAndCategory> GetFeedsAndCategories()
 {
     return(await GetAsync <FeedAndCategory>(NewsApiUrls.FeedsAndCategories()).ConfigureAwait(false));
 }
Ejemplo n.º 3
0
 public async Task <News> GetNews()
 {
     return(await GetAsync <News>(NewsApiUrls.News(null, null, null, null, null, null))
            .ConfigureAwait(false));
 }
Ejemplo n.º 4
0
 public async Task <IEnumerable <NewsCategory> > GetNewsCategories()
 {
     return(await GetAsync <IEnumerable <NewsCategory> >(NewsApiUrls.NewsCategories()).ConfigureAwait(false));
 }