Class ReceivedProfile

  • All Implemented Interfaces:

    
    public final class ReceivedProfile
    
                        

    Message reception wrapper class used by .

    Note: 1. For offline message reception, the server packages 200 messages into a single bundle and sends it to the client, which then parses the bundle. 2. The `hasPackage` flag indicates whether there are remaining message bundles, and `left` indicates how many messages remain after parsing and delivering this bundle to the app layer. How to determine if offline message reception is complete: 1. Both `hasPackage` and `left` are 0; 2. `hasPackage` being 0 indicates that the last bundle (200 messages) is being received, and `left` being 0 indicates that the last message in the final bundle has also been received.

    • 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)