public static void MsgFindByMsgLocatorList() { string conv_id = "287646"; MsgLocator message_locator = new MsgLocator(); // 这里的消息可以是其他接口返回的实例,如消息列表接口 TIMResult res = TencentIMSDK.MsgFindByMsgLocatorList(conv_id, TIMConvType.kTIMConv_C2C, message_locator, addAsyncDataToConsole); Utils.Log(((int)res).ToString()); addDataToConsole(res); }
static void OnMsgRevokCallBack(string json_msg_arry, IntPtr ptr) { MsgLocator msgLocator = null; if (TIMMsgRevokeChangedHandler != null) { if (!string.IsNullOrWhiteSpace(json_msg_arry)) { msgLocator = JsonConvert.DeserializeObject <MsgLocator>(json_msg_arry); } TIMMsgRevokeChangedHandler.Invoke(null, new TIMMsgRevokeArgs(msgLocator)); } }
public TIMMsgRevokeArgs(MsgLocator msgLocator) { RevokeMsg = msgLocator; }