|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.asteriskjava.manager.action.AbstractManagerAction
org.asteriskjava.manager.action.SendTextAction
public class SendTextAction
Sends a text message to a given channel while in a call. An active channel and a text message are required in order to success.
It is defined in main/manager.c
.
Available since Asterisk 1.6.0
Constructor Summary | |
---|---|
SendTextAction()
Creates a new empty SendTextAction. |
|
SendTextAction(java.lang.String channel,
java.lang.String message)
Creates a new SendTextAction that sends the given message to the given channel. |
Method Summary | |
---|---|
java.lang.String |
getAction()
Returns the name of this action, i.e. |
java.lang.String |
getChannel()
Returns the name of the channel to send the message to. |
java.lang.String |
getMessage()
Returns the message to send. |
void |
setChannel(java.lang.String channel)
Sets the name of the channel to send the message to. |
void |
setMessage(java.lang.String message)
Sets the message to send. |
Methods inherited from class org.asteriskjava.manager.action.AbstractManagerAction |
---|
getActionId, setActionId, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SendTextAction()
public SendTextAction(java.lang.String channel, java.lang.String message)
channel
- the name of the channel to send the message to.message
- the message to send.Method Detail |
---|
public java.lang.String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public java.lang.String getChannel()
public void setChannel(java.lang.String channel)
channel
- the name of the channel to send the message to.public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the message to send.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |