public class DescObject extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
mName |
protected String |
mResult |
protected String |
mSourceCurrency |
protected int |
mStatus |
protected String |
mType |
protected String |
mURL |
static int |
STATUS_EXCEPTION |
static int |
STATUS_INPUT_LENGTH_TOO_LONG |
static int |
STATUS_NO_MATCHED_GRAMMAR |
static int |
STATUS_SELECTION_OVERFLOW |
static int |
STATUS_SERVER_ERROR |
static int |
STATUS_SUCCESS |
static int |
STATUS_TIMEOUT |
static String |
TYPE_BAIKE |
static String |
TYPE_COOKING |
static String |
TYPE_EXCHANGE_RATE |
static String |
TYPE_JOKE |
static String |
TYPE_MATH |
static String |
TYPE_NEWS |
static String |
TYPE_POEM |
static String |
TYPE_SEARCH |
static String |
TYPE_SHOPPING |
static String |
TYPE_STOCK_MARKET |
static String |
TYPE_STORY |
static String |
TYPE_TV_PROGRAM |
static String |
TYPE_UNIT_CONVERT |
static String |
TYPE_WEATHER |
Constructor and Description |
---|
DescObject() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Get Name information, it usually used in the IDS module.
|
String |
getReplyAnswer()
Get a chat reply, the answer to the conversation text input.
|
String |
getSourceCurrency()
Get source currency information, it usually used in the IDS module.
|
int |
getStatus()
Get the status of grammar analysis.
|
String |
getType()
Get type name, it usually refers to the IDS module name.
|
String |
getURL()
Get URL, it usually used in the IDS module.
|
boolean |
hasName() |
boolean |
hasReplyAnswer() |
boolean |
hasSourceCurrency() |
boolean |
hasType() |
boolean |
hasURL() |
public static final int STATUS_SUCCESS
public static final int STATUS_SELECTION_OVERFLOW
public static final int STATUS_NO_MATCHED_GRAMMAR
public static final int STATUS_INPUT_LENGTH_TOO_LONG
public static final int STATUS_TIMEOUT
public static final int STATUS_SERVER_ERROR
public static final int STATUS_EXCEPTION
public static final String TYPE_WEATHER
public static final String TYPE_BAIKE
public static final String TYPE_NEWS
public static final String TYPE_TV_PROGRAM
public static final String TYPE_POEM
public static final String TYPE_JOKE
public static final String TYPE_STORY
public static final String TYPE_STOCK_MARKET
public static final String TYPE_MATH
public static final String TYPE_UNIT_CONVERT
public static final String TYPE_EXCHANGE_RATE
public static final String TYPE_COOKING
public static final String TYPE_SEARCH
public static final String TYPE_SHOPPING
@Expose @SerializedName(value="result") protected String mResult
@Expose @SerializedName(value="status") protected int mStatus
@Expose @SerializedName(value="type") protected String mType
@Expose @SerializedName(value="url") protected String mURL
@Expose @SerializedName(value="name") protected String mName
@Expose @SerializedName(value="source_currency") protected String mSourceCurrency
public String getReplyAnswer()
public boolean hasReplyAnswer()
public int getStatus()
public String getType()
public boolean hasType()
public String getURL()
public boolean hasURL()
public String getName()
public boolean hasName()
public String getSourceCurrency()
public boolean hasSourceCurrency()
Copyright © 2018. All rights reserved.