예제 #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));
 }
예제 #2
0
 public async Task <News> GetNews()
 {
     return(await GetAsync <News>(NewsApiUrls.News(null, null, null, null, null, null))
            .ConfigureAwait(false));
 }