Click or drag to resize

AgentServiceSetAgentWorkMode Method

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

Namespace:  Avaya.ClientServices
Assembly:  AvayaClientServices (in AvayaClientServices.dll) Version: 550.0.60.0
Syntax
C#
public void SetAgentWorkMode(
	AgentWorkMode newAgentWorkMode,
	int reasonCode,
	AgentServiceAgentServiceCompletionHandler completionHandler
)

Parameters

newAgentWorkMode
Type: Avaya.ClientServicesAgentWorkMode
New work mode for the agent.
reasonCode
Type: SystemInt32
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.ClientServicesAgentServiceAgentServiceCompletionHandler
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