asternet/Asterisk.2013/Asterisk.NET/Manager/Event/AgentsEvent.cs
2015-01-03 15:37:29 +00:00

56 lines
2 KiB
C#

namespace AsterNET.Manager.Event
{
/// <summary>
/// An AgentsEvent is triggered for each agent in response to an AgentsAction.<br />
/// Available since Asterisk 1.2
/// </summary>
/// <seealso cref="Manager.Action.AgentsAction" />
public class AgentsEvent : ResponseEvent
{
public AgentsEvent(ManagerConnection source)
: base(source)
{
}
/// <summary>
/// Get/Set the agentid.
/// </summary>
public string Agent { get; set; }
/// <summary>
/// Get/Set the name of this agent.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Get/Set the status of this agent.<br />
/// This is one of
/// <dl>
/// <dt>"AGENT_LOGGEDOFF"</dt>
/// <dd>Agent isn't logged in</dd>
/// <dt>"AGENT_IDLE"</dt>
/// <dd>Agent is logged in, and waiting for call</dd>
/// <dt>"AGENT_ONCALL"</dt>
/// <dd>Agent is logged in, and on a call</dd>
/// <dt>"AGENT_UNKNOWN"</dt>
/// <dd>Don't know anything about agent. Shouldn't ever get this.</dd>
/// </dl>
/// </summary>
public string Status { get; set; }
/// <summary>
/// Get/Set the name of channel this agent logged in from or "n/a" if the agent is not logged in.
/// </summary>
public string LoggedInChan { get; set; }
/// <summary>
/// Get/Set the time (in seconds since 01/01/1970) when the agent logged in or 0 if the user is not logged.
/// </summary>
public long LoggedInTime { get; set; }
/// <summary>
/// Get/Set the numerical Caller*ID of the channel this agent is talking toor "n/a" if this agent is talking to nobody.
/// </summary>
public string TalkingTo { get; set; }
}
}