ChatAddress Class Methods
The ChatAddress class inherits the following methods from the _UQAddress class:
acceptTask
dequeueTask
See _UQAddress Methods.
The following are ChatAddress class methods.
Syntax
chat(agentId,buddyId,reason)
Description
Sends a request to initiate a new chat.
Parameters
Field or Control |
Definition |
---|---|
agentId |
The source agent ID. |
buddyId |
The Id of the buddy. |
reason |
The reason code for chat request. |
Returns
Request number.
Syntax
getChatconnectionByConnectionId(connectionId)
Description
Get the chatconnection object with the chatconnection Id.
Parameters
Field or Control |
Definition |
---|---|
connectionId |
The connection id associated with a chat. |
Returns
Line object, null if there is no connection with that chatconnection id.
Syntax
getChatconnectionindexByConnectionId
(connectionId)
Description
Get the chatconnection index with the chatconnection Id.
Parameters
Field or Control |
Definition |
---|---|
connectionId |
The connection id associated with a chat. |
Returns
index, −1 if there is no connection with that chatconnection id.
Syntax
getFreeChatconnection()
Description
Get the free chatconnection object. A connection is free if there is no activity on this line.
Returns
Returns chatconnection object, null if there is no free line.
Syntax
getFreeChatconnectionIndex()
Description
Get the free chatconnection index. A connection is free if there is no activity on this line.
Returns
Returns chatconnection index, null if there is no free line.