45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
|
namespace Asterisk.NET.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)
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
}
|