Releasing 2.2.0 version.

This commit is contained in:
Alexey Zinchenko
2021-04-17 17:14:51 +03:00
committed by GitHub
parent f2c672b864
commit 3c8b00eae1
30 changed files with 2622 additions and 17 deletions
@@ -23,6 +23,8 @@
package com.github.prominence.openweathermap.api;
import com.github.prominence.openweathermap.api.annotation.SubscriptionAvailability;
import com.github.prominence.openweathermap.api.request.air.pollution.AirPollutionRequester;
import com.github.prominence.openweathermap.api.request.air.pollution.AirPollutionRequesterImpl;
import com.github.prominence.openweathermap.api.request.forecast.free.FiveDayThreeHourStepForecastRequester;
import com.github.prominence.openweathermap.api.request.forecast.free.FiveDayThreeHourStepForecastRequesterImpl;
import com.github.prominence.openweathermap.api.request.onecall.OneCallWeatherRequester;
@@ -74,4 +76,14 @@ public class OpenWeatherMapClient {
public OneCallWeatherRequester oneCall() {
return new OneCallWeatherRequesterImpl(apiKey);
}
/**
* Air Pollution <a href="https://openweathermap.org/api/air-pollution">API</a>.
* Air Pollution API provides current, forecast and historical air pollution data for any coordinates on the globe.
* @return requester for air pollution information retrieval.
*/
@SubscriptionAvailability(plans = ALL)
public AirPollutionRequester airPollution() {
return new AirPollutionRequesterImpl(apiKey);
}
}