public class LocalWeatherForecast
extends java.lang.Object
implements android.os.Parcelable
| 限定符和类型 | 字段和说明 |
|---|---|
static android.os.Parcelable.Creator<LocalWeatherForecast> |
CREATOR |
| 构造器和说明 |
|---|
LocalWeatherForecast()
LocalWeatherForecast的构造函数。
|
LocalWeatherForecast(android.os.Parcel parcel) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
describeContents() |
java.lang.String |
getAdCode()
返回行政区划代码。
|
java.lang.String |
getCity()
返回城市名称。
|
java.lang.String |
getProvince()
返回省份名称。
|
java.lang.String |
getReportTime()
返回天气预报发布时间。
|
java.util.List<LocalDayWeatherForecast> |
getWeatherForecast()
返回天气预报的数据的数组,数组中的对象为 LocalDayWeatherForecast。
|
void |
setAdCode(java.lang.String mAdCode)
设置行政区划代码。
|
void |
setCity(java.lang.String mCity)
设置城市名称。
|
void |
setProvince(java.lang.String mProvince)
设置省份名称。
|
void |
setReportTime(java.lang.String mReportTime)
设置天气预报发布时间。
|
void |
setWeatherForecast(java.util.List<LocalDayWeatherForecast> WeatherForecastlist)
设置天气预报的结果。
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<LocalWeatherForecast> CREATOR
public LocalWeatherForecast()
public LocalWeatherForecast(android.os.Parcel parcel)
public java.lang.String getProvince()
public void setProvince(java.lang.String mProvince)
mProvince - 省份名称。
public java.lang.String getCity()
public void setCity(java.lang.String mCity)
mCity - 城市名称。
public java.lang.String getAdCode()
public void setAdCode(java.lang.String mAdCode)
mAdCode - 行政区划代码。
public java.lang.String getReportTime()
public void setReportTime(java.lang.String mReportTime)
mReportTime - 天气预报发布时间。
public java.util.List<LocalDayWeatherForecast> getWeatherForecast()
数组中的第一个数据(即List.get(0))表示今天的天气;第二个数据(即List.get(1))表示明天的天气;第三个数据(即List.get(2))表示后天的天气;第四个数据(即List.get(3))表示大后天的天气。
The first data in the array (i.e., List.get(0)) represents today's weather; the second data (i.e., List.get(1)) represents tomorrow's weather; the third data (i.e., List.get(2)) represents the day after tomorrow's weather; the fourth data (i.e., List.get(3)) represents the weather three days from now.
public void setWeatherForecast(java.util.List<LocalDayWeatherForecast> WeatherForecastlist)
WeatherForecastlist - 天气预报结果。
public int describeContents()
describeContents 在接口中 android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel 在接口中 android.os.Parcelable