Exemplo n.º 1
0
        public async Task <ForecastResponse> GetForecast10DayAsync(QueryType queryType, QueryOptions options = null)
        {
            Service <ForecastResponse> forecast = new Service <ForecastResponse>(_apiKey, _baseUrl);

            return(await forecast.GetDataAsync(Feature.Forecast10Day, queryType, options));
        }
Exemplo n.º 2
0
        public async Task <ConditionsResponse> GetConditionsAsync(QueryType queryType, QueryOptions options = null)
        {
            Service <ConditionsResponse> forecast = new Service <ConditionsResponse>(_apiKey, _baseUrl);

            return(await forecast.GetDataAsync(Feature.Conditions, queryType, options).ConfigureAwait(false));
        }
Exemplo n.º 3
0
        public ForecastResponse GetForecast10Day(QueryType queryType, QueryOptions options = null)
        {
            Service <ForecastResponse> forecast = new Service <ForecastResponse>(_apiKey, _baseUrl);

            return(forecast.GetData(Feature.Forecast10Day, queryType, options));
        }
Exemplo n.º 4
0
        public ConditionsResponse GetConditions(QueryType queryType, QueryOptions options = null)
        {
            Service <ConditionsResponse> forecast = new Service <ConditionsResponse>(_apiKey, _baseUrl);

            return(forecast.GetData(Feature.Conditions, queryType, options));
        }
Exemplo n.º 5
0
        public AstronomyResponse GetAstronomy(QueryType queryType, QueryOptions options = null)
        {
            Service <AstronomyResponse> forecast = new Service <AstronomyResponse>(_apiKey, _baseUrl);

            return(forecast.GetData(Feature.Astronomy, queryType, options));
        }
Exemplo n.º 6
0
        public AlmanacResponse GetAlmanac(QueryType queryType, QueryOptions options = null)
        {
            Service <AlmanacResponse> forecast = new Service <AlmanacResponse>(_apiKey, _baseUrl);

            return(forecast.GetData(Feature.Almanac, queryType, options));
        }
Exemplo n.º 7
0
        public HourlyResponse GetHourly(QueryType queryType, QueryOptions options = null)
        {
            Service <HourlyResponse> forecast = new Service <HourlyResponse>(_apiKey, _baseUrl);

            return(forecast.GetData(Feature.Hourly, queryType, options));
        }
Exemplo n.º 8
0
        public GeoLookupResponse GetGeoLookup(QueryType queryType, QueryOptions options = null)
        {
            Service <GeoLookupResponse> forecast = new Service <GeoLookupResponse>(_apiKey, _baseUrl);

            return(forecast.GetData(Feature.GeoLookup, queryType, options));
        }