public class WeatherSearchQuery
extends java.lang.Object
implements java.lang.Cloneable
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
WEATHER_TYPE_FORECAST
预报天气,值为2。
|
static int |
WEATHER_TYPE_LIVE
实况天气,值为1。
|
| 构造器和说明 |
|---|
WeatherSearchQuery()
WeatherSearchQuery 构造函数。
|
WeatherSearchQuery(java.lang.String city,
int type)
根据给定的参数来构造一个 WeatherSearchQuery 的新对象。
|
public static final int WEATHER_TYPE_LIVE
public static final int WEATHER_TYPE_FORECAST
public WeatherSearchQuery(java.lang.String city,
int type)
city - 设置查询的城市,支持城市名称、adcode。
type - 查询天气类型,分为实况天气和预报天气两种。
public WeatherSearchQuery()
public java.lang.String getCity()
public int getType()
public WeatherSearchQuery clone()
clone 在类中 java.lang.Object