|
NIM PC Cross Platform SDK
|
好友 接口相关的常量函数等定义头文件 More...
Go to the source code of this file.
Typedefs | |
| typedef void(* | nim_friend_opt_cb_func) (int res_code, const char *json_extension, const void *user_data) |
| typedef void(* | nim_friend_get_list_cb_func) (int res_code, const char *friend_list_json, const char *json_extension, const void *user_data) |
| typedef void(* | nim_friend_get_profile_cb_func) (const char *accid, const char *friend_profile_json, const char *json_extension, const void *user_data) |
| typedef void(* | nim_friend_change_cb_func) (enum NIMFriendChangeType type, const char *result_json, const char *json_extension, const void *user_data) |
Enumerations | |
| enum | NIMFriendFlag { kNIMFriendFlagNotFriend = 0 , kNIMFriendFlagNormal = 1 } |
| enum | NIMFriendSource { kNIMFriendSourceDefault = 0 } |
| enum | NIMVerifyType { kNIMVerifyTypeAdd = 1 , kNIMVerifyTypeAsk = 2 , kNIMVerifyTypeAgree = 3 , kNIMVerifyTypeReject = 4 } |
| enum | NIMFriendChangeType { kNIMFriendChangeTypeRequest = 1 , kNIMFriendChangeTypeDel = 2 , kNIMFriendChangeTypeUpdate = 3 , kNIMFriendChangeTypeSyncList = 5 } |
| enum | NIMFriendQueryType { kNIMFriendQueryDefault = 0 , kNIMFriendQueryByAccId = 1 , kNIMFriendQueryByAlias = 2 } |
好友 接口相关的常量函数等定义头文件
| void(* nim_friend_change_cb_func)(NIMFriendChangeType type, const char *result_json,const char *json_extension, const void *user_data) |
好友数据变化(添加、删除、更新)的监听回调函数定义
| [out] | type | NIMFriendChangeType,数据变化类型 |
| [out] | result_json | 同步内容,kNIMFriendChangeTypeAdd: {"accid" : "abc", "type" : "NIMVerifyType", "msg" : "msg"} , kNIMFriendChangeTypeDel: {"accid" : "abc"}, kNIMFriendChangeTypeUpdate: {"info" : 好友简况 Json value }, kNIMFriendChangeTypeSyncList: {"list":[a , b , ...]} |
| [out] | json_extension | json扩展数据(备用) |
| [out] | user_data | APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理! |
| void(* nim_friend_get_list_cb_func)(int res_code, const char *friend_list_json, const char *json_extension, const void *user_data) |
增量获取好友列表的回调函数定义
| [out] | res_code | 结果代码,一切正常200 |
| [out] | friend_list_json | 好友列表和好友资料Json字符串({"list":[a , b , ...]}) |
| [out] | json_extension | json扩展数据(备用) |
| [out] | user_data | APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理! |
| void(* nim_friend_get_profile_cb_func)(const char *accid, const char *friend_profile_json, const char *json_extension, const void *user_data) |
获取好友信息的回调函数定义
| [out] | accid | 好友ID |
| [out] | friend_profile_json | 好友简况 |
| [out] | json_extension | json扩展数据(备用) |
| [out] | user_data | APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理! |
| void(* nim_friend_opt_cb_func)(int res_code, const char *json_extension, const void *user_data) |
好友操作(添加、删除、更新)的回调函数定义
| [out] | res_code | 结果代码,一切正常200 |
| [out] | json_extension | json扩展数据(备用) |
| [out] | user_data | APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理! |
| enum NIMFriendChangeType |
| enum NIMFriendFlag |
| enum NIMFriendQueryType |
| enum NIMFriendSource |
| enum NIMVerifyType |