namespace AsterNET.Manager.Action
{
///
/// The QueueRemoveAction removes a member from a queue.
/// It is implemented in apps/app_queue.c
///
public class QueueRemoveAction : ManagerAction
{
///
/// 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.Interface = iface;
}
///
/// Get the name of this action, i.e. "QueueRemove".
///
public override string Action
{
get { return "QueueRemove"; }
}
///
/// Get/Set the name of the queue the member will be removed from.
///
public string Queue { get; set; }
///
/// Get/Set the interface to remove.
/// This property is mandatory.
///
public string Interface { get; set; }
}
}