/// <summary> /// 设置消息状态 /// </summary> /// <param name="msgId"></param> /// <param name="status"></param> /// <param name="action"></param> public static void SetMsglogStatus(string msgId, NIMMsgLogStatus status, OperateSingleLogResultDelegate action) { var ptr = NimUtility.DelegateConverter.ConvertToIntPtr(action); MsglogNativeMethods.nim_msglog_set_status_async(msgId, status, null, OperateMsglogByLogIdCompleted, ptr); }
internal static extern void nim_msglog_set_status_async([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string msg_id, NIMMsgLogStatus msglog_status, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string json_extension, OperateMsglogByLogIdDelegate cb, IntPtr user_data);