Avaya Client Services API Reference (Windows)
Avaya Client Services API Reference (Windows)
Avaya.ClientServices
AgentService Class
AgentService Methods
AddSkill Method
CallSupervisor Method
ConsultSupervisor Method
ExitViewStatistics Method
GetCallSupervisorCapability Method
GetConsultSupervisorCapability Method
IsAgentFeatureAvailable Method
IsAgentWorkModeAllowed Method
Login Method
Logout Method
QueueStatisticsMonitoringCapability Method
RefreshAllViewStatistics Method
RemoveSkill Method
SendCallWorkCode Method
SetAgentWorkMode Method
SetLabelForAgentFeature Method
SetOverrideForcedLogout Method
SetQueueStatisticsRefreshInterval Method
SetViewStatisticsRefreshInterval Method
StartQueueStatisticsMonitoring Method
StopQueueStatisticsMonitoring Method
ViewStatistics Method

AgentService SetAgentWorkMode Method

Sets agent work mode. The updated work mode is notified via AgentWorkModeChanged event.

Namespace: Avaya.ClientServices
Assembly: AvayaClientServices (in AvayaClientServices.dll) Version: 592.1.30.0
Syntax
C#
Copy

    public void SetAgentWorkMode(
    	AgentWorkMode newAgentWorkMode,
    	int reasonCode,
    	AgentServiceAgentServiceCompletionHandler completionHandler
    )

#### Parameters

newAgentWorkMode
  Type: Avaya.ClientServices
  AgentWorkMode
  New work mode for the agent.
reasonCode
  Type: System
  Int32
  The reason code is required in case of changing to auxiliary work mode, for other modes use '0' as default code. Minimum reason code value - '0', Maximum reason code value - '99'.
completionHandler
  Type: Avaya.ClientServices
  AgentService
  AgentServiceCompletionHandler
  Completion handler instance that receives the result of the operation. If not provided, failure feedback cannot be provided.

Remarks
For auxiliary work mode use AvailableAgentFeatures reason codes.
See Also

#### Reference

AgentService Class
Avaya.ClientServices Namespace

© 2017 Avaya LLC. All Rights Reserved.