using System; namespace Asterisk.NET.Manager.Action { /// /// The QueueRemoveAction removes a member from a queue.
/// It is implemented in apps/app_queue.c ///
public class QueueRemoveAction : ManagerAction { /// The name of the queue the member will be removed from. private string queue; private string iface; /// /// Get the name of this action, i.e. "QueueRemove". /// override public string Action { get { return "QueueRemove"; } } /// /// Get/Set the name of the queue the member will be removed from. /// public string Queue { get { return this.queue; } set { this.queue = value; } } /// /// Get/Set the interface to remove.
/// This property is mandatory. ///
public string Interface { get { return this.iface; } set { this.iface = value; } } /// /// Creates a new empty QueueRemoveAction. /// public QueueRemoveAction() { } /// /// Creates a new QueueRemoveAction that removes the member on the given interface from the given queue. /// /// the name of the queue the member will be removed from /// the interface of the member to remove public QueueRemoveAction(string queue, string iface) { this.queue = queue; this.iface = iface; } } }