|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.fastagi.command.AGICommand net.sf.asterisk.fastagi.command.SayTimeCommand
public class SayTimeCommand
Say a given time, returning early if any of the given DTMF digits are
received on the channel.
Time is the number of seconds elapsed since 00:00:00 on January 1, 1970,
Coordinated Universal Time (UTC).
Returns 0 if playback completes without a digit being pressed, or the ASCII
numerical value of the digit if one was pressed or -1 on error/hangup.
Constructor Summary | |
---|---|
SayTimeCommand(long time)
Creates a new SayTimeCommand. |
|
SayTimeCommand(long time,
java.lang.String escapeDigits)
Creates a new SayTimeCommand. |
Method Summary | |
---|---|
java.lang.String |
buildCommand()
Returns a string suitable to be sent to asterisk. |
java.lang.String |
getEscapeDigits()
Returns the digits that allow the user to interrupt this command. |
long |
getTime()
Returns the time to say in seconds since 00:00:00 on January 1, 1970. |
void |
setEscapeDigits(java.lang.String escapeDigits)
Sets the digits that allow the user to interrupt this command. |
void |
setTime(long time)
Sets the time to say in seconds since 00:00:00 on January 1, 1970. |
Methods inherited from class net.sf.asterisk.fastagi.command.AGICommand |
---|
escapeAndQuote, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SayTimeCommand(long time)
time
- the time to say in seconds since 00:00:00 on January 1, 1970.public SayTimeCommand(long time, java.lang.String escapeDigits)
time
- the time to say in seconds since 00:00:00 on January 1, 1970.escapeDigits
- contains the digits that allow the user to interrupt
this command.Method Detail |
---|
public long getTime()
public void setTime(long time)
time
- the time to say in seconds since 00:00:00 on January 1, 1970.public java.lang.String getEscapeDigits()
public void setEscapeDigits(java.lang.String escapeDigits)
escapeDigits
- the time that allow the user to interrupt this
command or null
for none.public java.lang.String buildCommand()
AGICommand
buildCommand
in class AGICommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |