Package io.rong.imkit.config
Class BaseDataProcessor
-
- All Implemented Interfaces:
-
io.rong.imkit.config.DataProcessor
public abstract class BaseDataProcessor<T> implements DataProcessor<T>
jenny_zhou
-
-
Constructor Summary
Constructors Constructor Description BaseDataProcessor()
-
Method Summary
Modifier and Type Method Description Array<Conversation.ConversationType>supportedTypes()设置会话列表页支持的会话类型 List<T>filtered(List<T> data)对会话数据进行过滤。 从数据库批量拉取到会话列表时和在线收到消息产生新会话时都会回调此方法 booleanisGathered(Conversation.ConversationType type)某一会话类型是否聚合状态显示。 -
-
Method Detail
-
supportedTypes
Array<Conversation.ConversationType> supportedTypes()
设置会话列表页支持的会话类型
- Returns:
所支持的会话类型
-
filtered
List<T> filtered(List<T> data)
对会话数据进行过滤。
从数据库批量拉取到会话列表时和在线收到消息产生新会话时都会回调此方法
- Parameters:
data- 待过滤的数据- Returns:
过滤完的数据。
-
isGathered
boolean isGathered(Conversation.ConversationType type)
某一会话类型是否聚合状态显示。
- Parameters:
type- 会话类型
-
-
-
-