Package io.rong.imlib.model
Enum UserType
-
- All Implemented Interfaces:
public enum UserType用户类型枚举类 用于区分普通用户和机器人用户
- Since:
5.22.0
-
-
Field Summary
Fields Modifier and Type Field Description public final intvalue
-
Method Summary
Modifier and Type Method Description static UserTypefromValue(int value)根据整数值获取对应的 UserType 枚举 static Array<UserType>values()Returns an array containing the constants of this enum type, in the order they're declared. static UserTypevalueOf(String name)Returns the enum constant of this type with the specified name. intgetValue()-
-
Method Detail
-
fromValue
static UserType fromValue(int value)
根据整数值获取对应的 UserType 枚举
- Parameters:
value- 整数值- Returns:
对应的 UserType 枚举,如果没有匹配则返回 NORMAL
-
values
static Array<UserType> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static UserType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
getValue
int getValue()
-
-
-
-