NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_robot_def.h
浏览该文件的文档.
1
7#ifndef NIM_SDK_DLL_EXPORT_HEADERS_ROBOT_DEF_H_
8#define NIM_SDK_DLL_EXPORT_HEADERS_ROBOT_DEF_H_
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
18// 协议定义
20static const char* kNIMRobotInfoKeyAccid = "accid";
22static const char* kNIMRobotInfoKeyName = "name";
24static const char* kNIMRobotInfoKeyIcon = "icon";
26static const char* kNIMRobotInfoKeyIntro = "intro";
28static const char* kNIMRobotInfoKeyRobotId = "rid";
30static const char* kNIMRobotInfoKeyCreateTime = "create_timetag";
32static const char* kNIMRobotInfoKeyUpdateTime = "update_timetag"; // 机器人信息 Json Keys
34
39};
40
51typedef void (
52 *nim_robot_change_cb_func)(int rescode, NIMRobotInfoChangeType type, const char* result, const char* json_extension, const void* user_data);
53
62typedef void (*nim_robot_query_cb_func)(int rescode, const char* result, const char* json_extension, const void* user_data);
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif // NIM_SDK_DLL_EXPORT_HEADERS_ROBOT_DEF_H_
static const char * kNIMRobotInfoKeyAccid
string 帐号
Definition: nim_robot_def.h:20
void(* nim_robot_change_cb_func)(int rescode, NIMRobotInfoChangeType type, const char *result, const char *json_extension, const void *user_data)
Definition: nim_robot_def.h:52
static const char * kNIMRobotInfoKeyRobotId
string 机器人ID
Definition: nim_robot_def.h:28
static const char * kNIMRobotInfoKeyIcon
string 头像
Definition: nim_robot_def.h:24
static const char * kNIMRobotInfoKeyIntro
string 介绍
Definition: nim_robot_def.h:26
static const char * kNIMRobotInfoKeyName
string 名字
Definition: nim_robot_def.h:22
static const char * kNIMRobotInfoKeyCreateTime
long 创建时间戳 毫秒
Definition: nim_robot_def.h:30
void(* nim_robot_query_cb_func)(int rescode, const char *result, const char *json_extension, const void *user_data)
Definition: nim_robot_def.h:62
static const char * kNIMRobotInfoKeyUpdateTime
long 更新时间戳 毫秒
Definition: nim_robot_def.h:32
NIMRobotInfoChangeType
Definition: nim_robot_def.h:36
@ kNIMRobotInfoChangeTypeAll
全量更新
Definition: nim_robot_def.h:38