static MessagelogAPI() { QuerySingleLogCompleted = new QuerySingleLogDelegate(OnQuerySingleLogCompleted); QueryLogCompleted = new QueryMessageLogDelegate(OnQuerylogCompleted); OperateMsglogByObjIdCompleted = new OperateMsglogByObjectIdDelegate(OnOperateMsglogByObjIdCompleted); OperateMsglogByLogIdCompleted = new OperateMsglogByLogIdDelegate(OnOperateMsglogByLogIdCompleted); NormalOperationCompleted = new OperateMsglogCommonDelegate(OnNormalOperationCompleted); }
static MessagelogAPI() { QuerySingleLogCompleted = OnQuerySingleLogCompleted; QueryLogCompleted = OnQuerylogCompleted; OperateMsglogByObjIdCompleted = OnOperateMsglogByObjIdCompleted; OperateMsglogByLogIdCompleted = OnOperateMsglogByLogIdCompleted; NormalOperationCompleted = OnNormalOperationCompleted; OnMsglogStatusChanged = MsglogChangedCallback; OnGlobalMsglogStatusChanged = GlobalMsglogStatusChangedCallback; OnUpdateLocalExtCompleted = UpdateLocalExtCallback; }
internal static extern void nim_msglog_batch_status_read_async([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string account_id, NIMSessionType to_type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string json_extension, OperateMsglogByObjectIdDelegate cb, IntPtr user_data);
internal static extern void nim_msglog_delete_by_session_type_async(bool delete_sessions, NIMSessionType to_type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string json_extension, OperateMsglogByObjectIdDelegate cb, IntPtr user_data);