getConversationListByConversaionIds
Introduction
Load the list of conversations with specific list of conversations ID.
Parameter details
Parameter name |
Parameter type |
Required |
Platform |
Description |
conversationIDList |
List< String > |
yes |
All |
The list of conversation IDs that needs to request for details, |
Returned template
V2TimValueCallback<List<V2TimConversation>>
{
code : int
desc : String
data : List<V2TimConversation>
}
Return value details
name |
type |
description |
code |
int |
Request result: Error codes. 0 means success. |
desc |
String |
The description of the error. It will be empty if success. |
data |
List< V2TimConversation > |
The list of conversations requested. |
Code example
V2TimValueCallback<List<V2TimConversation>>
getConversationListByConversaionIdsRes = await TencentImSDKPlugin
.v2TIMManager
.getConversationManager()
.getConversationListByConversaionIds(conversationIDList: []);
if (getConversationListByConversaionIdsRes.code == 0) {
getConversationListByConversaionIdsRes.data?.forEach((element) {
element.conversationID;
element.draftText;
element.draftTimestamp;
element.faceUrl;
element.groupAtInfoList;
element.groupID;
element.groupType;
element.isPinned;
element.lastMessage;
element.orderkey;
element.recvOpt;
element.showName;
element.type;
element.unreadCount;
element.userID;
});
}