NIM SDK API  8.5.1
Classes | Namespaces | Functions | Variables
nim_friend_helper.h File Reference

SDK好友辅助方法 More...

#include <assert.h>
#include <list>
#include <string>
#include "nim_define_include.h"
#include "nim_cpp_wrapper/nim_sdk_cpp_wrapper.h"
#include "nim_wrapper_util/nim_json_util.h"
#include "public_defines.h"

Go to the source code of this file.

Classes

struct  nim::DeleteFriendOption
 删除好有拓展选项 More...
 
struct  nim::FriendProfile
 云信好友 More...
 
struct  nim::FriendChangeEvent
 云信好友变更事件 More...
 
struct  nim::FriendAddEvent
 云信好友变更事件(请求添加) More...
 
struct  nim::FriendDelEvent
 云信好友变更事件(删除) More...
 
struct  nim::FriendProfileUpdateEvent
 云信好友变更事件(更新) More...
 
struct  nim::FriendProfileSyncEvent
 云信好友变更事件(多端同步) More...
 

Namespaces

 nim
 namespace nim
 

Functions

NIM_SDK_CPPWRAPPER_DLL_API bool nim::ParseFriendsProfile (const std::string &friends_profile_json, std::list< FriendProfile > &profiles)
 解析(多)好友信息 More...
 
NIM_SDK_CPPWRAPPER_DLL_API bool nim::ParseFriendProfile (const std::string &friend_profile_json, FriendProfile &profile)
 解析(单个)好友信息 More...
 
NIM_SDK_CPPWRAPPER_DLL_API void nim::ParseFriendProfile (const nim_cpp_wrapper_util::Json::Value &friend_profile_json, FriendProfile &profile)
 解析(单个)好友信息 More...
 

Variables

 kFriendProfileKeyNone = 0
 
 kFriendProfileKeyRelationship = 1
 
 kFriendProfileKeyPassiveRelationship = 1 << 1
 
 kFriendProfileKeySource = 1 << 2
 
 kFriendProfileKeyAlias = 1 << 3
 
 kFriendProfileKeyBits = 1 << 4
 
 kFriendProfileKeyEx = 1 << 5
 
 kFriendProfileKeyServerEx = 1 << 6
 

Detailed Description

SDK好友辅助方法

Date
2015/10/20

Variable Documentation

◆ kFriendProfileKeyAlias

kFriendProfileKeyAlias = 1 << 3

别称

◆ kFriendProfileKeyBits

kFriendProfileKeyBits = 1 << 4

扩展项,int64

◆ kFriendProfileKeyEx

kFriendProfileKeyEx = 1 << 5

扩展项,json value

◆ kFriendProfileKeyNone

kFriendProfileKeyNone = 0

无数据

◆ kFriendProfileKeyPassiveRelationship

kFriendProfileKeyPassiveRelationship = 1 << 1

被动好友关系

◆ kFriendProfileKeyRelationship

kFriendProfileKeyRelationship = 1

主动好友关系

◆ kFriendProfileKeyServerEx

kFriendProfileKeyServerEx = 1 << 6

服务端扩展项,string 只读

◆ kFriendProfileKeySource

kFriendProfileKeySource = 1 << 2

好友来源