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

48 lines
1.5 KiB
C#
Raw Normal View History

2014-01-08 14:16:39 +00:00
namespace AsterNET.Manager.Event
{
2015-01-03 15:37:29 +00:00
/// <summary>
/// An AgentCallbackLogoffEvent is triggered when an agent that previously logged in using
/// AgentCallbackLogin is logged of.<br />
/// It is implemented in channels/chan_agent.c
2015-01-03 15:37:29 +00:00
/// </summary>
/// <seealso cref="Manager.Event.AgentCallbackLoginEvent" />
2015-01-03 15:37:29 +00:00
public class AgentCallbackLogoffEvent : ManagerEvent
{
#region Agent
2015-01-03 15:37:29 +00:00
/// <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; }
2015-01-03 15:37:29 +00:00
#endregion
2015-01-03 15:37:29 +00:00
#region LoginChan
2015-01-03 15:37:29 +00:00
public string LoginChan { get; set; }
2015-01-03 15:37:29 +00:00
#endregion
2015-01-03 15:37:29 +00:00
#region LoginTime
2015-01-03 15:37:29 +00:00
public string LoginTime { get; set; }
2015-01-03 15:37:29 +00:00
#endregion
2015-01-03 15:37:29 +00:00
#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
/// autologoff to the appropriate number of seconds in agents.conf.
2015-01-03 15:37:29 +00:00
/// </summary>
/// <summary>Sets the reason for the logoff.</summary>
public string Reason { get; set; }
#endregion
public AgentCallbackLogoffEvent(ManagerConnection source)
: base(source)
{
}
}
}