public class WeatherResult extends SearchResult
SearchResult.ERRORNO
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
error, status
Modifier | Constructor and Description |
---|---|
|
WeatherResult() |
protected |
WeatherResult(Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
java.util.List<WeatherSearchForecastForHours> |
getForecastHours()
获取未来24小时逐小时预报,高级字段
|
java.util.List<WeatherSearchForecasts> |
getForecasts()
获取未来若干天天预报数据
|
java.util.List<WeatherLifeIndexes> |
getLifeIndexes()
获取生活指数数据,高级字段
|
WeatherSearchLocation |
getLocation()
获取地理位置信息
|
WeatherSearchRealTime |
getRealTimeWeather()
获取天气实况数据
|
java.util.List<WeatherSearchAlerts> |
getWeatherAlerts()
获取气象预警数据,高级字段
|
void |
setForecastHours(java.util.List<WeatherSearchForecastForHours> mForecastHours)
设置未来24小时逐小时预报,高级字段
|
void |
setForecasts(java.util.List<WeatherSearchForecasts> mForecasts)
设置未来若干天天预报数据
|
void |
setLifeIndexes(java.util.List<WeatherLifeIndexes> mLifeIndexes)
设置生活指数数据,高级字段
|
void |
setLocation(WeatherSearchLocation mLocation)
设置地理位置信息
|
void |
setRealTimeWeather(WeatherSearchRealTime mRealTimeWeather)
设置天气实况数据
|
void |
setWeatherAlerts(java.util.List<WeatherSearchAlerts> mWeatherAlerts)
设置气象预警数据,高级字段
|
void |
writeToParcel(Parcel dest,
int flags) |
public WeatherResult()
protected WeatherResult(Parcel in)
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class SearchResult
public int describeContents()
describeContents
in class SearchResult
public WeatherSearchRealTime getRealTimeWeather()
public void setRealTimeWeather(WeatherSearchRealTime mRealTimeWeather)
public WeatherSearchLocation getLocation()
public void setLocation(WeatherSearchLocation mLocation)
public java.util.List<WeatherSearchForecasts> getForecasts()
public void setForecasts(java.util.List<WeatherSearchForecasts> mForecasts)
public java.util.List<WeatherSearchForecastForHours> getForecastHours()
public void setForecastHours(java.util.List<WeatherSearchForecastForHours> mForecastHours)
public java.util.List<WeatherLifeIndexes> getLifeIndexes()
public void setLifeIndexes(java.util.List<WeatherLifeIndexes> mLifeIndexes)
public java.util.List<WeatherSearchAlerts> getWeatherAlerts()
public void setWeatherAlerts(java.util.List<WeatherSearchAlerts> mWeatherAlerts)