7 #ifndef _NIM_SDK_CPP_FRIEND_H_
8 #define _NIM_SDK_CPP_FRIEND_H_
23 class NIM_SDK_CPPWRAPPER_DLL_API
Friend {
27 typedef std::function<void(NIMResCode res_code,
const std::list<nim::FriendProfile>& user_profile_list)>
29 typedef std::function<void(
const std::string& accid,
const nim::FriendProfile& user_profile)>
57 static bool Request(
const std::string& accid,
58 NIMVerifyType verify_type,
59 const std::string& msg,
61 const std::string& json_extension =
"");
73 static bool Delete(
const std::string& accid,
const FriendOptCallback& cb,
const std::string& json_extension =
"");
115 static void GetFriendProfile(
const std::string& accid,
const GetFriendProfileCallback& cb,
const std::string& json_extension =
"");
153 static void UnregFriendCb();
161 static bool QueryFriendshipBlock(
const std::string& accid,
const std::string& json_extension =
"");
171 static bool QueryFriendListByKeyword(
const std::string& keyword,
const GetFriendsListCallback& cb,
const std::string& json_extension =
"");
176 #endif //_NIM_SDK_CPP_FRIEND_H_