2016-09-30 09:46:09 +00:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace AsterNET.Manager.Event
|
|
|
|
{
|
|
|
|
/// <summary>
|
2016-10-05 06:42:22 +00:00
|
|
|
/// Raised when a member is paused/unpaused in the queue.<br />
|
2016-09-30 09:46:09 +00:00
|
|
|
/// 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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|