queryMySessionList method Null safety
【Conversation service】Obtain conversations by page.
[minTimestamp] Specify the start time (Unix timestamp, unit: ms) for getting conversations. If 0 is passed, all conversations will be obtained.
[maxTimestamp] Specify the end time (Unix timestamp, unit: ms) for getting conversations.
[needLastMsg] Specify whether the last messages are required to be contained in the obtained conversations. 0: not required, 1: required, default: 1.
[limit] Specify the maximum results (upper limit: 100, default: 100)
[hasMore] Ignore this parameter.
Implementation
Future<NIMResult<RecentSessionList>> queryMySessionList(int minTimestamp,
int maxTimestamp, int needLastMsg, int limit, int hasMore) {
return _platform.queryMySessionList(
minTimestamp, maxTimestamp, needLastMsg, limit, hasMore);
}