NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_robot_def.h 文件参考

智能机器人 接口相关的常量函数等定义头文件 更多...

浏览源代码.

类型定义

typedef void(* nim_robot_change_cb_func) (int rescode, NIMRobotInfoChangeType type, const char *result, const char *json_extension, const void *user_data)
 
typedef void(* nim_robot_query_cb_func) (int rescode, const char *result, const char *json_extension, const void *user_data)
 

枚举

enum  NIMRobotInfoChangeType { kNIMRobotInfoChangeTypeAll = 0 }
 

变量

机器人信息 Json Keys

例子 { "accid" : "", "create_timetag" : 1430101821372, "icon" : "", "intro":"", "name" : "", "update_timetag" : 1430101821372, "rid":"" }

static const char * kNIMRobotInfoKeyAccid = "accid"
 string 帐号
 
static const char * kNIMRobotInfoKeyName = "name"
 string 名字
 
static const char * kNIMRobotInfoKeyIcon = "icon"
 string 头像
 
static const char * kNIMRobotInfoKeyIntro = "intro"
 string 介绍
 
static const char * kNIMRobotInfoKeyRobotId = "rid"
 string 机器人ID
 
static const char * kNIMRobotInfoKeyCreateTime = "create_timetag"
 long 创建时间戳 毫秒
 
static const char * kNIMRobotInfoKeyUpdateTime = "update_timetag"
 long 更新时间戳 毫秒
 

详细描述

智能机器人 接口相关的常量函数等定义头文件

作者
Oleg
日期
2017/06/24

类型定义说明

◆ nim_robot_change_cb_func

void(* nim_robot_change_cb_func)(int rescode, NIMRobotInfoChangeType type, const char *result, const char *json_extension, const void *user_data)

机器人变更的通知函数定义

参数
[out]rescode错误码,200:一切正常
[out]type更新类型 0:全量更新
[out]result机器人信息 Json string array
[out]json_extensionjson扩展数据(备用)
[out]user_dataAPP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
返回
void 无返回值

◆ nim_robot_query_cb_func

void(* nim_robot_query_cb_func)(int rescode, const char *result, const char *json_extension, const void *user_data)

获取机器人信息的函数定义

参数
[out]rescode错误码,200:一切正常
[out]result机器人信息 Json string array
[out]json_extensionjson扩展数据(备用)
[out]user_dataAPP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
返回
void 无返回值

枚举类型说明

◆ NIMRobotInfoChangeType

枚举值
kNIMRobotInfoChangeTypeAll 

全量更新

变量说明

◆ kNIMRobotInfoKeyAccid

const char* kNIMRobotInfoKeyAccid = "accid"
static

string 帐号

◆ kNIMRobotInfoKeyCreateTime

const char* kNIMRobotInfoKeyCreateTime = "create_timetag"
static

long 创建时间戳 毫秒

◆ kNIMRobotInfoKeyIcon

const char* kNIMRobotInfoKeyIcon = "icon"
static

string 头像

◆ kNIMRobotInfoKeyIntro

const char* kNIMRobotInfoKeyIntro = "intro"
static

string 介绍

◆ kNIMRobotInfoKeyName

const char* kNIMRobotInfoKeyName = "name"
static

string 名字

◆ kNIMRobotInfoKeyRobotId

const char* kNIMRobotInfoKeyRobotId = "rid"
static

string 机器人ID

◆ kNIMRobotInfoKeyUpdateTime

const char* kNIMRobotInfoKeyUpdateTime = "update_timetag"
static

long 更新时间戳 毫秒