getConversation
功能介绍
获取指定会话
参数详解
| 参数名称 | 参数类型 | 是否必填 | 描述 | 
| conversationID | String | 是 | 会话唯一 ID,如果是 C2C 单聊,组成方式为 c2c_userID,如果是群聊,组成方式为 group_groupID | 
返回值
V2TimValueCallback<V2TimConversation>
{
    code : int
    desc : String
    data : {
      conversationID : String
      type : ConversationType
      userID : String
      groupID : String
      showName : String
      faceUrl : String
      groupType : String
      unreadCount : int
      lastMessage;
      draftText : String
      draftTimestamp : int
      isPinned : bool
      recvOpt : int
      groupAtInfoList : List<V2TimGroupAtInfo>
      orderkey : int
    }
}
返回值详解
代码示例
    
    V2TimValueCallback<V2TimConversation> getConversationtRes =
        await TencentImSDKPlugin.v2TIMManager
            .getConversationManager()
            .getConversation(conversationID: "");
    if (getConversationtRes.code == 0) {
      
       getConversationtRes.data?.conversationID;
       getConversationtRes.data?.draftText;
       getConversationtRes.data?.draftTimestamp;
       getConversationtRes.data?.faceUrl;
       getConversationtRes.data?.groupAtInfoList;
       getConversationtRes.data?.groupID;
       getConversationtRes.data?.groupType;
       getConversationtRes.data?.isPinned;
       getConversationtRes.data?.lastMessage;
       getConversationtRes.data?.orderkey;
       getConversationtRes.data?.recvOpt;
       getConversationtRes.data?.showName;
       getConversationtRes.data?.type;
       getConversationtRes.data?.unreadCount;
       getConversationtRes.data?.userID;
    }