NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
v2_nim_user_service.hpp
浏览该文件的文档.
1#ifndef V2_NIM_USER_SERVICE_H
2#define V2_NIM_USER_SERVICE_H
3#include "v2_nim_internal.hpp"
4namespace v2 {
15public:
35 virtual void getUserList(nstd::vector<nstd::string> accountIds,
37 V2NIMFailureCallback failure) = 0;
38
58
76
94
112
134 V2NIMFailureCallback failure) = 0;
135
156 virtual void searchUserByOption(const V2NIMUserSearchOption& option,
158 V2NIMFailureCallback failure) = 0;
159
177 virtual void addUserListener(V2NIMUserListener listener) = 0;
178
190 virtual void removeUserListener(V2NIMUserListener listener) = 0;
191};
192} // namespace v2
193
194#endif
Definition: ne_stl_continuous_container.h:15
Definition: ne_stl_string.h:19
通用成功
Definition: v2_nim_def_callback.hpp:7
用户资料服务
Definition: v2_nim_user_service.hpp:14
virtual void addUserListener(V2NIMUserListener listener)=0
添加用户资料监听器
virtual void removeUserFromBlockList(nstd::string accountId, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
从黑名单中移除用户
virtual void getBlockList(V2NIMSuccessCallback< nstd::vector< nstd::string > > success, V2NIMFailureCallback failure)=0
获取黑名单列表
virtual void addUserToBlockList(nstd::string accountId, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
添加用户到黑名单中
virtual void updateSelfUserProfile(V2NIMUserUpdateParams updateParams, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
更新自己的用户资料
virtual void removeUserListener(V2NIMUserListener listener)=0
移除用户资料监听器
virtual void getUserListFromCloud(nstd::vector< nstd::string > accountIds, V2NIMSuccessCallback< nstd::vector< V2NIMUser > > success, V2NIMFailureCallback failure)=0
根据用户账号列表从服务器获取用户资料
virtual void searchUserByOption(const V2NIMUserSearchOption &option, V2NIMSuccessCallback< nstd::vector< V2NIMUser > > success, V2NIMFailureCallback failure)=0
根据关键字搜索用户信息
virtual void getUserList(nstd::vector< nstd::string > accountIds, V2NIMSuccessCallback< nstd::vector< V2NIMUser > > success, V2NIMFailureCallback failure)=0
根据用户账号列表获取用户资料
Definition: v2_nim_ai_service.hpp:4
Definition: ne_stl_bind.h:132
Definition: v2_nim_def_callback.hpp:180
用户搜索选项
Definition: v2_nim_def_struct.hpp:1585
Definition: v2_nim_def_struct.hpp:1565