asternet/Asterisk.2013/Asterisk.NET/Manager/Event/QueueEvent.cs

33 lines
746 B
C#
Raw Normal View History

namespace Asterisk.NET.Manager.Event
{
/// <summary>
/// Abstract base class providing common properties for JoinEvent and LeaveEvent.
/// </summary>
public abstract class QueueEvent : ManagerEvent
{
private string queue;
private int count;
/// <summary>
/// Get/Set the number of elements in the queue, i.e. the number of calls waiting to be answered by an agent.
/// </summary>
public int Count
{
get { return count; }
set { this.count = value; }
}
/// <summary>
/// Get/Set the name of the queue.
/// </summary>
public string Queue
{
get { return queue; }
set { this.queue = value; }
}
public QueueEvent(ManagerConnection source)
: base(source)
{
}
}
}