Interface DataProcessor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Array<ConversationType> supportedTypes() 设置会话列表页支持的会话类型
      abstract List<T> filtered(List<T> data) 对会话数据进行过滤。 从数据库批量拉取到会话列表时和在线收到消息产生新会话时都会回调此方法
      abstract boolean isGathered(ConversationType type) 某一会话类型是否聚合状态显示。
      boolean isGathered(ConversationIdentifier identifier) 某一会话类型是否聚合状态显示。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • supportedTypes

         abstract Array<ConversationType> supportedTypes()

        设置会话列表页支持的会话类型

        Returns:

        所支持的会话类型

      • filtered

         abstract List<T> filtered(List<T> data)

        对会话数据进行过滤。

        从数据库批量拉取到会话列表时和在线收到消息产生新会话时都会回调此方法

        Parameters:
        data - 待过滤的数据
        Returns:

        过滤完的数据。

      • isGathered

         abstract boolean isGathered(ConversationType type)

        某一会话类型是否聚合状态显示。

        Parameters:
        type - 会话类型
      • isGathered

         boolean isGathered(ConversationIdentifier identifier)

        某一会话类型是否聚合状态显示。

        Parameters:
        identifier - 会话标识符