using System; namespace Asterisk.NET.Manager.Action { /// /// The HangupAction causes the pbx to hang up a given channel. /// public class HangupAction : ManagerAction { private string channel; /// /// Creates a new empty HangupAction. /// public HangupAction() { } /// /// Creates a new HangupAction that hangs up the given channel. /// /// the name of the channel to hangup. public HangupAction(string channel) { this.channel = channel; } /// /// Get the name of this action, i.e. "Hangup". /// override public string Action { get { return "Hangup"; } } /// /// Get/Set the name of the channel to hangup. /// public string Channel { get { return this.channel; } set { this.channel = value; } } } }