asternet/Asterisk.2013/Asterisk.NET/Manager/Action/ZapHangupAction.cs

37 lines
1 KiB
C#
Raw Normal View History

2014-01-08 14:16:39 +00:00
namespace AsterNET.Manager.Action
{
2015-01-03 15:37:29 +00:00
/// <summary>
/// The ZapHangupAction hangs up a zap channel.
/// </summary>
public class ZapHangupAction : ManagerAction
{
/// <summary>
/// Creates a new empty ZapHangupAction.
/// </summary>
public ZapHangupAction()
{
}
/// <summary>
/// Creates a new ZapHangupAction that hangs up the given zap channel (the number of the zap channel to hang up).
/// </summary>
public ZapHangupAction(int zapChannel)
{
this.ZapChannel = zapChannel;
}
/// <summary>
/// Get the name of this action, i.e. "ZapHangup".
/// </summary>
public override string Action
{
get { return "ZapHangup"; }
}
2015-01-03 15:37:29 +00:00
/// <summary>
/// Get/Set the number of the zap channel to hangup.<br />
/// This property is mandatory.
/// </summary>
public int ZapChannel { get; set; }
}
}