对DuerOS请求bot的request body进行封装
Kind: global class
- Request
- new Request(data)
- .getData() ⇒
Object
- .getSession() ⇒
Session
- .getNlu() ⇒
Nlu
- .getType() ⇒
string
- .getAudioPlayerContext() ⇒
Object
- .getVideoPlayerContext() ⇒
Object
- .getScreenContext() ⇒
Object
- .getEventData() ⇒
Object
- .getUserId() ⇒
string
- .getQuery() ⇒
string
- .isLaunchRequest() ⇒
boolean
- .isSessionEndedRequest() ⇒
boolean
- .getBotId() ⇒
string
- .getLocation() ⇒
null
|Object
- .isDialogStateCompleted() ⇒
boolean
- .getApiAccessToken() ⇒
string
- .getApiEndPoint() ⇒
string
- .getExternalAccessTokens() ⇒
Array
constructor
Param | Type | Description |
---|---|---|
data | Object |
request |
获取Request 的数据
Kind: instance method of Request
获取session 对象
Kind: instance method of Request
获取nlu 对象
Kind: instance method of Request
获取请求类型
Kind: instance method of Request
获取设备音频播放的状态
Kind: instance method of Request
获取设备视频播放的状态
Kind: instance method of Request
获取screen context
Kind: instance method of Request
返回event request数据
Kind: instance method of Request
获取用户的user id
Kind: instance method of Request
获取请求的query
Kind: instance method of Request
判断是否为调起bot的请求
Kind: instance method of Request
判断是否为结束对话的请求
Kind: instance method of Request
获取bot id
Kind: instance method of Request
获取地理位置
Kind: instance method of Request
判断槽位是否填完。针对于填槽多轮。
Kind: instance method of Request
获取apiAccessToken
Kind: instance method of Request
获取apiEndPoint
Kind: instance method of Request
获取externalAccessTokens
Kind: instance method of Request