public class OpenweathermapProvider extends java.lang.Object implements IWeatherProvider
| Constructor and Description |
|---|
OpenweathermapProvider() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<City> |
getCityResultList(java.lang.String data) |
CurrentWeather |
getCurrentCondition(java.lang.String data) |
WeatherForecast |
getForecastWeather(java.lang.String data) |
HistoricalWeather |
getHistoricalWeather(java.lang.String data) |
WeatherHourForecast |
getHourForecastWeather(java.lang.String data) |
java.lang.String |
getQueryCityURL(java.lang.String cityNamePattern) |
java.lang.String |
getQueryCityURLByCoord(double lon,
double lat) |
java.lang.String |
getQueryCityURLByLocation(android.location.Location location) |
java.lang.String |
getQueryCurrentWeatherURL(WeatherRequest request) |
java.lang.String |
getQueryForecastWeatherURL(WeatherRequest request) |
java.lang.String |
getQueryHistoricalWeatherURL(WeatherRequest request,
java.util.Date d1,
java.util.Date d2) |
java.lang.String |
getQueryHourForecastWeatherURL(WeatherRequest request) |
java.lang.String |
getQueryImageURL(java.lang.String icon) |
java.lang.String |
getQueryLayerURL(java.lang.String cityId,
Params params) |
void |
setConfig(WeatherConfig config) |
void |
setWeatherCodeProvider(IWeatherCodeProvider codeProvider) |
public CurrentWeather getCurrentCondition(java.lang.String data) throws WeatherLibException
getCurrentCondition in interface IWeatherProviderWeatherLibExceptionpublic WeatherForecast getForecastWeather(java.lang.String data) throws WeatherLibException
getForecastWeather in interface IWeatherProviderWeatherLibExceptionpublic java.util.List<City> getCityResultList(java.lang.String data) throws WeatherLibException
getCityResultList in interface IWeatherProviderWeatherLibExceptionpublic WeatherHourForecast getHourForecastWeather(java.lang.String data) throws WeatherLibException
getHourForecastWeather in interface IWeatherProviderWeatherLibExceptionpublic HistoricalWeather getHistoricalWeather(java.lang.String data) throws WeatherLibException
getHistoricalWeather in interface IWeatherProviderWeatherLibExceptionpublic void setConfig(WeatherConfig config)
setConfig in interface IWeatherProviderpublic java.lang.String getQueryCityURL(java.lang.String cityNamePattern)
getQueryCityURL in interface IWeatherProviderpublic java.lang.String getQueryImageURL(java.lang.String icon)
throws ApiKeyRequiredException
getQueryImageURL in interface IWeatherProviderApiKeyRequiredExceptionpublic void setWeatherCodeProvider(IWeatherCodeProvider codeProvider)
setWeatherCodeProvider in interface IWeatherProviderpublic java.lang.String getQueryCityURLByLocation(android.location.Location location)
throws ApiKeyRequiredException
getQueryCityURLByLocation in interface IWeatherProviderApiKeyRequiredExceptionpublic java.lang.String getQueryCityURLByCoord(double lon,
double lat)
throws ApiKeyRequiredException
getQueryCityURLByCoord in interface IWeatherProviderApiKeyRequiredExceptionpublic java.lang.String getQueryLayerURL(java.lang.String cityId,
Params params)
throws ApiKeyRequiredException
getQueryLayerURL in interface IWeatherProviderApiKeyRequiredExceptionpublic java.lang.String getQueryCurrentWeatherURL(WeatherRequest request) throws ApiKeyRequiredException
getQueryCurrentWeatherURL in interface IWeatherProviderApiKeyRequiredExceptionpublic java.lang.String getQueryForecastWeatherURL(WeatherRequest request) throws ApiKeyRequiredException
getQueryForecastWeatherURL in interface IWeatherProviderApiKeyRequiredExceptionpublic java.lang.String getQueryHourForecastWeatherURL(WeatherRequest request) throws ApiKeyRequiredException
getQueryHourForecastWeatherURL in interface IWeatherProviderApiKeyRequiredExceptionpublic java.lang.String getQueryHistoricalWeatherURL(WeatherRequest request, java.util.Date d1, java.util.Date d2) throws ApiKeyRequiredException
getQueryHistoricalWeatherURL in interface IWeatherProviderApiKeyRequiredException