2014-01-08 14:16:39 +00:00
|
|
|
namespace AsterNET.Manager.Event
|
2013-01-18 15:55:50 +00:00
|
|
|
{
|
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 />
|
2015-01-04 14:26:32 +00:00
|
|
|
/// It is implemented in channels/chan_agent.c
|
2015-01-03 15:37:29 +00:00
|
|
|
/// </summary>
|
2016-10-19 07:20:23 +00:00
|
|
|
/// <seealso cref="Manager.Event.AgentCallbackLoginEvent" />
|
2015-01-03 15:37:29 +00:00
|
|
|
public class AgentCallbackLogoffEvent : ManagerEvent
|
|
|
|
{
|
|
|
|
#region Agent
|
2013-01-18 15:55:50 +00:00
|
|
|
|
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; }
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
#endregion
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
#region LoginChan
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
public string LoginChan { get; set; }
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
#endregion
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
#region LoginTime
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
public string LoginTime { get; set; }
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
#endregion
|
2013-01-18 15:55:50 +00:00
|
|
|
|
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
|
2015-01-04 14:26:32 +00:00
|
|
|
/// 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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
}
|