public interface IWeatherProvider
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(Location location) |
java.lang.String |
getQueryCurrentWeatherURL(WeatherRequest request) |
java.lang.String |
getQueryForecastWeatherURL(WeatherRequest request) |
java.lang.String |
getQueryHistoricalWeatherURL(WeatherRequest request,
java.util.Date startDate,
java.util.Date endDate) |
java.lang.String |
getQueryHourForecastWeatherURL(WeatherRequest request) |
java.lang.String |
getQueryImageURL(java.lang.String weatherId) |
java.lang.String |
getQueryLayerURL(java.lang.String cityId,
Params params) |
void |
setConfig(WeatherConfig config) |
void |
setWeatherCodeProvider(IWeatherCodeProvider codeProvider) |
CurrentWeather getCurrentCondition(java.lang.String data) throws WeatherLibException
WeatherLibException
WeatherForecast getForecastWeather(java.lang.String data) throws WeatherLibException
WeatherLibException
java.util.List<City> getCityResultList(java.lang.String data) throws WeatherLibException
WeatherLibException
WeatherHourForecast getHourForecastWeather(java.lang.String data) throws WeatherLibException
WeatherLibException
java.lang.String getQueryCityURL(java.lang.String cityNamePattern) throws ApiKeyRequiredException
ApiKeyRequiredException
HistoricalWeather getHistoricalWeather(java.lang.String data) throws WeatherLibException
WeatherLibException
java.lang.String getQueryCityURLByLocation(Location location) throws ApiKeyRequiredException
ApiKeyRequiredException
java.lang.String getQueryCityURLByCoord(double lon, double lat) throws ApiKeyRequiredException
ApiKeyRequiredException
void setConfig(WeatherConfig config)
void setWeatherCodeProvider(IWeatherCodeProvider codeProvider)
java.lang.String getQueryImageURL(java.lang.String weatherId) throws ApiKeyRequiredException
ApiKeyRequiredException
java.lang.String getQueryLayerURL(java.lang.String cityId, Params params) throws ApiKeyRequiredException
ApiKeyRequiredException
java.lang.String getQueryCurrentWeatherURL(WeatherRequest request) throws ApiKeyRequiredException
ApiKeyRequiredException
java.lang.String getQueryForecastWeatherURL(WeatherRequest request) throws ApiKeyRequiredException
ApiKeyRequiredException
java.lang.String getQueryHourForecastWeatherURL(WeatherRequest request) throws ApiKeyRequiredException
ApiKeyRequiredException
java.lang.String getQueryHistoricalWeatherURL(WeatherRequest request, java.util.Date startDate, java.util.Date endDate) throws ApiKeyRequiredException
ApiKeyRequiredException