public class Twilio extends BasicSense
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_WAIT |
conversations, DAY, DEFAULT_SPEAKER, engaged, HOUR, MAX_FILE_SIZE, MINUTE, RETRY| Constructor and Description |
|---|
Twilio() |
| Modifier and Type | Method and Description |
|---|---|
void |
awake()
Start sensing.
|
java.lang.String |
getPhone() |
java.lang.String |
getSecret() |
java.lang.String |
getSid() |
void |
initProperties()
Load settings.
|
void |
inputSentence(java.lang.String text,
java.lang.String userName,
java.lang.String id,
Network network)
Process the text sentence.
|
void |
notifyExceptionListeners(java.lang.Exception exception) |
void |
output(Vertex output)
Output the SMS message.
|
java.lang.String |
processMessage(java.lang.String from,
java.lang.String message)
Process to the message and reply synchronously.
|
void |
saveProperties() |
void |
sendSMS(java.lang.String phone,
java.lang.String message) |
void |
setPhone(java.lang.String phone) |
void |
setSecret(java.lang.String secret) |
void |
setSid(java.lang.String sid) |
void |
sms(Vertex source,
Vertex phone,
Vertex message) |
addListener, checkEngaged, checkSentence, discover, discoverSentence, getAction, getBot, getEmotionalState, getLanguageState, getListeners, getName, getPrimitive, getResponseListener, getShortTermMemory, initialize, input, input, isEnabled, log, log, log, migrateProperties, notifyExceptionListeners, notifyResponseListener, pool, printInput, removeListener, setAction, setBot, setEmotionalState, setIsEnabled, setLanguageState, setName, setResponseListener, shutdown, toStringpublic void awake()
awake in interface Senseawake in class BasicSensepublic void initProperties()
public void saveProperties()
saveProperties in interface SensesaveProperties in class BasicSensepublic void inputSentence(java.lang.String text,
java.lang.String userName,
java.lang.String id,
Network network)
public java.lang.String processMessage(java.lang.String from,
java.lang.String message)
public void notifyExceptionListeners(java.lang.Exception exception)
public void output(Vertex output)
output in interface Senseoutput in class BasicSensepublic java.lang.String getSid()
public void setSid(java.lang.String sid)
public java.lang.String getPhone()
public void setPhone(java.lang.String phone)
public java.lang.String getSecret()
public void setSecret(java.lang.String secret)
public void sendSMS(java.lang.String phone,
java.lang.String message)