public class ResponseResult extends Object
| 构造器 | 说明 |
|---|---|
ResponseResult() |
A no-argument constructor used to create a
ResponseResult instance. |
ResponseResult(int code,
String message) |
A parameterized constructor used to create a
ResponseResult instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getCode() |
Obtains the result code (represented by the code field) of NLU recognition.
|
String |
getMessage() |
Obtains the result message (represented by the message field) of NLU recognition.
|
String |
getResponseResult() |
Obtains the NLU response result, including the result code and message.
|
public ResponseResult()
ResponseResult instance.public ResponseResult(int code,
String message)
ResponseResult instance.code - Indicates the result code of NLU recognition.message - Indicates the result message of NLU recognition.public String getResponseResult()
public int getCode()
public String getMessage()