asternet/Asterisk.2013/Asterisk.NET/Manager/Action/QueueRemoveAction.cs

46 lines
1.5 KiB
C#
Raw Normal View History

2014-01-08 14:16:39 +00:00
namespace AsterNET.Manager.Action
{
2015-01-03 15:37:29 +00:00
/// <summary>
/// The QueueRemoveAction removes a member from a queue.<br />
/// It is implemented in apps/app_queue.c
2015-01-03 15:37:29 +00:00
/// </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; }
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; }
}
}