com.baidu.sapi2.account
枚举 AccountType

java.lang.Object
  继承者 java.lang.Enum<AccountType>
      继承者 com.baidu.sapi2.account.AccountType
所有已实现的接口:
Serializable, Comparable<AccountType>

public enum AccountType
extends Enum<AccountType>

Account Type ENUM.

从以下版本开始:
1.0.0
版本:
1.0.0
作者:
DongJian

枚举常量摘要
DEFAULT
          默认所有帐号
DEVICE
          设备号登录
DYNAMICPWD
          动态密码登录
FASTREG
          一键注册登录
NORMAL
          用户名邮箱登陆
PHONE
          手机号码登陆
QR
          二维码登录
SOCIAL
          社交化帐号登录
 
方法摘要
static AccountType getAccountType(int typeID)
          Get AccountType throw typeID.
 int getTypeID()
          Get typeID.
static AccountType valueOf(String name)
          返回带有指定名称的该类型的枚举常量。
static AccountType[] values()
          按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。
 
从类 java.lang.Enum 继承的方法
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

枚举常量详细信息

DEFAULT

public static final AccountType DEFAULT
默认所有帐号


NORMAL

public static final AccountType NORMAL
用户名邮箱登陆


PHONE

public static final AccountType PHONE
手机号码登陆


SOCIAL

public static final AccountType SOCIAL
社交化帐号登录


QR

public static final AccountType QR
二维码登录


DEVICE

public static final AccountType DEVICE
设备号登录


FASTREG

public static final AccountType FASTREG
一键注册登录


DYNAMICPWD

public static final AccountType DYNAMICPWD
动态密码登录

方法详细信息

values

public static AccountType[] values()
按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。该方法可用于迭代 常量,如下所示:
for (AccountType c : AccountType.values())
    System.out.println(c);


valueOf

public static AccountType valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格。)

参数:
name - 要返回的枚举常量的名称。
返回:
返回带有指定名称的枚举常量
抛出:
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException

getTypeID

public int getTypeID()
Get typeID.

返回:
int typeID

getAccountType

public static AccountType getAccountType(int typeID)
Get AccountType throw typeID.

参数:
typeID -
返回:
AccountType


Copyright © 2013. All Rights Reserved.