Exemplo n.º 1
0
    public static void MsgSearchLocalMessages()
    {
        MessageSearchParam param        = new MessageSearchParam();
        List <string>      keyword_list = new List <string>();

        keyword_list.Add("批量发");
        keyword_list.Add("1");
        param.msg_search_param_conv_id                 = "287646";
        param.msg_search_param_conv_type               = TIMConvType.kTIMConv_C2C;
        param.msg_search_param_keyword_array           = keyword_list;
        param.msg_search_param_keyword_list_match_type = TIMKeywordListMatchType.TIMKeywordListMatchType_Or;
        TIMResult res = TencentIMSDK.MsgSearchLocalMessages(param, addAsyncDataToConsole);

        Utils.Log(((int)res).ToString());
        addDataToConsole(res);
    }