NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
v2_nim_chatroom_queue_service.hpp
浏览该文件的文档.
1#ifndef V2_NIM_CHATROOM_QUEUE_SERVICE_H
2#define V2_NIM_CHATROOM_QUEUE_SERVICE_H
3
4#include "v2_nim_internal.hpp"
5
6namespace v2 {
7
9public:
24 virtual void queueInit(uint32_t size, const V2NIMSuccessCallback<void>& success, const V2NIMFailureCallback& failure) = 0;
25
38 virtual void queueDrop(const V2NIMSuccessCallback<void>& success, const V2NIMFailureCallback& failure) = 0;
39
56 virtual void queueOffer(const V2NIMChatroomQueueOfferParams& params,
57 const V2NIMSuccessCallback<void>& success,
58 const V2NIMFailureCallback& failure) = 0;
59
73 virtual void queuePoll(const nstd::string& elementKey,
75 const V2NIMFailureCallback& failure) = 0;
76
90
104 const V2NIMFailureCallback& failure) = 0;
105
127 bool notificationEnabled,
128 const nstd::string& notificationExtension,
130 const V2NIMFailureCallback& failure) = 0;
131
158 virtual void addQueueListener(const V2NIMChatroomQueueListener& listener) = 0;
159
188 virtual void removeQueueListener(const V2NIMChatroomQueueListener& listener) = 0;
189};
190
191} // namespace v2
192
193#endif // V2_NIM_CHATROOM_QUEUE_SERVICE_H
Definition: ne_stl_continuous_container.h:15
Definition: ne_stl_string.h:19
Definition: v2_nim_chatroom_queue_service.hpp:8
virtual void queuePeek(const V2NIMSuccessCallback< const V2NIMChatroomQueueElement & > &success, const V2NIMFailureCallback &failure)=0
查看队头元素, 不删除
virtual void removeQueueListener(const V2NIMChatroomQueueListener &listener)=0
移除聊天室队列监听器
virtual void queueBatchUpdate(const nstd::vector< V2NIMChatroomQueueElement > &elements, bool notificationEnabled, const nstd::string &notificationExtension, const V2NIMSuccessCallback< const nstd::vector< nstd::string > & > &success, const V2NIMFailureCallback &failure)=0
批量更新队列元素
virtual void queuePoll(const nstd::string &elementKey, const V2NIMSuccessCallback< const V2NIMChatroomQueueElement & > &success, const V2NIMFailureCallback &failure)=0
取出头元素或者指定的元素
virtual void queueOffer(const V2NIMChatroomQueueOfferParams &params, const V2NIMSuccessCallback< void > &success, const V2NIMFailureCallback &failure)=0
聊天室队列新增或更新元素
virtual void queueInit(uint32_t size, const V2NIMSuccessCallback< void > &success, const V2NIMFailureCallback &failure)=0
初始化队列
virtual void queueDrop(const V2NIMSuccessCallback< void > &success, const V2NIMFailureCallback &failure)=0
清空队列,仅管理员/创建者可以操作
virtual void addQueueListener(const V2NIMChatroomQueueListener &listener)=0
添加聊天室队列监听器
virtual void queueList(const V2NIMSuccessCallback< const nstd::vector< V2NIMChatroomQueueElement > & > &success, const V2NIMFailureCallback &failure)=0
排序列出所有元素
通用成功
Definition: v2_nim_def_callback.hpp:7
Definition: v2_nim_ai_service.hpp:4
Definition: ne_stl_bind.h:132
Definition: v2_nim_def_callback.hpp:245
Definition: v2_nim_def_struct.hpp:2053