NIM PC Cross Platform SDK
nim_friend.h
Go to the documentation of this file.
1
8#ifndef NIM_SDK_DLL_API_NIM_FRIEND_H_
9#define NIM_SDK_DLL_API_NIM_FRIEND_H_
10
11#include "nim_friend_def.h"
12#include "public_defines.h"
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
28NIM_SDK_DLL_API void nim_friend_reg_changed_cb(const char* json_extension, nim_friend_change_cb_func cb, const void* user_data);
29
48NIM_SDK_DLL_API void nim_friend_request(const char* accid,
49 enum NIMVerifyType verify_type,
50 const char* msg,
51 const char* json_extension,
53 const void* user_data);
54
66NIM_SDK_DLL_API void nim_friend_delete(const char* accid, const char* json_extension, nim_friend_opt_cb_func cb, const void* user_data);
67
79NIM_SDK_DLL_API void nim_friend_update(const char* friend_json, const char* json_extension, nim_friend_opt_cb_func cb, const void* user_data);
80
89NIM_SDK_DLL_API void nim_friend_get_list(const char* json_extension, nim_friend_get_list_cb_func cb, const void* user_data);
90
99NIM_SDK_DLL_API void nim_friend_get_profile(const char* accid, const char* json_extension, nim_friend_get_profile_cb_func cb, const void* user_data);
100
107NIM_SDK_DLL_API bool nim_friend_query_friendship_block(const char* accid, const char* json_extension);
108
117NIM_SDK_DLL_API void nim_friend_query_by_keyword(const char* keyword,
118 const char* json_extension,
120 const void* user_data);
121
122#ifdef __cplusplus
123}
124#endif
125
126#endif // NIM_SDK_DLL_API_NIM_FRIEND_H_
NIM_SDK_DLL_API void nim_friend_update(const char *friend_json, const char *json_extension, nim_friend_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_friend_reg_changed_cb(const char *json_extension, nim_friend_change_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_friend_delete(const char *accid, const char *json_extension, nim_friend_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_friend_query_by_keyword(const char *keyword, const char *json_extension, nim_friend_get_list_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_friend_get_profile(const char *accid, const char *json_extension, nim_friend_get_profile_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_friend_get_list(const char *json_extension, nim_friend_get_list_cb_func cb, const void *user_data)
NIM_SDK_DLL_API bool nim_friend_query_friendship_block(const char *accid, const char *json_extension)
NIM_SDK_DLL_API void nim_friend_request(const char *accid, enum NIMVerifyType verify_type, const char *msg, const char *json_extension, nim_friend_opt_cb_func cb, const void *user_data)
好友 接口相关的常量函数等定义头文件
void(* nim_friend_opt_cb_func)(int res_code, const char *json_extension, const void *user_data)
Definition: nim_friend_def.h:108
void(* nim_friend_get_profile_cb_func)(const char *accid, const char *friend_profile_json, const char *json_extension, const void *user_data)
Definition: nim_friend_def.h:129
void(* nim_friend_get_list_cb_func)(int res_code, const char *friend_list_json, const char *json_extension, const void *user_data)
Definition: nim_friend_def.h:118
NIMVerifyType
Definition: nim_friend_def.h:68
void(* nim_friend_change_cb_func)(enum NIMFriendChangeType type, const char *result_json, const char *json_extension, const void *user_data)
Definition: nim_friend_def.h:141
NIM SDK 及 NIM ChatRoom SDK 公用头文件