NIM C# SDK  6.3.0
NIM.Robot Namespace Reference

Classes

class  BotMessageItem
 
class  BotResponse
 bot 消息 More...
 
class  FAQMessage
 faq 回复消息 More...
 
class  FAQMessageItem
 
class  FAQResponse
 
interface  IElement
 
interface  ILayout
 
class  Image
 
class  LinearLayout
 
class  Link
 
class  MessageTemplate
 机器人模板消息 More...
 
class  NIMRobotAPI
 机器人接口 More...
 
class  RedirectionMessage
 内容跳转消息 More...
 
class  ResponseContent
 
class  ResponseMessage
 接收到的机器人消息 More...
 
class  RobotMessage
 向机器人账号发送的消息 More...
 
class  RobotMessageAttach
 
class  RobotMessageContent
 
class  RobotNativeMethods
 
class  Text
 
class  TextMessage
 文本消息 More...
 
class  WelcomeMessage
 欢迎消息 More...
 

Enumerations

enum  RobotResponseType { RobotResponseType.Unknown, RobotResponseType.FAQ, RobotResponseType.Bot }
 机器人响应消息类型 More...
 
enum  BotResponseType { BotResponseType.Text = 1, BotResponseType.Image = 2, BotResponseType.Replay = 3, BotResponseType.Template = 11 }
 
enum  FAQAnswerType {
  FAQAnswerType.OneHighMatch = 1, FAQAnswerType.SomeHighMatch, FAQAnswerType.SomeLowMatch, FAQAnswerType.NoMatch,
  FAQAnswerType.Other
}
 

Functions

delegate void RobotChangedCallback (ResponseCode result, NIMRobotInfoChangeType type, List< RobotInfo > robots, object data)
 
delegate void GetRobotsDelegate (ResponseCode result, List< RobotInfo > robots)
 
delegate void nim_robot_change_cb_func (int rescode, NIMRobotInfoChangeType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string result, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string json_extension, IntPtr user_data)
 
delegate void nim_robot_query_cb_func (int rescode, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string result, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string json_extension, IntPtr user_data)
 

Enumeration Type Documentation

◆ BotResponseType

Enumerator
Text 
Image 
Replay 
Template 

◆ FAQAnswerType

Enumerator
OneHighMatch 

能匹配到问答对库中一个相似度高的问题

SomeHighMatch 

能匹配到问答对库中若干个相似度高的问题

SomeLowMatch 

能匹配到问答对库中若干个相似度较低的问题

NoMatch 

不能匹配问题

Other 

能匹配到寒暄库中一个相似度高的问题

◆ RobotResponseType

机器人响应消息类型

Enumerator
Unknown 
FAQ 
Bot 

Function Documentation

◆ GetRobotsDelegate()

delegate void NIM.Robot.GetRobotsDelegate ( ResponseCode  result,
List< RobotInfo robots 
)

◆ nim_robot_change_cb_func()

delegate void NIM.Robot.nim_robot_change_cb_func ( int  rescode,
NIMRobotInfoChangeType  type,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string  result,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string  json_extension,
IntPtr  user_data 
)

◆ nim_robot_query_cb_func()

delegate void NIM.Robot.nim_robot_query_cb_func ( int  rescode,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string  result,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string  json_extension,
IntPtr  user_data 
)

◆ RobotChangedCallback()

delegate void NIM.Robot.RobotChangedCallback ( ResponseCode  result,
NIMRobotInfoChangeType  type,
List< RobotInfo robots,
object  data 
)