public static class DailyForecastData.Forecast.Weather extends AbstractWeatherData.Weather
has
and get
methods to
access the information.
has
methods can be used to check if the data exists,
i.e., if the data was available (successfully downloaded) and was
parsed correctly.
get
methods can be used to access the data, if the data
exists, otherwise get
methods will give value as per
following basis:
Boolean: false
Integral: Minimum value (MIN_VALUE)
Floating point: Not a number (NaN)
Others: null
Constructor and Description |
---|
DailyForecastData.Forecast.Weather()
Non-parameterized constructor
|
DailyForecastData.Forecast.Weather(org.json.JSONObject jsonObj)
Parameterized constructor
|
getWeatherCode, getWeatherDescription, getWeatherIconName, getWeatherName, hasWeatherCode, hasWeatherDescription, hasWeatherIconName, hasWeatherName
public DailyForecastData.Forecast.Weather()
Initializes variables as per following basis:
Boolean: false
Integral: Minimum value (MIN_VALUE)
Floating point: Not a number (NaN)
Others: null
public DailyForecastData.Forecast.Weather(org.json.JSONObject jsonObj)
Initializes variables from values from the given JSON object.
jsonObj
- JSON object containing data about weather