1#ifndef V2_NIM_CONVERSATION_SERVICE_H
2#define V2_NIM_CONVERSATION_SERVICE_H
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