namespace Asterisk.NET.Manager.Event { /// /// An AgentCallbackLogoffEvent is triggered when an agent that previously logged in using /// AgentCallbackLogin is logged of.
/// It is implemented in channels/chan_agent.c ///
/// public class AgentCallbackLogoffEvent : ManagerEvent { private string agent; private string loginChan; private string loginTime; private string reason; #region Agent /// Returns the name of the agent that logged off. /// Sets the name of the agent that logged off. public string Agent { get { return agent; } set { this.agent = value; } } #endregion #region LoginChan public string LoginChan { get { return loginChan; } set { this.loginChan = value; } } #endregion #region LoginTime public string LoginTime { get { return loginTime; } set { this.loginTime = value; } } #endregion #region Reason /// /// 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. /// /// Sets the reason for the logoff. public string Reason { get { return reason; } set { this.reason = value; } } #endregion public AgentCallbackLogoffEvent(ManagerConnection source) : base(source) { } } }