コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }