public enum AuthMode extends Enum<AuthMode>
| 枚举常量和说明 |
|---|
MANUAL |
MANUAL_AUTH |
PHONE_AUTH |
UNKNOWN |
WECHAT_AUTH |
ZM_AUTH |
| 限定符和类型 | 方法和说明 |
|---|---|
static AuthMode |
getAuthMode(Integer code)
根据枚举code获取枚举类型.
|
static AuthMode |
getAuthMode(String name)
通过认证方式名获取认证方式枚举.
|
Integer |
getCode() |
String |
getDescription() |
void |
setCode(Integer code) |
void |
setDescription(String description) |
static AuthMode |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static AuthMode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final AuthMode UNKNOWN
public static final AuthMode MANUAL
public static final AuthMode MANUAL_AUTH
public static final AuthMode ZM_AUTH
public static final AuthMode PHONE_AUTH
public static final AuthMode WECHAT_AUTH
public static AuthMode[] values()
for (AuthMode c : AuthMode.values()) System.out.println(c);
public static AuthMode valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static AuthMode getAuthMode(Integer code)
code - 枚举整型codepublic static AuthMode getAuthMode(String name)
name - 认证方式名public Integer getCode()
public void setCode(Integer code)
public String getDescription()
public void setDescription(String description)
Copyright © 2024. All rights reserved.