Exemple #1
0
 /// <summary>
 /// The markets service can be used to return the list of markets (countries) supported by Skyscanner.
 /// </summary>
 /// <param name="locale">Selected language</param>
 /// <returns></returns>
 public async Task <List <Data.Market> > QueryMarket(Data.Locale locale,
                                                     CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await QueryData <Market, Data.Market>(new Market(_apiKey, locale), cancellationToken));
 }
Exemple #2
0
 public Market(string apiKey, Data.Locale locale)
     : base(apiKey)
 {
     _locale = locale;
 }