public void setAgentReady ( KeyValueCollection reasons , KeyValueCollection extensions ) throws WorkspaceApiException { try { VoicereadyData readyData = new VoicereadyData ( ) ; readyData . setReasons ( Util . toKVList ( reasons ) ) ; readyData . setExtensions ( Util . toKVList ( extensions ) ) ; ReadyData data = new ReadyData ( ) ; data . data ( readyData ) ; ApiSuccessResponse response = this . voiceApi . setAgentStateReady ( data ) ; throwIfNotOk ( "setAgentReady" , response ) ; } catch ( ApiException e ) { throw new WorkspaceApiException ( "setAgentReady failed." , e ) ; } }
Set the current agent s state to Ready on the voice channel .