Package io.rong.imlib.model
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.
-
-
Field Summary
Fields Modifier and Type Field Description public int
left
-
Constructor Summary
Constructors Constructor Description ReceivedProfile(int left, boolean hasPackage, boolean offline)
-
Method Summary
Modifier and Type Method Description int
getLeft()
boolean
hasPackage()
boolean
isOffline()
-
-
Method Detail
-
getLeft
int getLeft()
-
hasPackage
boolean hasPackage()
-
isOffline
boolean isOffline()
-
-
-
-