public async Task <AstronomyResponse> GetAstronomyAsync(QueryType queryType, QueryOptions options = null) { Service <AstronomyResponse> forecast = new Service <AstronomyResponse>(_apiKey, _baseUrl); return(await forecast.GetDataAsync(Feature.Astronomy, queryType, options).ConfigureAwait(false)); }
public async Task <GeoLookupResponse> GetGeoLookupAsync(QueryType queryType, QueryOptions options = null) { Service <GeoLookupResponse> forecast = new Service <GeoLookupResponse>(_apiKey, _baseUrl); return(await forecast.GetDataAsync(Feature.GeoLookup, queryType, options).ConfigureAwait(false)); }
public async Task <HistoryResponse> GetHistoryAsync(QueryType queryType, QueryOptions options = null) { Service <HistoryResponse> forecast = new Service <HistoryResponse>(_apiKey, _baseUrl); return(await forecast.GetDataAsync(Feature.History, queryType, options)); }