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

32 lines
769 B
C#
Raw Normal View History

namespace Asterisk.NET.Manager.Event
{
/// <summary>
/// An AgentLoginEvent is triggered when an agent is successfully logged in using AgentLogin.<br/>
/// It is implemented in <code>channels/chan_agent.c</code>
/// </summary>
/// <seealso cref="Manager.event.AgentLogoffEvent" />
public class AgentLoginEvent : ManagerEvent
{
private string agent;
private string loginChan;
/// <summary>
/// Get/Set the name of the agent that logged in.
/// </summary>
public string Agent
{
get { return agent; }
set { this.agent = value; }
}
public string LoginChan
{
get { return loginChan; }
set { this.loginChan = value; }
}
public AgentLoginEvent(ManagerConnection source)
: base(source)
{
}
}
}