Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 640
8-31
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
 
Chapter 8      Session Object
Methods
IsAgent
The IsAgent method determines whether the current agent is 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
bIsAgent
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 Values
If the current agent is an agent and not a supervisor it returns true, otherwise it 
returns false.
IsSupervisor
The IsSupervisor method checks if the current agent is a supervisor. 
Syntax
C++:
bool IsSupervisor()
COM:
HRESULT IsSupervisor (VARIANT_BOOL * bIsSupervisor)
VB:
IsSupervisor () As Boolean
Java:
boolean IsSupervisorMode()
.NET:
bool IsSupervisorMode()