net.sf.asterisk.manager.event
Class AgentCallbackLogoffEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.asterisk.manager.event.ManagerEvent
          extended by net.sf.asterisk.manager.event.AgentCallbackLogoffEvent
All Implemented Interfaces:
java.io.Serializable

public class AgentCallbackLogoffEvent
extends ManagerEvent

An AgentCallbackLogoffEvent is triggered when an agent that previously logged in using AgentCallbackLogin is logged of.
It is implemented in channels/chan_agent.c

Version:
$Id: AgentCallbackLogoffEvent.java,v 1.2 2005/02/23 22:50:58 srt Exp $
Author:
srt
See Also:
AgentCallbackLoginEvent, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AgentCallbackLogoffEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getAgent()
          Returns the name of the agent that logged off.
 java.lang.String getLoginChan()
           
 java.lang.String getLoginTime()
           
 java.lang.String getReason()
          Returns the reason for the logoff.
 java.lang.String getUniqueId()
           
 void setAgent(java.lang.String agent)
          Sets the name of the agent that logged off.
 void setLoginChan(java.lang.String loginChan)
           
 void setLoginTime(java.lang.String loginTime)
           
 void setReason(java.lang.String reason)
          Sets the reason for the logoff.
 void setUniqueId(java.lang.String uniqueId)
           
 
Methods inherited from class net.sf.asterisk.manager.event.ManagerEvent
getDateReceived, getPrivilege, setDateReceived, setPrivilege, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentCallbackLogoffEvent

public AgentCallbackLogoffEvent(java.lang.Object source)
Parameters:
source -
Method Detail

getAgent

public java.lang.String getAgent()
Returns the name of the agent that logged off.


setAgent

public void setAgent(java.lang.String agent)
Sets the name of the agent that logged off.


getLoginChan

public java.lang.String getLoginChan()

setLoginChan

public void setLoginChan(java.lang.String loginChan)

getLoginTime

public java.lang.String getLoginTime()

setLoginTime

public void setLoginTime(java.lang.String loginTime)

getReason

public java.lang.String getReason()
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.


setReason

public void setReason(java.lang.String reason)
Sets the reason for the logoff.


getUniqueId

public java.lang.String getUniqueId()

setUniqueId

public void setUniqueId(java.lang.String uniqueId)


Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.