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

48 lines
1.5 KiB
C#

namespace AsterNET.Manager.Event
{
/// <summary>
/// An AgentCallbackLogoffEvent is triggered when an agent that previously logged in using
/// AgentCallbackLogin is logged of.<br />
/// It is implemented in <code>channels/chan_agent.c</code>
/// </summary>
/// <seealso cref="Manager.event.AgentCallbackLoginEvent" />
public class AgentCallbackLogoffEvent : ManagerEvent
{
#region Agent
/// <summary> Returns the name of the agent that logged off.</summary>
/// <summary> Sets the name of the agent that logged off.</summary>
public string Agent { get; set; }
#endregion
#region LoginChan
public string LoginChan { get; set; }
#endregion
#region LoginTime
public string LoginTime { get; set; }
#endregion
#region Reason
/// <summary>
/// Returns the reason for the logoff. The reason is set to Autologoff if the agent has been
/// logged off due to not answering the phone in time. Autologoff is configured by setting
/// <code>autologoff</code> to the appropriate number of seconds in <code>agents.conf</code>.
/// </summary>
/// <summary>Sets the reason for the logoff.</summary>
public string Reason { get; set; }
#endregion
public AgentCallbackLogoffEvent(ManagerConnection source)
: base(source)
{
}
}
}