Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 668
 
9-47
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
 
Chapter 9      Agent Object
Methods
The following code snippet gets the unique object ID string for an agent, then uses 
uses the SetValue method to store the agent object id and string constant 
CTIOS_AGENTREFERENCE in an arguments array.
String StrUID = agent.GetValueString(CTIOS_UNIQUEOBJECTID Id);
arg.SetValue(CTIOS_AGENTREFERENCE, StrUID);
StartMonitoringAgentTeam
The StartMonitoringAgentTeam method allows the client, which must be a 
supervisor, to start monitoring the specified agent team. A client supervisor uses 
this method to receive all of the OnMonitorAgentStateChange events for every 
agent on the specified team.
Syntax
C++:
int StartMonitoringAgentTeam (Arguments& args)
COM:
HRESULT StartMonitoringAgentTeam (/*[in]*/ IArguments args, 
/*[out,retval]*/ int * errorcode)
VB:
StartMonitoringAgentTeam (args as CTIOSCLIENTLib.IArguments) As 
Long
Java:
int StartMonitoringAgentTeam (Arguments args)
.NET:
CilError StartMonitoringAgentTeam(Arguments args)
Parameters
args
Arguments array that contains the constant CTIOS_TEAMID set to the 
integer TeamID to be monitored.
errorcode
An output parameter (return parameter in VB) that contains an error code 
from 
 in 
Return Value
Default CTI OS return values. See