[Asterisk-java-cvs] CVS: asterisk-java/src/java/net/sf/asterisk/fastagi/command SayNumberCommand.jav
Brought to you by:
srt
From: Stefan R. <sr...@us...> - 2005-03-11 19:01:14
|
Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13889/src/java/net/sf/asterisk/fastagi/command Modified Files: SayNumberCommand.java Log Message: Renamed interruptDigits to escapeDigits Index: SayNumberCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/SayNumberCommand.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -p -r1.2 -r1.3 --- SayNumberCommand.java 8 Mar 2005 16:48:34 -0000 1.2 +++ SayNumberCommand.java 11 Mar 2005 19:01:02 -0000 1.3 @@ -40,7 +40,7 @@ public class SayNumberCommand extends AG /** * When one of these number is pressed while streaming the command returns. */ - private String interruptDigits; + private String escapeDigits; /** * Creates a new SayNumberCommand. @@ -50,20 +50,20 @@ public class SayNumberCommand extends AG public SayNumberCommand(String number) { this.number = number; - this.interruptDigits = null; + this.escapeDigits = null; } /** * Creates a new SayNumberCommand. * * @param number the number to say. - * @param interruptDigits contains the number that allow the user to + * @param escapeDigits contains the number that allow the user to * interrupt this command. */ - public SayNumberCommand(String number, String interruptDigits) + public SayNumberCommand(String number, String escapeDigits) { this.number = number; - this.interruptDigits = interruptDigits; + this.escapeDigits = escapeDigits; } /** @@ -91,25 +91,25 @@ public class SayNumberCommand extends AG * * @return the number that allow the user to interrupt this command. */ - public String getInterruptDigits() + public String getEscapeDigits() { - return interruptDigits; + return escapeDigits; } /** * Sets the number that allow the user to interrupt this command. * - * @param interruptDigits the number that allow the user to interrupt this + * @param escapeDigits the number that allow the user to interrupt this * command or <code>null</code> for none. */ - public void setInterruptDigits(String interruptDigits) + public void setEscapeDigits(String escapeDigits) { - this.interruptDigits = interruptDigits; + this.escapeDigits = escapeDigits; } public String buildCommand() { return "SAY NUMBER " + escapeAndQuote(number) + " " - + escapeAndQuote(interruptDigits); + + escapeAndQuote(escapeDigits); } } |