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 QueueRemoveAction removes a member from a queue.<br />
|
|
|
|
/// It is implemented in <code>apps/app_queue.c</code>
|
|
|
|
/// </summary>
|
|
|
|
public class QueueRemoveAction : ManagerAction
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Creates a new empty QueueRemoveAction.
|
|
|
|
/// </summary>
|
|
|
|
public QueueRemoveAction()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Creates a new QueueRemoveAction that removes the member on the given interface from the given queue.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="queue">the name of the queue the member will be removed from</param>
|
|
|
|
/// <param name="iface">the interface of the member to remove</param>
|
|
|
|
public QueueRemoveAction(string queue, string iface)
|
|
|
|
{
|
|
|
|
this.Queue = queue;
|
|
|
|
this.Interface = iface;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get the name of this action, i.e. "QueueRemove".
|
|
|
|
/// </summary>
|
|
|
|
public override string Action
|
|
|
|
{
|
|
|
|
get { return "QueueRemove"; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the name of the queue the member will be removed from.
|
|
|
|
/// </summary>
|
|
|
|
public string Queue { get; set; }
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the interface to remove.<br />
|
|
|
|
/// This property is mandatory.
|
|
|
|
/// </summary>
|
|
|
|
public string Interface { get; set; }
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
}
|