NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
v2_nim_conversation_service.hpp
浏览该文件的文档.
1#ifndef V2_NIM_CONVERSATION_SERVICE_H
2#define V2_NIM_CONVERSATION_SERVICE_H
3#include "v2_nim_internal.hpp"
4namespace v2 {
16public:
35
55 virtual void deleteConversation(nstd::string conversationId,
56 bool clearMessage,
58 V2NIMFailureCallback failure) = 0;
59
82 bool clearMessage,
84 V2NIMFailureCallback failure) = 0;
85
105 virtual void stickTopConversation(nstd::string conversationId,
106 bool stickTop,
108 V2NIMFailureCallback failure) = 0;
109
131 virtual void updateConversation(nstd::string conversationId,
132 V2NIMConversationUpdate updateInfo,
134 V2NIMFailureCallback failure) = 0;
135
156 nstd::string localExtension,
158 V2NIMFailureCallback failure) = 0;
159
178
197 virtual void getConversationList(uint64_t offset,
198 uint32_t limit,
200 V2NIMFailureCallback failure) = 0;
201
223 V2NIMFailureCallback failure) = 0;
224
248 virtual void getConversationListByOption(uint64_t offset,
249 uint32_t limit,
252 V2NIMFailureCallback failure) = 0;
253
261 virtual uint32_t getTotalUnreadCount() = 0;
262
284 V2NIMFailureCallback failure) = 0;
285
305
321
343 V2NIMFailureCallback failure) = 0;
344
363 V2NIMFailureCallback failure) = 0;
364
382
396
408
424 virtual void markConversationRead(nstd::string conversationId, V2NIMSuccessCallback<time_t> success, V2NIMFailureCallback failure) = 0;
425
442
476
489};
490} // namespace v2
491
492#endif
Definition: ne_stl_continuous_container.h:15
Definition: ne_stl_string.h:19
会话服务
Definition: v2_nim_conversation_service.hpp:15
virtual void deleteConversationListByIds(nstd::vector< nstd::string > conversationIds, bool clearMessage, V2NIMSuccessCallback< nstd::vector< V2NIMConversationOperationResult > > success, V2NIMFailureCallback failure)=0
批量删除会话
virtual void addConversationListener(V2NIMConversationListener listener)=0
添加会话监听
virtual void updateConversationLocalExtension(nstd::string conversationId, nstd::string localExtension, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
更新会话本地扩展
virtual void createConversation(nstd::string conversationId, V2NIMSuccessCallback< V2NIMConversation > success, V2NIMFailureCallback failure)=0
创建空会话
virtual nstd::optional< V2NIMError > unsubscribeUnreadCountByFilter(V2NIMConversationFilter filter)=0
取消订阅指定过滤条件的会话未读数
virtual void deleteConversation(nstd::string conversationId, bool clearMessage, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
删除会话
virtual void removeConversationListener(V2NIMConversationListener listener)=0
移除会话监听
virtual void getConversationList(uint64_t offset, uint32_t limit, V2NIMSuccessCallback< V2NIMConversationResult > success, V2NIMFailureCallback failure)=0
分页获取会话列表
virtual void clearUnreadCountByIds(nstd::vector< nstd::string > conversationIds, V2NIMSuccessCallback< nstd::vector< V2NIMConversationOperationResult > > success, V2NIMFailureCallback failure)=0
根据会话 ID 列表清除会话未读数
virtual void clearTotalUnreadCount(V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
清除会话总未读数
virtual void clearUnreadCountByGroupId(nstd::string groupId, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
根据会话分组清除会话未读数
virtual void getUnreadCountByFilter(V2NIMConversationFilter filter, V2NIMSuccessCallback< uint32_t > success, V2NIMFailureCallback failure)=0
根据过滤条件获取会话未读总数
virtual void updateConversation(nstd::string conversationId, V2NIMConversationUpdate updateInfo, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
更新会话
virtual void getConversationListByOption(uint64_t offset, uint32_t limit, V2NIMConversationOption option, V2NIMSuccessCallback< V2NIMConversationResult > success, V2NIMFailureCallback failure)=0
根据条件筛选分页获取会话列表
virtual uint32_t getTotalUnreadCount()=0
获取会话未读总数
virtual void getConversation(nstd::string conversationId, V2NIMSuccessCallback< V2NIMConversation > success, V2NIMFailureCallback failure)=0
获取会话
virtual void getConversationReadTime(nstd::string conversationId, V2NIMSuccessCallback< time_t > success, V2NIMFailureCallback failure)=0
获取会话已读时间戳
virtual void clearUnreadCountByTypes(nstd::vector< V2NIMConversationType > conversationTypes, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
根据会话类型清除会话未读数
virtual nstd::optional< V2NIMError > subscribeUnreadCountByFilter(V2NIMConversationFilter filter)=0
订阅指定过滤条件的会话未读数
virtual void stickTopConversation(nstd::string conversationId, bool stickTop, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
置顶会话
virtual void markConversationRead(nstd::string conversationId, V2NIMSuccessCallback< time_t > success, V2NIMFailureCallback failure)=0
标记会话已读时间戳
virtual void getConversationListByIds(nstd::vector< nstd::string > conversationIds, V2NIMSuccessCallback< nstd::vector< V2NIMConversation > > success, V2NIMFailureCallback failure)=0
根据会话ID获取会话列表
virtual void getUnreadCountByIds(nstd::vector< nstd::string > conversationIds, V2NIMSuccessCallback< uint32_t > success, V2NIMFailureCallback failure)=0
根据会话 ID 列表获取未读总数
通用成功
Definition: v2_nim_def_callback.hpp:7
Definition: v2_nim_ai_service.hpp:4
Definition: ne_stl_optional.h:16
Definition: ne_stl_bind.h:132
Definition: v2_nim_def_struct.hpp:1280
Definition: v2_nim_def_callback.hpp:74
Definition: v2_nim_def_struct.hpp:1271
Definition: v2_nim_def_struct.hpp:1266