2014-01-08 14:16:39 +00:00
|
|
|
namespace AsterNET.Manager.Action
|
2013-01-18 15:55:50 +00:00
|
|
|
{
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The HangupAction causes the pbx to hang up a given channel.
|
|
|
|
/// </summary>
|
|
|
|
public class HangupAction : ManagerAction
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Creates a new empty HangupAction.
|
|
|
|
/// </summary>
|
|
|
|
public HangupAction()
|
|
|
|
{
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Creates a new HangupAction that hangs up the given channel.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="channel">the name of the channel to hangup.</param>
|
|
|
|
public HangupAction(string channel)
|
|
|
|
{
|
|
|
|
Channel = channel;
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Get the name of this action, i.e. "Hangup".
|
|
|
|
/// </summary>
|
|
|
|
public override string Action
|
|
|
|
{
|
|
|
|
get { return "Hangup"; }
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the name of the channel to hangup.
|
|
|
|
/// </summary>
|
|
|
|
public string Channel { get; set; }
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
}
|