public class WeatherResult extends SearchResult
SearchResult.ERRORNO
限定符和类型 | 字段和说明 |
---|---|
static <any> |
CREATOR |
error, status
限定符 | 构造器和说明 |
---|---|
|
WeatherResult() |
protected |
WeatherResult(Parcel in) |
限定符和类型 | 方法和说明 |
---|---|
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 void writeToParcel(Parcel dest, int flags)
writeToParcel
在类中 SearchResult
public int describeContents()
describeContents
在类中 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)