Class ReceivedProfile

  • All Implemented Interfaces:

    
    public final class ReceivedProfile
    
                        

    接收消息封装类 提供给io.rong.imlib.listener.OnReceiveMessageWrapperListener使用

    注意: 1. 针对接收离线消息时,服务端会将 200 条消息打成一个包发到客户端,客户端对这包数据进行解析。 2. hasPackage 标识是否还有剩余的消息包,left 标识这包消息解析完逐条抛送给 App 层后,剩余多少条。 如何判断离线消息收完: 1. hasPackage 和 left 都为 0; 2. hasPackage 为 0 标识当前正在接收最后一包(200条)消息,left 为 0 标识最后一包的最后一条消息也已接收完毕。

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public int left
    • Constructor Summary

      Constructors 
      Constructor Description
      ReceivedProfile(int left, boolean hasPackage, boolean offline)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      int getLeft()
      boolean hasPackage()
      boolean isOffline()
      • Methods inherited from class java.lang.Object

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

      • ReceivedProfile

        ReceivedProfile(int left, boolean hasPackage, boolean offline)