|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.asteriskjava.manager.event.ManagerEvent
org.asteriskjava.manager.event.ResponseEvent
org.asteriskjava.manager.event.AgentsEvent
public class AgentsEvent
An AgentsEvent is triggered for each agent in response to an AgentsAction.
Available since Asterisk 1.2
AgentsAction
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
AGENT_STATUS_IDLE
Agent is logged in and waiting for call. |
static java.lang.String |
AGENT_STATUS_LOGGEDOFF
Agent isn't logged in. |
static java.lang.String |
AGENT_STATUS_ONCALL
Agent is logged in and on a call. |
static java.lang.String |
AGENT_STATUS_UNKNOWN
Don't know anything about agent. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
AgentsEvent(java.lang.Object source)
|
Method Summary | |
---|---|
java.lang.String |
getAgent()
Returns the agentid. |
java.lang.String |
getLoggedInChan()
Returns the name of channel this agent logged in from. |
java.lang.Long |
getLoggedInTime()
Returns the time (in seconds since 01/01/1970) when the agent logged in. |
java.lang.String |
getName()
Returns the name of this agent. |
java.lang.String |
getStatus()
Returns the status of this agent. |
java.lang.String |
getTalkingTo()
Returns the numerical Caller*ID of the channel this agent is talking to. |
java.lang.String |
getTalkingToChan()
Returns the name of the channel this agent is talking to. |
void |
setAgent(java.lang.String agent)
Sets the agentid. |
void |
setLoggedInChan(java.lang.String loggedInChan)
Sets the name of channel this agent logged in from. |
void |
setLoggedInTime(java.lang.Long loggedInTime)
Sets the time when the agent logged in. |
void |
setName(java.lang.String name)
Sets the name of this agent. |
void |
setStatus(java.lang.String status)
Sets the status of this agent. |
void |
setTalkingTo(java.lang.String talkingTo)
Sets the numerical Caller*ID of the channel this agent is talking to. |
void |
setTalkingToChan(java.lang.String talkingToChan)
|
Methods inherited from class org.asteriskjava.manager.event.ResponseEvent |
---|
getActionId, getInternalActionId, setActionId, setInternalActionId |
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent |
---|
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, setServer, setTimestamp, 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 |
Field Detail |
---|
public static final java.lang.String AGENT_STATUS_LOGGEDOFF
public static final java.lang.String AGENT_STATUS_IDLE
public static final java.lang.String AGENT_STATUS_ONCALL
public static final java.lang.String AGENT_STATUS_UNKNOWN
Constructor Detail |
---|
public AgentsEvent(java.lang.Object source)
source
- Method Detail |
---|
public java.lang.String getAgent()
public void setAgent(java.lang.String agent)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of this agentpublic java.lang.String getStatus()
This is one of
AGENT_STATUS_LOGGEDOFF
,
AGENT_STATUS_IDLE
,
AGENT_STATUS_ONCALL
,
AGENT_STATUS_UNKNOWN
public void setStatus(java.lang.String status)
status
- the status of this agentpublic java.lang.String getLoggedInChan()
public void setLoggedInChan(java.lang.String loggedInChan)
loggedInChan
- the name of channel this agent logged in frompublic java.lang.Long getLoggedInTime()
public void setLoggedInTime(java.lang.Long loggedInTime)
loggedInTime
- the time when the agent logged inpublic java.lang.String getTalkingTo()
public void setTalkingTo(java.lang.String talkingTo)
talkingTo
- the numerical Caller*ID of the channel this agent is
talking topublic java.lang.String getTalkingToChan()
Available since Asterisk 1.6.
public void setTalkingToChan(java.lang.String talkingToChan)
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |