asternet/Asterisk.2013/Asterisk.NET/Manager/Event/QueueMemberPausedEvent.cs
2014-01-08 14:16:39 +00:00

45 lines
1.1 KiB
C#

namespace AsterNET.Manager.Event
{
/// <summary>
/// A QueueMemberPausedEvent is triggered when a queue member is paused or unpaused.<br/>
/// It is implemented in <code>apps/app_queue.c</code>.<br/>
/// Available since Asterisk 1.2
/// </summary>
public class QueueMemberPausedEvent : AbstractQueueMemberEvent
{
private string memberName;
private bool paused;
private string reason;
/// <summary>
/// Returns the name of the member's interface.<br/>
/// E.g. the channel name or agent group.
/// </summary>
public string MemberName
{
get { return this.memberName; }
set { this.memberName = value; }
}
/// <summary>
/// Get/Set if this queue member is paused (not accepting calls).<br/>
/// <code>true</code> if this member has been paused or
/// <code>false</code> if not.
/// </summary>
public bool Paused
{
get { return this.paused; }
set { this.paused = value; }
}
public string Reason
{
get { return this.reason; }
set { this.reason = value; }
}
public QueueMemberPausedEvent(ManagerConnection source)
: base(source)
{
}
}
}