public class SayTimeCommand extends AbstractAgiCommand
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 and Description |
|---|
SayTimeCommand(long time)
Creates a new SayTimeCommand.
|
SayTimeCommand(long time,
String escapeDigits)
Creates a new SayTimeCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
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(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.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic SayTimeCommand(long time)
time - the time to say in seconds since 00:00:00 on January 1, 1970.public SayTimeCommand(long time,
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.public long getTime()
public void setTime(long time)
time - the time to say in seconds since 00:00:00 on January 1, 1970.public String getEscapeDigits()
public void setEscapeDigits(String escapeDigits)
escapeDigits - the time that allow the user to interrupt this
command or null for none.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2022. All rights reserved.