NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
v2_nim_friend_service.hpp
浏览该文件的文档.
1#ifndef V2_NIM_FRIEND_SERVICE_H
2#define V2_NIM_FRIEND_SERVICE_H
3#include "v2_nim_internal.hpp"
4namespace v2 {
15public:
37 virtual void addFriend(nstd::string accountId, V2NIMFriendAddParams params, V2NIMSuccessCallback<void> success, V2NIMFailureCallback failure) = 0;
38
59 virtual void deleteFriend(nstd::string accountId,
62 V2NIMFailureCallback failure) = 0;
63
84
107 nstd::string postscript,
109 V2NIMFailureCallback failure) = 0;
110
131 virtual void setFriendInfo(nstd::string accountId,
134 V2NIMFailureCallback failure) = 0;
135
151
170 V2NIMFailureCallback failure) = 0;
171
190 V2NIMFailureCallback failure) = 0;
191
213 V2NIMFailureCallback failure) = 0;
214
231
248
269 V2NIMFailureCallback failure) = 0;
270
285 virtual void clearAllAddApplication(const V2NIMSuccessCallback<void>& success, const V2NIMFailureCallback& failure) = 0;
286
306 virtual void deleteAddApplication(const V2NIMFriendAddApplication& application,
307 const V2NIMSuccessCallback<void>& success,
308 const V2NIMFailureCallback& failure) = 0;
309
342 virtual void addFriendListener(V2NIMFriendListener listener) = 0;
343
355 virtual void removeFriendListener(V2NIMFriendListener listener) = 0;
356};
357} // namespace v2
358#endif
Definition: ne_stl_continuous_container.h:15
Definition: ne_stl_string.h:19
Definition: ne_stl_map.h:15
好友服务
Definition: v2_nim_friend_service.hpp:14
virtual void rejectAddApplication(V2NIMFriendAddApplication application, nstd::string postscript, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
拒绝好友申请,在调用此 API 后该申请的状态会变为已拒绝,同时标记为已读
virtual void getAddApplicationUnreadCount(V2NIMSuccessCallback< uint32_t > success, V2NIMFailureCallback failure)=0
获取申请添加好友未读数 统计所有状态为未处理,且未读的数量
virtual void removeFriendListener(V2NIMFriendListener listener)=0
移除好友监听器
virtual void deleteFriend(nstd::string accountId, V2NIMFriendDeleteParams params, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
删除好友
virtual void searchFriendByOption(const V2NIMFriendSearchOption &option, V2NIMSuccessCallback< nstd::vector< V2NIMFriend > > success, V2NIMFailureCallback failure)=0
根据关键字搜索好友信息
virtual void clearAllAddApplication(const V2NIMSuccessCallback< void > &success, const V2NIMFailureCallback &failure)=0
清空所有好友申请
virtual void acceptAddApplication(V2NIMFriendAddApplication application, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
接受好友申请,调用该 API 后该申请的状态会变为已同意,同时标记为已读
virtual void addFriend(nstd::string accountId, V2NIMFriendAddParams params, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
添加好友
virtual void checkFriend(nstd::vector< nstd::string > accountIds, V2NIMSuccessCallback< nstd::map< nstd::string, bool > > success, V2NIMFailureCallback failure)=0
根据账号 ID 检查好友状态
virtual void setAddApplicationRead(V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
设置好友申请已读 调用该方法,历史数据未读数据均标记为已读
virtual void getFriendList(V2NIMSuccessCallback< nstd::vector< V2NIMFriend > > success, V2NIMFailureCallback failure)=0
获取好友列表
virtual void addFriendListener(V2NIMFriendListener listener)=0
添加好友监听器
virtual void deleteAddApplication(const V2NIMFriendAddApplication &application, const V2NIMSuccessCallback< void > &success, const V2NIMFailureCallback &failure)=0
删除好友申请
virtual void getFriendByIds(nstd::vector< nstd::string > accountIds, V2NIMSuccessCallback< nstd::vector< V2NIMFriend > > success, V2NIMFailureCallback failure)=0
根据账号 ID 获取好友信息
virtual void getAddApplicationList(V2NIMFriendAddApplicationQueryOption option, V2NIMSuccessCallback< V2NIMFriendAddApplicationResult > success, V2NIMFailureCallback failure)=0
获取申请添加好友信息列表
virtual void setFriendInfo(nstd::string accountId, V2NIMFriendSetParams params, V2NIMSuccessCallback< void > success, 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_struct.hpp:1624
Definition: v2_nim_def_struct.hpp:1697
Definition: v2_nim_def_struct.hpp:1617
Definition: v2_nim_def_struct.hpp:1641
Definition: v2_nim_def_callback.hpp:190
Definition: v2_nim_def_struct.hpp:1653
Definition: v2_nim_def_struct.hpp:1646