Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
        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));
            }
        }
Exemplo n.º 3
0
 public TIMMsgRevokeArgs(MsgLocator msgLocator)
 {
     RevokeMsg = msgLocator;
 }