2013-01-18 15:55:50 +00:00
|
|
|
using System;
|
2015-01-03 15:37:29 +00:00
|
|
|
using AsterNET.Manager.Event;
|
|
|
|
|
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 QueueStatusAction requests the state of all defined queues their members (agents) and entries (callers).<br />
|
|
|
|
/// For each queue a QueueParamsEvent is generated, followed by a
|
|
|
|
/// QueueMemberEvent for each member of that queue and a QueueEntryEvent for each
|
|
|
|
/// entry in the queue.<br />
|
|
|
|
/// Since Asterisk 1.2 a QueueStatusCompleteEvent is sent to denote the end of the generated dump.<br />
|
2015-01-04 14:26:32 +00:00
|
|
|
/// This action is implemented in apps/app_queue.c
|
2015-01-03 15:37:29 +00:00
|
|
|
/// </summary>
|
2016-10-19 07:20:23 +00:00
|
|
|
/// <seealso cref="Manager.Event.QueueParamsEvent" />
|
|
|
|
/// <seealso cref="Manager.Event.QueueMemberEvent" />
|
|
|
|
/// <seealso cref="Manager.Event.QueueEntryEvent" />
|
|
|
|
/// <seealso cref="Manager.Event.QueueStatusCompleteEvent" />
|
2015-01-03 15:37:29 +00:00
|
|
|
public class QueueStatusAction : ManagerActionEvent
|
|
|
|
{
|
|
|
|
#region Action
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get the name of this action, i.e. "QueueStatus".
|
|
|
|
/// </summary>
|
|
|
|
public override string Action
|
|
|
|
{
|
|
|
|
get { return "QueueStatus"; }
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region Queue
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the queue filter.
|
|
|
|
/// </summary>
|
|
|
|
public string Queue { get; set; }
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region Member
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the member filter.
|
|
|
|
/// </summary>
|
|
|
|
public string Member { get; set; }
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ActionCompleteEventClass
|
|
|
|
|
|
|
|
public override Type ActionCompleteEventClass()
|
|
|
|
{
|
|
|
|
return typeof (QueueStatusCompleteEvent);
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
#endregion
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
#region QueueStatusAction()
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
#endregion
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
}
|