public enum WeatherDataType extends java.lang.Enum<WeatherDataType>
Enum Constant and Description |
---|
WEATHER_DATA_TYPE_ALERT
天气预警,仅支持国内,高级字段
|
WEATHER_DATA_TYPE_ALL
以上全部,高级字段获取对应权限后可返回
|
WEATHER_DATA_TYPE_FORECASTS_FOR_DAY
未来若干天天天气预报
|
WEATHER_DATA_TYPE_FORECASTS_FOR_HOUR
按小时天气预报,高级字段
|
WEATHER_DATA_TYPE_LIFE_INDEX
生活指数,仅支持国内,高级字段
|
WEATHER_DATA_TYPE_REAL_TIME
实时天气预报
|
Modifier and Type | Method and Description |
---|---|
static WeatherDataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WeatherDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeatherDataType WEATHER_DATA_TYPE_REAL_TIME
public static final WeatherDataType WEATHER_DATA_TYPE_FORECASTS_FOR_DAY
public static final WeatherDataType WEATHER_DATA_TYPE_FORECASTS_FOR_HOUR
public static final WeatherDataType WEATHER_DATA_TYPE_LIFE_INDEX
public static final WeatherDataType WEATHER_DATA_TYPE_ALERT
public static final WeatherDataType WEATHER_DATA_TYPE_ALL
public static WeatherDataType[] values()
for (WeatherDataType c : WeatherDataType.values()) System.out.println(c);
public static WeatherDataType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null