32 lines
769 B
C#
32 lines
769 B
C#
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)
|
|
{
|
|
}
|
|
}
|
|
} |