net.sf.asterisk.manager.action
Class ZapDNDOnAction

java.lang.Object
  extended by net.sf.asterisk.manager.action.AbstractManagerAction
      extended by net.sf.asterisk.manager.action.ZapDNDOnAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class ZapDNDOnAction
extends AbstractManagerAction

The ZapDNDOnAction switches a zap channel "Do Not Disturb" status on.

Version:
$Id: ZapDNDOnAction.java,v 1.4 2005/08/07 17:10:29 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
ZapDNDOnAction()
          Creates a new empty ZapDNDOnAction.
ZapDNDOnAction(java.lang.Integer zapChannel)
          Creates a new ZapDNDOnAction that enables "Do Not Disturb" status for the given zap channel.
 
Method Summary
 java.lang.String getAction()
          Returns the name of this action, i.e.
 java.lang.Integer getZapChannel()
          Returns the number of the zap channel to switch to dnd on.
 void setZapChannel(java.lang.Integer channel)
          Sets the number of the zap channel to switch to dnd on.
This property is mandatory.
 
Methods inherited from class net.sf.asterisk.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

ZapDNDOnAction

public ZapDNDOnAction()
Creates a new empty ZapDNDOnAction.


ZapDNDOnAction

public ZapDNDOnAction(java.lang.Integer zapChannel)
Creates a new ZapDNDOnAction that enables "Do Not Disturb" status for the given zap channel.

Parameters:
zapChannel - the number of the zap channel
Since:
0.2
Method Detail

getAction

public java.lang.String getAction()
Returns the name of this action, i.e. "ZapDNDOn".

Specified by:
getAction in interface ManagerAction
Specified by:
getAction in class AbstractManagerAction

getZapChannel

public java.lang.Integer getZapChannel()
Returns the number of the zap channel to switch to dnd on.


setZapChannel

public void setZapChannel(java.lang.Integer channel)
Sets the number of the zap channel to switch to dnd on.
This property is mandatory.



Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.