Пример #1
0
        /// <summary>
        /// 关闭聊天室
        /// </summary>
        /// <param name="roomId">聊天室ID</param>
        /// <param name="notify">放到事件通知中的扩展字段</param>
        /// <param name="cb">操作结果委托</param>
        public static void CloseRoom(long roomId, string notify, CloseRoomDelegate cb)
        {
            var ptr = NimUtility.DelegateConverter.ConvertToIntPtr(cb);

            ChatRoomNativeMethods.nim_chatroom_close_async(roomId, notify, null, CallbackBridge.OnRoomClosed, ptr);
        }