Package io.rong.imlib.params
Enum ConversationUnreadCountFilter
-
- All Implemented Interfaces:
public enum ConversationUnreadCountFilter会话列表未读数筛选条件。
- Since:
5.44.0
-
-
Field Summary
Fields Modifier and Type Field Description public final intvalue
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL不按未读数筛选,返回全部匹配会话。
UNREAD_ONLY仅返回未读消息数大于 0 的会话。
MENTION_ONLY仅返回存在未读 @ 消息的会话。
NO_UNREAD仅返回未读消息数等于 0 的会话。
-
Method Summary
Modifier and Type Method Description static ConversationUnreadCountFilterfromValue(int value)根据协议值获取筛选条件。 static Array<ConversationUnreadCountFilter>values()Returns an array containing the constants of this enum type, in the order they're declared. static ConversationUnreadCountFiltervalueOf(String name)Returns the enum constant of this type with the specified name. intgetValue()获取协议层使用的枚举值。 -
-
Method Detail
-
fromValue
static ConversationUnreadCountFilter fromValue(int value)
根据协议值获取筛选条件。
- Parameters:
value- 协议层枚举值。- Returns:
对应筛选条件;未知值返回 null。
- Since:
5.44.0
-
values
static Array<ConversationUnreadCountFilter> 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 ConversationUnreadCountFilter 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()
获取协议层使用的枚举值。
- Returns:
枚举值。
- Since:
5.44.0
-
-
-
-