using System;
namespace Asterisk.NET.Manager.Action
{
///
/// The ZapDNDOnAction switches a zap channel "Do Not Disturb" status on.
///
public class ZapDNDOnAction : ManagerAction
{
private int zapChannel;
///
/// Get the name of this action, i.e. "ZapDNDOn".
///
override public string Action
{
get { return "ZapDNDOn"; }
}
///
/// Get/Set the number of the zap channel to switch to dnd on.
/// This property is mandatory.
///
public int ZapChannel
{
get { return this.zapChannel; }
set { this.zapChannel = value; }
}
///
/// Creates a new empty ZapDNDOnAction.
///
public ZapDNDOnAction()
{
}
///
/// Creates a new ZapDNDOnAction that enables "Do Not Disturb" status for the given zap channel.
///
public ZapDNDOnAction(int zapChannel)
{
this.zapChannel = zapChannel;
}
}
}