add QueueMemberPauseEvent and mark QueueMemberPausedEvent as Obsolete

This commit is contained in:
Herman van den Berg 2016-09-30 11:46:09 +02:00
parent ac07b96105
commit 1c7eb58235
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,45 @@
using System;
namespace AsterNET.Manager.Event
{
/// <summary>
/// Raised when a member is paused/unpaused in the queue.<br/>
/// Available since Asterisk 12
/// </summary>
public class QueueMemberPauseEvent : AbstractQueueMemberEvent
{
/// <summary>
/// The name of the queue member.
/// </summary>
public string MemberName { get; set; }
/// <summary>
/// Get/Set if this queue member is paused (not accepting calls).<br/>
/// true if this member has been paused or
/// false if not.
/// </summary>
public bool Paused { get; set; }
/// <summary>
/// The reason a member was paused.
/// </summary>
public string Reason { get; set; }
/// <summary>
/// Set to 1 if member is in call. Set to 0 after LastCall time is updated.<br/>
/// Available since Asterisk 13
/// </summary>
public string InCall { get; set; }
/// <summary>
/// If set when paused, the reason the queue member was paused.<br/>
/// Available since Asterisk 13
/// </summary>
public string PausedReason { get; set; }
public QueueMemberPauseEvent(ManagerConnection source)
: base(source)
{
}
}
}

View file

@ -1,3 +1,5 @@
using System;
namespace AsterNET.Manager.Event
{
/// <summary>
@ -5,6 +7,7 @@ namespace AsterNET.Manager.Event
/// It is implemented in apps/app_queue.c.<br/>
/// Available since Asterisk 1.2
/// </summary>
[Obsolete("Removed since Asterisk 13", false)]
public class QueueMemberPausedEvent : AbstractQueueMemberEvent
{
private string memberName;