Exemple #1
0
        /// <summary>
        /// (聊天室管理员权限)新加(更新)麦序队列元素,如果element_key对应的元素已经在队列中存在了,那就是更新操作,如果不存在,就放到队列尾部
        /// </summary>
        /// <param name="roomId">聊天室ID</param>
        /// <param name="element_key">新元素的UniqKey,长度限制128字节 </param>
        /// <param name="elemnet_value">新元素内容,长度限制4096字节 </param>
        /// <param name="cb"></param>
        /// <param name="json_extension"></param>
        public static void QueueOfferAsync(long roomId, string element_key, string elemnet_value, ChatRoomQueueOfferDelegate cb, string json_extension = "")
        {
            var ptr = NimUtility.DelegateConverter.ConvertToIntPtr(cb);

            ChatRoomNativeMethods.nim_chatroom_queue_offer_async(roomId, element_key, elemnet_value, json_extension, CallbackBridge.ChatroomQueueOfferCallback, ptr);
            //ChatRoomNativeMethods.nim_chatroom_queue_offer_async(roomId, element_key, elemnet_value, json_extension, cb, IntPtr.Zero);
        }