public class Wit
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Config |
config |
protected java.lang.String |
error |
protected java.lang.String |
response |
protected java.lang.Boolean |
status |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getError()
Get Latest Call Error
|
java.lang.String |
getName()
Get Package Name and Version
|
java.lang.Boolean |
getRequestStatus()
Get Latest Call Status
|
java.lang.String |
getResponse()
Get Latest Call Response
|
java.lang.Boolean |
send(Contract item)
Send A Call To Wit.Ai
|
protected Config config
protected java.lang.String response
protected java.lang.Boolean status
protected java.lang.String error
public Wit(Config config)
config - An instance of config classpublic java.lang.Boolean send(Contract item) throws DataNotValid, DataNotFound, java.io.IOException
item - Item Data to Send to Wit.AIDataNotValid - Data are not validDataNotFound - Some data are missingjava.io.IOException - Unable to send the requestpublic java.lang.String getResponse()
public java.lang.String getError()
public java.lang.Boolean getRequestStatus()
public java.lang.String getName()