ReceivedProfile

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.

Constructors

Link copied to clipboard
public void ReceivedProfile(int left, boolean hasPackage, boolean offline)

Properties

Link copied to clipboard
public int left
After the client successfully connects, the server will send all compensation messages to the client in the form of message bundles, with a maximum of 200 messages per bundle (i.e., one Package).

Functions

Link copied to clipboard
public int getLeft()
Link copied to clipboard
public boolean hasPackage()
Link copied to clipboard
public boolean isOffline()