Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 506
   
9-19
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(1)
Chapter 9      Agent Object
Methods
IsAgent
The IsAgent method determines whether the AgentMode connection is for an agent rather than a 
supervisor.
Syntax
C++:
bool IsAgent()
COM:
HRESULT IsAgent (VARIANT_BOOL *bIsAgent)
VB:
IsAgent () As Boolean
Java:
boolean IsAgent()
.NET:
bool IsAgent()
Parameters
IsAgent
Output parameter (return parameter in VB) that returns true if the current AgentMode connection is 
for an agent and false if it is for a supervisor.
Return Value
Returns true if the current AgentMode connection is for an agent and false if the connection is for a 
supervisor.
IsSupervisor
The IsSupervisor method determines whether the AgentMode connection is for a supervisor.
Syntax
C++:
bool IsSupervisor()
COM:
HRESULT IsSupervisor (VARIANT_BOOL * bIsSupervisor)
VB:
IsSupervisor () As Boolean
Java:
boolean IsSupervisorMode()
.NET:
bool IsSupervisor()
Parameters
bIsSupervisor
Output parameter (return parameter in VB) that returns true if the current AgentMode connection is 
for a supervisor and false if it is for an agent.
Return Values
If the current session is for a supervisor, this method returns true. Otherwise the method returns false.