static void OnTIMConvEventCallback(TIMConvEvent conv_event, string json_msg_arry, IntPtr ptr) { List <ConvInfo> convs = null; if (TIMConvEventHandler != null) { if (!string.IsNullOrWhiteSpace(json_msg_arry)) { convs = JsonConvert.DeserializeObject <List <ConvInfo> >(json_msg_arry); } TIMConvEventHandler.Invoke(null, new TIMConvEventArgs(conv_event, convs)); } }
public static void ConvEventCallback(TIMConvEvent conv_event, string conv_list, string user_data) { addStringDataToConsole("ConvEventCallback called " + "user_data :" + conv_list); }
public TIMConvEventArgs(TIMConvEvent conv_event, List <ConvInfo> conv_arry) { Conv_Event = conv_event; Conv_Arry = conv_arry; }