public enum ProvisionStatus extends java.lang.Enum<ProvisionStatus>
Modifier and Type | Method and Description |
---|---|
ProvisionStatus |
addExtraParams(java.lang.String key,
java.lang.Object value) |
int |
code()
各个状态对应的 code。
|
java.util.Map |
getExtraParams() |
java.lang.Object |
getExtraParams(java.lang.String key) |
java.lang.String |
message()
各个状态对应的 message。
|
ProvisionStatus |
setExtraParams(java.util.Map extraParams) |
ProvisionStatus |
setMessage(java.lang.String message)
更新状态描述
二维码配网用来更新配网内容
|
java.lang.String |
toString() |
static ProvisionStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProvisionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProvisionStatus QR_PROVISION_READY
public static final ProvisionStatus PAP_PROVISION_FOUND_CONN_DEV
public static final ProvisionStatus PAP_PROVISION_SWITCH_AP_SUCCESS
public static final ProvisionStatus PAP_PROVISION_RECOVER_WIFI_FAILED
public static final ProvisionStatus DEVICE_SUPPORT_SERVICE
public static final ProvisionStatus SAP_NEED_USER_TO_CONNECT_DEVICE_AP
public static final ProvisionStatus SAP_NEED_USER_TO_RECOVER_WIFI
public static final ProvisionStatus BLE_NEED_BLE_ENABLED
public static final ProvisionStatus BLE_NEED_LOCATION_SERVICE_ENABLED
public static final ProvisionStatus BLE_NEED_LOCATION_PERMISSION
public static final ProvisionStatus PROVISION_APP_TOKEN
public static ProvisionStatus[] values()
for (ProvisionStatus c : ProvisionStatus.values()) System.out.println(c);
public static ProvisionStatus 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 nullpublic ProvisionStatus setMessage(java.lang.String message)
message
- 状态描述public ProvisionStatus setExtraParams(java.util.Map extraParams)
public ProvisionStatus addExtraParams(java.lang.String key, java.lang.Object value)
public java.util.Map getExtraParams()
public java.lang.Object getExtraParams(java.lang.String key)
public int code()
public java.lang.String message()
public java.lang.String toString()
toString
in class java.lang.Enum<ProvisionStatus>