7#ifndef _NIM_SDK_CPP_ROBOT_HELPER_H_
8#define _NIM_SDK_CPP_ROBOT_HELPER_H_
71typedef std::list<RobotInfo> RobotInfos;
Represents a JSON value.
Definition: value.h:196
bool ParseRobotInfoStringToRobotInfo(const std::string &info_json, RobotInfo &info)
解析机器人信息
Definition: nim_robot_helper.cpp:24
bool ParseRobotInfosStringToRobotInfos(const std::string &infos_json, RobotInfos &infos)
解析机器人信息
Definition: nim_robot_helper.cpp:10
static const char * kNIMRobotInfoKeyAccid
string 帐号
Definition: nim_chatroom_def.h:877
static const char * kNIMRobotInfoKeyRobotId
string 机器人ID
Definition: nim_chatroom_def.h:885
static const char * kNIMRobotInfoKeyIcon
string 头像
Definition: nim_chatroom_def.h:881
static const char * kNIMRobotInfoKeyIntro
string 介绍
Definition: nim_chatroom_def.h:883
static const char * kNIMRobotInfoKeyName
string 名字
Definition: nim_chatroom_def.h:879
static const char * kNIMRobotInfoKeyCreateTime
long 创建时间戳 毫秒
Definition: nim_chatroom_def.h:887
static const char * kNIMRobotInfoKeyUpdateTime
long 更新时间戳 毫秒
Definition: nim_chatroom_def.h:889
NIM SDK 及 NIM ChatRoom SDK 公用头文件
机器人信息
Definition: nim_robot_helper.h:23
std::string GetRobotID() const
Definition: nim_robot_helper.h:53
void SetName(const std::string &name)
Definition: nim_robot_helper.h:32
std::string GetName() const
Definition: nim_robot_helper.h:35
void SetRobotID(const std::string &id)
Definition: nim_robot_helper.h:50
uint64_t GetCreateTime() const
Definition: nim_robot_helper.h:59
std::string GetIntro() const
Definition: nim_robot_helper.h:47
void SetAccid(const std::string &accid)
Definition: nim_robot_helper.h:26
std::string GetAccid() const
Definition: nim_robot_helper.h:29
uint64_t GetUpdateTime() const
Definition: nim_robot_helper.h:65
void SetCreateTime(const uint64_t time)
Definition: nim_robot_helper.h:56
void SetIcon(const std::string &icon)
Definition: nim_robot_helper.h:38
void SetIntro(const std::string &intro)
Definition: nim_robot_helper.h:44
std::string GetIcon() const
Definition: nim_robot_helper.h:41
void SetUpdateTime(const uint64_t time)
Definition: nim_robot_helper.h:62