From 06f22eb990644ebab227865d0dd6b69d0dabad21 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Thu, 8 May 2025 20:28:48 -0700 Subject: [PATCH 01/31] ga5 changes --- .../CallAutomationAsyncClient.java | 92 +- .../callautomation/CallAutomationClient.java | 8 - .../CallAutomationClientBuilder.java | 13 +- .../CallAutomationEventParser.java | 48 - .../CallAutomationEventProcessor.java | 298 ---- .../CallAutomationServiceVersion.java | 29 +- .../callautomation/CallConnection.java | 37 - .../callautomation/CallConnectionAsync.java | 90 +- .../callautomation/CallDialog.java | 85 - .../callautomation/CallDialogAsync.java | 125 -- .../callautomation/CallMedia.java | 23 - .../callautomation/CallMediaAsync.java | 57 +- .../callautomation/CallRecordingAsync.java | 3 - ...ommunicationCallAutomationServiceImpl.java | 15 - ...ationCallAutomationServiceImplBuilder.java | 2 +- .../implementation/CallConnectionsImpl.java | 136 +- .../implementation/CallMediasImpl.java | 360 ++-- .../implementation/CallRecordingsImpl.java | 101 -- .../DialogStateResponseConstructorProxy.java | 61 - ...eParticipantsResponseConstructorProxy.java | 60 - .../models/AnswerCallRequestInternal.java | 30 - .../models/AudioFormatInternal.java | 10 +- .../CallConnectionPropertiesInternal.java | 56 - .../CallIntelligenceOptionsInternal.java | 30 - .../models/ChannelAffinityInternal.java | 2 +- .../models/ChoiceResultInternal.java | 28 + .../models/CreateCallRequestInternal.java | 57 - ...ediaStreamingAudioChannelTypeInternal.java | 2 +- .../MediaStreamingContentTypeInternal.java | 2 +- .../models/MediaStreamingOptionsInternal.java | 214 +-- .../models/PlayOptionsInternal.java | 61 - .../implementation/models/PlayRequest.java | 30 + .../models/RedirectCallRequestInternal.java | 29 - .../models/SpeechResultInternal.java | 28 + .../StartCallRecordingRequestInternal.java | 37 +- .../StartTranscriptionRequestInternal.java | 35 +- .../models/StreamingTransportType.java | 47 + .../models/TranscriptionOptionsInternal.java | 179 +- .../TranscriptionSubscriptionInternal.java | 28 + .../implementation/models/UnholdRequest.java | 33 + .../UpdateTranscriptionRequestInternal.java | 37 +- .../WebSocketMediaStreamingOptions.java | 269 +++ ...ebSocketMediaStreamingOptionsInternal.java | 270 +++ .../models/WebSocketTranscriptionOptions.java | 208 +++ ...WebSocketTranscriptionOptionsInternal.java | 208 +++ .../models/AddParticipantEventResult.java | 72 - .../models/AddParticipantResult.java | 44 +- .../models/AnswerCallEventResult.java | 57 - .../models/AnswerCallOptions.java | 15 - .../models/AnswerCallResult.java | 79 - .../models/CallIntelligenceOptions.java | 27 - .../callautomation/models/CallInvite.java | 10 - .../callautomation/models/CallResult.java | 28 - .../CancelAddParticipantEventResult.java | 72 - .../CancelAddParticipantOperationResult.java | 44 +- .../callautomation/models/ChoiceResult.java | 24 - .../models/ConnectCallEventResult.java | 56 - .../models/ConnectCallResult.java | 80 - .../models/CreateCallEventResult.java | 57 - .../models/CreateCallOptions.java | 29 - .../models/CreateCallResult.java | 78 - .../models/CreateGroupCallOptions.java | 43 - .../models/DialogInputType.java | 46 - .../models/DialogStateResult.java | 123 -- .../InterruptAudioAndAnnounceOptions.java | 89 - .../callautomation/models/PlayOptions.java | 25 - .../models/RemoveParticipantResult.java | 45 +- .../models/ResultWithEventHandling.java | 94 -- .../callautomation/models/SpeechResult.java | 1 - .../models/StartDialogOptions.java | 126 -- .../models/StartHoldMusicOptions.java | 71 - .../models/StartRecordingOptions.java | 22 - .../models/TransferCallResult.java | 41 +- .../TransferCallToParticipantEventResult.java | 60 - .../TransferCallToParticipantOptions.java | 10 - .../models/UnmuteParticipantOptions.java | 62 - .../models/UnmuteParticipantResult.java | 52 - .../callautomation/models/UserConsent.java | 76 - .../models/events/DialogCompleted.java | 106 -- .../models/events/DialogConsent.java | 124 -- .../models/events/DialogFailed.java | 103 -- .../models/events/DialogHangup.java | 122 -- .../models/events/DialogLanguageChange.java | 140 -- .../events/DialogSensitivityUpdate.java | 122 -- .../models/events/DialogStarted.java | 106 -- .../models/events/DialogTransfer.java | 156 -- .../models/events/HoldAudioCompleted.java | 51 - .../models/events/HoldAudioPaused.java | 51 - .../models/events/HoldAudioResumed.java | 51 - .../models/events/HoldAudioStarted.java | 51 - .../models/events/IncomingCall.java | 147 -- .../models/events/PlayPaused.java | 51 - .../models/events/PlayResumed.java | 51 - .../models/events/StartRecordingFailed.java | 53 - .../src/main/java/module-info.java | 1 - ...tomationAsyncClientAutomatedLiveTests.java | 115 -- .../CallAutomationAsyncClientUnitTests.java | 19 - ...ationEventParserAndProcessorUnitTests.java | 1442 ----------------- .../CallAutomationUnitTestBase.java | 2 - .../CallDialogAsyncAutomatedLiveTests.java | 142 -- .../CallDialogAsyncUnitTests.java | 52 - .../callautomation/CallDialogUnitTests.java | 70 - .../CallMediaAsyncAutomatedLiveTests.java | 248 --- .../CallMediaAsyncUnitTests.java | 12 - .../callautomation/CallMediaUnitTests.java | 9 - .../CallRecordingAsyncUnitTests.java | 19 - .../CallRecordingAutomatedLiveTests.java | 88 - .../swagger/README.md | 10 +- 108 files changed, 1452 insertions(+), 7593 deletions(-) delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationEventProcessor.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallDialog.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallDialogAsync.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DialogStateResponseConstructorProxy.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/UnmuteParticipantsResponseConstructorProxy.java create mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportType.java create mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptions.java create mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptionsInternal.java create mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptions.java create mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptionsInternal.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AddParticipantEventResult.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallEventResult.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CancelAddParticipantEventResult.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ConnectCallEventResult.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallEventResult.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DialogInputType.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DialogStateResult.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/InterruptAudioAndAnnounceOptions.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ResultWithEventHandling.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartDialogOptions.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartHoldMusicOptions.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallToParticipantEventResult.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnmuteParticipantOptions.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnmuteParticipantResult.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UserConsent.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogCompleted.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogConsent.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogFailed.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogHangup.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogLanguageChange.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogSensitivityUpdate.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogStarted.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogTransfer.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioCompleted.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioPaused.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioResumed.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioStarted.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/IncomingCall.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/PlayPaused.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/PlayResumed.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/StartRecordingFailed.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationEventParserAndProcessorUnitTests.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallDialogAsyncAutomatedLiveTests.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallDialogAsyncUnitTests.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallDialogUnitTests.java diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java index 2cf26d6aaae6..6725e3f3e487 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java @@ -32,6 +32,8 @@ import com.azure.communication.callautomation.implementation.models.RejectCallRequestInternal; import com.azure.communication.callautomation.implementation.models.TranscriptionOptionsInternal; import com.azure.communication.callautomation.implementation.models.TranscriptionTransportTypeInternal; +import com.azure.communication.callautomation.implementation.models.WebSocketMediaStreamingOptionsInternal; +import com.azure.communication.callautomation.implementation.models.WebSocketTranscriptionOptionsInternal; import com.azure.communication.callautomation.models.AnswerCallOptions; import com.azure.communication.callautomation.models.AnswerCallResult; import com.azure.communication.callautomation.models.CallInvite; @@ -87,22 +89,18 @@ public final class CallAutomationAsyncClient { private final AzureCommunicationCallAutomationServiceImpl azureCommunicationCallAutomationServiceInternal; private final CallRecordingsImpl callRecordingsInternal; private final CallMediasImpl callMediasInternal; - private final CallDialogsImpl callDialogsInternal; private final ClientLogger logger; private final ContentDownloader contentDownloader; private final HttpPipeline httpPipelineInternal; private final String resourceUrl; private final CommunicationUserIdentifierModel sourceIdentity; - private final CallAutomationEventProcessor eventProcessor; CallAutomationAsyncClient(AzureCommunicationCallAutomationServiceImpl callServiceClient, - CommunicationUserIdentifier sourceIdentity, CallAutomationEventProcessor eventProcessor) { + CommunicationUserIdentifier sourceIdentity) { this.callConnectionsInternal = callServiceClient.getCallConnections(); this.azureCommunicationCallAutomationServiceInternal = callServiceClient; this.callRecordingsInternal = callServiceClient.getCallRecordings(); this.callMediasInternal = callServiceClient.getCallMedias(); - this.callDialogsInternal = callServiceClient.getCallDialogs(); - this.eventProcessor = eventProcessor; this.logger = new ClientLogger(CallAutomationAsyncClient.class); this.contentDownloader = new ContentDownloader(callServiceClient.getEndpoint(), callServiceClient.getHttpPipeline()); @@ -112,14 +110,6 @@ public final class CallAutomationAsyncClient { = sourceIdentity == null ? null : CommunicationUserIdentifierConverter.convert(sourceIdentity); } - /** - * Get the event processor for handling events. - * @return {@link CallAutomationEventProcessor} as event processor - */ - public CallAutomationEventProcessor getEventProcessor() { - return eventProcessor; - } - /** * Get Source Identity that is used for create and answer call * @return {@link CommunicationUserIdentifier} represent source @@ -230,11 +220,6 @@ private CreateCallRequestInternal getCreateCallRequestInternal(CreateCallOptions callIntelligenceOptionsInternal = new CallIntelligenceOptionsInternal(); callIntelligenceOptionsInternal.setCognitiveServicesEndpoint( createCallOptions.getCallIntelligenceOptions().getCognitiveServicesEndpoint()); - - if (createCallOptions.getCallIntelligenceOptions().getBackupCognitiveServicesEndpoint() != null) { - callIntelligenceOptionsInternal.setBackupCognitiveServicesEndpoint( - createCallOptions.getCallIntelligenceOptions().getBackupCognitiveServicesEndpoint()); - } } CreateCallRequestInternal request = new CreateCallRequestInternal() @@ -242,20 +227,11 @@ private CreateCallRequestInternal getCreateCallRequestInternal(CreateCallOptions PhoneNumberIdentifierConverter.convert(createCallOptions.getCallInvite().getSourceCallerIdNumber())) .setSourceDisplayName(createCallOptions.getCallInvite().getSourceDisplayName()) .setSource(sourceIdentity) - .setTeamsAppSource(MicrosoftTeamsAppIdentifierConverter.convert(createCallOptions.getTeamsAppSource())) .setTargets(targetsModel) .setCallbackUri(createCallOptions.getCallbackUrl()) .setCallIntelligenceOptions(callIntelligenceOptionsInternal) .setOperationContext(createCallOptions.getOperationContext()); - // Need to do a null check since SipHeaders and VoipHeaders are optional; If they both are null then we do not need to set custom context - if (createCallOptions.getCallInvite().getCustomCallingContext().getSipHeaders() != null - || createCallOptions.getCallInvite().getCustomCallingContext().getVoipHeaders() != null) { - CustomCallingContext customContext = new CustomCallingContext(); - customContext.setSipHeaders(createCallOptions.getCallInvite().getCustomCallingContext().getSipHeaders()); - customContext.setVoipHeaders(createCallOptions.getCallInvite().getCustomCallingContext().getVoipHeaders()); - request.setCustomCallingContext(customContext); - } if (createCallOptions.getMediaStreamingOptions() != null) { MediaStreamingOptionsInternal streamingOptionsInternal = getMediaStreamingOptionsInternal(createCallOptions.getMediaStreamingOptions()); @@ -283,11 +259,6 @@ private CreateCallRequestInternal getCreateCallRequestInternal(CreateGroupCallOp callIntelligenceOptionsInternal = new CallIntelligenceOptionsInternal(); callIntelligenceOptionsInternal.setCognitiveServicesEndpoint( createCallGroupOptions.getCallIntelligenceOptions().getCognitiveServicesEndpoint()); - - if (createCallGroupOptions.getCallIntelligenceOptions().getBackupCognitiveServicesEndpoint() != null) { - callIntelligenceOptionsInternal.setBackupCognitiveServicesEndpoint( - createCallGroupOptions.getCallIntelligenceOptions().getBackupCognitiveServicesEndpoint()); - } } CreateCallRequestInternal request = new CreateCallRequestInternal() @@ -295,19 +266,11 @@ private CreateCallRequestInternal getCreateCallRequestInternal(CreateGroupCallOp PhoneNumberIdentifierConverter.convert(createCallGroupOptions.getSourceCallIdNumber())) .setSourceDisplayName(createCallGroupOptions.getSourceDisplayName()) .setSource(sourceIdentity) - .setTeamsAppSource(MicrosoftTeamsAppIdentifierConverter.convert(createCallGroupOptions.getTeamsAppSource())) .setTargets(targetsModel) .setCallbackUri(createCallGroupOptions.getCallbackUrl()) .setCallIntelligenceOptions(callIntelligenceOptionsInternal) .setOperationContext(createCallGroupOptions.getOperationContext()); - if (createCallGroupOptions.getCustomContext().getSipHeaders() != null - || createCallGroupOptions.getCustomContext().getVoipHeaders() != null) { - CustomCallingContext customContext = new CustomCallingContext(); - customContext.setSipHeaders(createCallGroupOptions.getCustomContext().getSipHeaders()); - customContext.setVoipHeaders(createCallGroupOptions.getCustomContext().getVoipHeaders()); - request.setCustomCallingContext(customContext); - } if (createCallGroupOptions.getMediaStreamingOptions() != null) { MediaStreamingOptionsInternal streamingOptionsInternal = getMediaStreamingOptionsInternal(createCallGroupOptions.getMediaStreamingOptions()); @@ -325,13 +288,11 @@ private CreateCallRequestInternal getCreateCallRequestInternal(CreateGroupCallOp private MediaStreamingOptionsInternal getMediaStreamingOptionsInternal(MediaStreamingOptions mediaStreamingOptions) { - return new MediaStreamingOptionsInternal().setTransportUrl(mediaStreamingOptions.getTransportUrl()) + return new WebSocketMediaStreamingOptionsInternal().setTransportUrl(mediaStreamingOptions.getTransportUrl()) .setAudioChannelType(MediaStreamingAudioChannelTypeInternal .fromString(mediaStreamingOptions.getAudioChannelType().toString())) .setContentType( MediaStreamingContentTypeInternal.fromString(mediaStreamingOptions.getContentType().toString())) - .setTransportType( - MediaStreamingTransportTypeInternal.fromString(mediaStreamingOptions.getTransportType().toString())) .setStartMediaStreaming(mediaStreamingOptions.isStartMediaStreamingEnabled()) .setEnableBidirectional(mediaStreamingOptions.isEnableBidirectional()) .setAudioFormat(AudioFormatInternal.fromString(mediaStreamingOptions.getAudioFormat() != null @@ -340,13 +301,11 @@ private CreateCallRequestInternal getCreateCallRequestInternal(CreateGroupCallOp } private TranscriptionOptionsInternal getTranscriptionOptionsInternal(TranscriptionOptions transcriptionOptions) { - return new TranscriptionOptionsInternal().setTransportUrl(transcriptionOptions.getTransportUrl()) - .setTransportType( - TranscriptionTransportTypeInternal.fromString(transcriptionOptions.getTransportType().toString())) + return new WebSocketTranscriptionOptionsInternal().setTransportUrl(transcriptionOptions.getTransportUrl()) .setLocale(transcriptionOptions.getLocale()) .setStartTranscription(transcriptionOptions.getStartTranscription()) .setEnableIntermediateResults(transcriptionOptions.isIntermediateResultsEnabled()) - .setSpeechRecognitionModelEndpointId(transcriptionOptions.getSpeechRecognitionModelEndpointId()); + .setSpeechModelEndpointId(transcriptionOptions.getSpeechRecognitionModelEndpointId()); } /** @@ -394,11 +353,6 @@ Mono> answerCallWithResponseInternal(AnswerCallOption callIntelligenceOptionsInternal.setCognitiveServicesEndpoint( answerCallOptions.getCallIntelligenceOptions().getCognitiveServicesEndpoint()); - if (answerCallOptions.getCallIntelligenceOptions().getBackupCognitiveServicesEndpoint() != null) { - callIntelligenceOptionsInternal.setBackupCognitiveServicesEndpoint( - answerCallOptions.getCallIntelligenceOptions().getBackupCognitiveServicesEndpoint()); - } - request.setCallIntelligenceOptions(callIntelligenceOptionsInternal); } @@ -413,25 +367,15 @@ Mono> answerCallWithResponseInternal(AnswerCallOption = getTranscriptionOptionsInternal(answerCallOptions.getTranscriptionOptions()); request.setTranscriptionOptions(transcriptionOptionsInternal); } - if (answerCallOptions.getCustomCallingContext().getSipHeaders() != null - || answerCallOptions.getCustomCallingContext().getVoipHeaders() != null) { - CustomCallingContext customContext = new CustomCallingContext(); - customContext.setSipHeaders(answerCallOptions.getCustomCallingContext().getSipHeaders()); - customContext.setVoipHeaders(answerCallOptions.getCustomCallingContext().getVoipHeaders()); - request.setCustomCallingContext(customContext); - } return azureCommunicationCallAutomationServiceInternal.answerCallWithResponseAsync(request, context) .map(response -> { try { CallConnectionAsync callConnectionAsync = getCallConnectionAsync(response.getValue().getCallConnectionId()); - AnswerCallResult result - = new AnswerCallResult(CallConnectionPropertiesConstructorProxy.create(response.getValue()), - new CallConnection(callConnectionAsync), callConnectionAsync); - result.setEventProcessor(eventProcessor, response.getValue().getCallConnectionId(), null); - - return new SimpleResponse<>(response, result); + return new SimpleResponse<>(response, + new AnswerCallResult(CallConnectionPropertiesConstructorProxy.create(response.getValue()), + new CallConnection(callConnectionAsync), callConnectionAsync)); } catch (URISyntaxException e) { throw logger.logExceptionAsError(new RuntimeException(e)); } @@ -478,16 +422,6 @@ Mono> redirectCallWithResponseInternal(RedirectCallOptions redire .setTarget(CommunicationIdentifierConverter .convert(redirectCallOptions.getTargetParticipant().getTargetParticipant())); - // Need to do a null check since SipHeaders and VoipHeaders are optional; If they both are null then we do not need to set custom context - if (redirectCallOptions.getTargetParticipant().getCustomCallingContext().getSipHeaders() != null - || redirectCallOptions.getTargetParticipant().getCustomCallingContext().getVoipHeaders() != null) { - CustomCallingContext customContext = new CustomCallingContext(); - customContext.setSipHeaders( - redirectCallOptions.getTargetParticipant().getCustomCallingContext().getSipHeaders()); - customContext.setVoipHeaders( - redirectCallOptions.getTargetParticipant().getCustomCallingContext().getVoipHeaders()); - request.setCustomCallingContext(customContext); - } return azureCommunicationCallAutomationServiceInternal.redirectCallWithResponseAsync(request, context); } catch (RuntimeException ex) { return monoError(logger, ex); @@ -598,11 +532,6 @@ Mono> connectCallWithResponseInternal(ConnectCallOpt callIntelligenceOptionsInternal.setCognitiveServicesEndpoint( connectCallOptions.getCallIntelligenceOptions().getCognitiveServicesEndpoint()); - if (connectCallOptions.getCallIntelligenceOptions().getBackupCognitiveServicesEndpoint() != null) { - callIntelligenceOptionsInternal.setBackupCognitiveServicesEndpoint( - connectCallOptions.getCallIntelligenceOptions().getBackupCognitiveServicesEndpoint()); - } - request.setCallIntelligenceOptions(callIntelligenceOptionsInternal); } @@ -632,8 +561,7 @@ Mono> connectCallWithResponseInternal(ConnectCallOpt * @return a CallContentAsync. */ public CallConnectionAsync getCallConnectionAsync(String callConnectionId) { - return new CallConnectionAsync(callConnectionId, callConnectionsInternal, callMediasInternal, - callDialogsInternal, eventProcessor); + return new CallConnectionAsync(callConnectionId, callConnectionsInternal, callMediasInternal); } //endregion diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationClient.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationClient.java index 0fb7004ddccf..389f11d17dcd 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationClient.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationClient.java @@ -42,14 +42,6 @@ public final class CallAutomationClient { this.callAutomationAsyncClient = callAutomationAsyncClient; } - /** - * Get the event processor for handling events. - * @return {@link CallAutomationEventProcessor} as event processor - */ - public CallAutomationEventProcessor getEventProcessor() { - return callAutomationAsyncClient.getEventProcessor(); - } - /** * Get Source Identity that is used for create and answer call * @return {@link CommunicationUserIdentifier} represent source diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationClientBuilder.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationClientBuilder.java index 7ddc5d0a276e..30a224565982 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationClientBuilder.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationClientBuilder.java @@ -101,17 +101,6 @@ public CallAutomationClientBuilder endpoint(String endpoint) { return this; } - /** - * Set pma endpoint override of the service. - * - * @param pmaEndpoint url of the service. - * @return CallAutomationClientBuilder object. - */ - public CallAutomationClientBuilder pmaEndpoint(String pmaEndpoint) { - this.pmaEndpoint = Objects.requireNonNull(pmaEndpoint, "'pmaEndpoint' cannot be null."); - return this; - } - /** * Sets the {@link HttpPipeline} to use for the service client. * @@ -319,7 +308,7 @@ public CallAutomationClientBuilder addPolicy(HttpPipelinePolicy customPolicy) { * and {@link #retryPolicy(RetryPolicy)} have been set. */ public CallAutomationAsyncClient buildAsyncClient() { - return new CallAutomationAsyncClient(createServiceImpl(), sourceIdentity, new CallAutomationEventProcessor()); + return new CallAutomationAsyncClient(createServiceImpl(), sourceIdentity); } /** diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationEventParser.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationEventParser.java index 25d626fc2c2e..ec5380353d13 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationEventParser.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationEventParser.java @@ -23,20 +23,7 @@ import com.azure.communication.callautomation.models.events.ContinuousDtmfRecognitionToneFailed; import com.azure.communication.callautomation.models.events.ContinuousDtmfRecognitionToneReceived; import com.azure.communication.callautomation.models.events.CreateCallFailed; -import com.azure.communication.callautomation.models.events.DialogCompleted; -import com.azure.communication.callautomation.models.events.DialogConsent; -import com.azure.communication.callautomation.models.events.DialogFailed; -import com.azure.communication.callautomation.models.events.DialogHangup; -import com.azure.communication.callautomation.models.events.DialogLanguageChange; -import com.azure.communication.callautomation.models.events.DialogSensitivityUpdate; -import com.azure.communication.callautomation.models.events.DialogStarted; -import com.azure.communication.callautomation.models.events.DialogTransfer; -import com.azure.communication.callautomation.models.events.HoldAudioCompleted; -import com.azure.communication.callautomation.models.events.HoldAudioPaused; -import com.azure.communication.callautomation.models.events.HoldAudioResumed; -import com.azure.communication.callautomation.models.events.HoldAudioStarted; import com.azure.communication.callautomation.models.events.HoldFailed; -import com.azure.communication.callautomation.models.events.IncomingCall; import com.azure.communication.callautomation.models.events.MediaStreamingFailed; import com.azure.communication.callautomation.models.events.MediaStreamingStarted; import com.azure.communication.callautomation.models.events.MediaStreamingStopped; @@ -44,8 +31,6 @@ import com.azure.communication.callautomation.models.events.PlayCanceled; import com.azure.communication.callautomation.models.events.PlayCompleted; import com.azure.communication.callautomation.models.events.PlayFailed; -import com.azure.communication.callautomation.models.events.PlayPaused; -import com.azure.communication.callautomation.models.events.PlayResumed; import com.azure.communication.callautomation.models.events.PlayStarted; import com.azure.communication.callautomation.models.events.RecognizeCanceled; import com.azure.communication.callautomation.models.events.RecognizeCompleted; @@ -55,7 +40,6 @@ import com.azure.communication.callautomation.models.events.RemoveParticipantSucceeded; import com.azure.communication.callautomation.models.events.SendDtmfTonesCompleted; import com.azure.communication.callautomation.models.events.SendDtmfTonesFailed; -import com.azure.communication.callautomation.models.events.StartRecordingFailed; import com.azure.communication.callautomation.models.events.TranscriptionFailed; import com.azure.communication.callautomation.models.events.TranscriptionResumed; import com.azure.communication.callautomation.models.events.TranscriptionStarted; @@ -123,8 +107,6 @@ private static CallAutomationEventBase parseSingleCloudEvent(String data, String ret = CallConnected.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.CallDisconnected")) { ret = CallDisconnected.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.IncomingCall")) { - ret = IncomingCall.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.AddParticipantFailed")) { ret = AddParticipantFailed.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.AddParticipantSucceeded")) { @@ -137,8 +119,6 @@ private static CallAutomationEventBase parseSingleCloudEvent(String data, String ret = ParticipantsUpdated.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.RecordingStateChanged")) { ret = RecordingStateChanged.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.StartRecordingFailed")) { - ret = StartRecordingFailed.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.PlayCompleted")) { ret = PlayCompleted.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.PlayFailed")) { @@ -147,10 +127,6 @@ private static CallAutomationEventBase parseSingleCloudEvent(String data, String ret = PlayStarted.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.PlayCanceled")) { ret = PlayCanceled.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.PlayPaused")) { - ret = PlayPaused.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.PlayResumed")) { - ret = PlayResumed.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.RecognizeCompleted")) { ret = RecognizeCompleted.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.RecognizeFailed")) { @@ -175,22 +151,6 @@ private static CallAutomationEventBase parseSingleCloudEvent(String data, String ret = CancelAddParticipantSucceeded.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.CancelAddParticipantFailed")) { ret = CancelAddParticipantFailed.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.DialogStarted")) { - ret = DialogStarted.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.DialogCompleted")) { - ret = DialogCompleted.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.DialogFailed")) { - ret = DialogFailed.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.DialogConsent")) { - ret = DialogConsent.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.DialogHangup")) { - ret = DialogHangup.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.DialogLanguageChange")) { - ret = DialogLanguageChange.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.DialogTransfer")) { - ret = DialogTransfer.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.DialogSensitivityUpdate")) { - ret = DialogSensitivityUpdate.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.TranscriptionStarted")) { ret = TranscriptionStarted.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.TranscriptionFailed")) { @@ -205,14 +165,6 @@ private static CallAutomationEventBase parseSingleCloudEvent(String data, String ret = AnswerFailed.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.CreateCallFailed")) { ret = CreateCallFailed.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.HoldAudioCompleted")) { - ret = HoldAudioCompleted.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.HoldAudioStarted")) { - ret = HoldAudioStarted.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.HoldAudioPaused")) { - ret = HoldAudioPaused.fromJson(jsonReader); - } else if (Objects.equals(eventType, "Microsoft.Communication.HoldAudioResumed")) { - ret = HoldAudioResumed.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.HoldFailed")) { ret = HoldFailed.fromJson(jsonReader); } else if (Objects.equals(eventType, "Microsoft.Communication.ConnectFailed")) { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationEventProcessor.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationEventProcessor.java deleted file mode 100644 index 03214312daee..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationEventProcessor.java +++ /dev/null @@ -1,298 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation; - -import com.azure.communication.callautomation.implementation.eventprocessor.EventAwaiter; -import com.azure.communication.callautomation.implementation.eventprocessor.EventAwaiterOngoing; -import com.azure.communication.callautomation.implementation.eventprocessor.EventAwaiterSingleTime; -import com.azure.communication.callautomation.implementation.eventprocessor.EventBacklog; -import com.azure.communication.callautomation.implementation.eventprocessor.EventWithBacklogId; -import com.azure.communication.callautomation.implementation.eventprocessor.OngoingEventAwaiterKey; -import com.azure.communication.callautomation.models.events.CallAutomationEventBase; -import com.azure.communication.callautomation.models.events.CallDisconnected; -import com.azure.core.util.logging.ClientLogger; -import reactor.core.publisher.Mono; - -import java.time.Duration; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Objects; -import java.util.UUID; -import java.util.concurrent.ConcurrentHashMap; -import java.util.function.Consumer; -import java.util.function.Predicate; - -/** - * Call Automation's EventProcessor for incoming events for ease of use. - */ -public final class CallAutomationEventProcessor { - private final EventBacklog eventBacklog; - private final HashSet eventAwaiters; - private static final ClientLogger LOGGER = new ClientLogger(CallAutomationEventProcessor.class); - private static final int DEFAULT_EVENT_AWAITER_EXPIRATION_SECONDS = 240; - - // Key: Map entry of ConnectionId and Event class, Value: ongoingEventAwaiter - // Used to keep track of all ongoing event awaiters. - private final ConcurrentHashMap, EventAwaiterOngoing> ongoingEventAwaiters; - - /** - * Constructor of the event processor - */ - CallAutomationEventProcessor() { - eventBacklog = new EventBacklog(); - eventAwaiters = new HashSet<>(); - ongoingEventAwaiters = new ConcurrentHashMap<>(); - } - - /** - * Process incoming events. Pass incoming events to get it processed to have other method like WaitForEventProcessor to function. - * @param requestBody Incoming event request's body in string. - */ - public void processEvents(String requestBody) { - List receivedEvents = CallAutomationEventParser.parseEvents(requestBody); - if (receivedEvents.isEmpty()) { - return; - } - processEvents(receivedEvents); - } - - /** - * Process incoming events. Pass incoming events to get it processed to have other method like WaitForEventProcessor to function. - * @param events Incoming event in a list that after CallAutomationEventParser processing. - */ - public void processEvents(List events) { - // Note: There will always be only 1 event coming from the service - CallAutomationEventBase receivedEvent = events.get(0); - String backlogEventId = UUID.randomUUID().toString(); - EventWithBacklogId receivedEventWithBacklogId = eventBacklog.addEvent(backlogEventId, receivedEvent); - - // Each event awaiter should be notified and check if this is the event it is looking for. - eventAwaiters.forEach(eventAwaiter -> { - eventAwaiter.onEventsReceived(receivedEventWithBacklogId); - }); - - // If this call is about to disconnect, remove all related items in memory - if (receivedEvent instanceof CallDisconnected) { - // remove the event from eventBacklog - eventBacklog.removeEvent(backlogEventId); - // remove from ongoingevent list - removeFromOngoingEvent(receivedEvent.getCallConnectionId()); - } - } - - /** - * Wait for matching incoming event. This is blocking Call. Returns the event once it arrives in ProcessEvent method. - * @param connectionId Call connection id of the call. - * @param operationContext OperationContext of the method. - * @param eventType The event type that is being waited. - * @return Returns the event once matching event arrives. - * @param Any CallAutomation events. - */ - public TEvent waitForEventProcessor(String connectionId, - String operationContext, Class eventType) { - return waitForEventProcessorAsync(connectionId, operationContext, eventType).block(); - } - - /** - * Wait for matching incoming event. This is blocking Call. Returns the event once it arrives in ProcessEvent method. - * @param connectionId Call connection id of the call. - * @param operationContext OperationContext of the method. - * @param eventType The event type that is being waited. - * @param timeout The timeout duration for the event to arrive. - * @return Returns the event once matching event arrives. - * @param Any CallAutomation events. - */ - public TEvent waitForEventProcessor(String connectionId, - String operationContext, Class eventType, Duration timeout) { - return waitForEventProcessorAsync(connectionId, operationContext, eventType, timeout).block(); - } - - /** - * Wait for matching incoming event. This is blocking Call. Returns the event once it arrives in ProcessEvent method. - * @param predicate Predicate for waiting on event. - * @return Returns the event once matching event arrives. - */ - public CallAutomationEventBase waitForEventProcessor(Predicate predicate) { - return waitForEventProcessorAsync(predicate).block(); - } - - /** - * Wait for matching incoming event. This is blocking Call. Returns the event once it arrives in ProcessEvent method. - * @param predicate Predicate for waiting on event. - * @param timeout The timeout duration for the event to arrive. - * @return Returns the event once matching event arrives. - */ - public CallAutomationEventBase waitForEventProcessor(Predicate predicate, - Duration timeout) { - return waitForEventProcessorAsync(predicate, timeout).block(); - } - - /** - * Wait for matching incoming event. Returns the event once it arrives in ProcessEvent method. - * @param connectionId Call connection id of the call. - * @param operationContext OperationContext of the method. - * @param eventType The event type that is being waited. - * @return Returns the event once matching event arrives. - * @param Any CallAutomation events. - */ - @SuppressWarnings("unchecked") - public Mono waitForEventProcessorAsync(String connectionId, - String operationContext, Class eventType) { - return waitForEventProcessorAsync(connectionId, operationContext, eventType, - Duration.ofSeconds(DEFAULT_EVENT_AWAITER_EXPIRATION_SECONDS)); - } - - /** - * Wait for matching incoming event. Returns the event once it arrives in ProcessEvent method. - * @param connectionId Call connection id of the call. - * @param operationContext OperationContext of the method. - * @param eventType The event type that is being waited. - * @param timeout The timeout duration for the event to arrive. - * @return Returns the event once matching event arrives. - * @param Any CallAutomation events. - */ - @SuppressWarnings("unchecked") - public Mono waitForEventProcessorAsync(String connectionId, - String operationContext, Class eventType, Duration timeout) { - Mono ret = waitForEventProcessorAsync( - event -> (Objects.equals(event.getCallConnectionId(), connectionId) || Objects.isNull(connectionId)) - && (Objects.equals(event.getOperationContext(), operationContext) || Objects.isNull(operationContext)) - && event.getClass() == eventType, - timeout); - - return ret.map(event -> event == null ? null : (TEvent) event); - } - - /** - * Wait for matching incoming event. Returns the event once it arrives in ProcessEvent method. - * @param predicate Predicate for waiting on event. - * @return Returns the event once matching event arrives. - * @throws RuntimeException all checked exceptions if the logic fails. - */ - public Mono waitForEventProcessorAsync(Predicate predicate) { - return waitForEventProcessorAsync(predicate, Duration.ofSeconds(DEFAULT_EVENT_AWAITER_EXPIRATION_SECONDS)); - } - - /** - * Wait for matching incoming event. Returns the event once it arrives in ProcessEvent method. - * @param predicate Predicate for waiting on event. - * @param timeout The timeout duration for the event to arrive. - * @return Returns the event once matching event arrives. - * @throws RuntimeException all checked exceptions if the logic fails. - */ - public Mono waitForEventProcessorAsync(Predicate predicate, - Duration timeout) { - // Initialize awaiter - EventAwaiterSingleTime eventAwaiterSingleTime = new EventAwaiterSingleTime(predicate); - - try { - // Queue it into the subscriber list. - eventAwaiters.add(eventAwaiterSingleTime); - - EventWithBacklogId eventWithBacklogId = eventBacklog.tryGetAndRemoveMatchedEvent(predicate); - - if (eventWithBacklogId == null) { - // If event comes to backlog later before the awaiter expires, ret will get that event, otherwise a timeout exception will throw. - Mono futureEventWithBacklogId - = eventAwaiterSingleTime.getEventWithBacklogId().timeout(timeout); - futureEventWithBacklogId.subscribe(event -> { - eventBacklog.removeEvent(event.getBackLogEventId()); - // Remove the awaiter since the event is found or the awaiter is expired. - eventAwaiters.remove(eventAwaiterSingleTime); - eventAwaiterSingleTime.close(); - }); - return futureEventWithBacklogId.map(EventWithBacklogId::getEvent); - } else { - // Remove the awaiter since the event is found or the awaiter is expired. - eventAwaiters.remove(eventAwaiterSingleTime); - eventAwaiterSingleTime.close(); - return Mono.just(eventWithBacklogId.getEvent()); - } - } catch (Exception e) { - if (!eventAwaiterSingleTime.isDisposed()) { - eventAwaiters.remove(eventAwaiterSingleTime); - eventAwaiterSingleTime.close(); - } - throw LOGGER.logExceptionAsError(new RuntimeException(e)); - } - } - - /** - * Attach Ongoing EventProcessor for specific event. - * @param callConnectionId The call connection id of the call. - * @param eventProcessor EventProcessor to be fired when the specified event arrives. - * @param eventType The event type that is being waited. - * @param Any CallAutomation events. - */ - public void attachOngoingEventProcessor(String callConnectionId, - Consumer eventProcessor, Class eventType) { - EventAwaiterOngoing eventAwaiterOngoing - = new EventAwaiterOngoing<>(eventType, callConnectionId, eventProcessor); - - try { - // Queue it into the subscriber list. - eventAwaiters.add(eventAwaiterOngoing); - ongoingEventAwaiters.put(new OngoingEventAwaiterKey<>(callConnectionId, eventType), eventAwaiterOngoing); - } catch (Exception e) { - if (!eventAwaiterOngoing.isDisposed()) { - OngoingEventAwaiterKey removalKey = ongoingEventAwaiters.searchKeys(1, key -> { - if (Objects.equals(key.getCallConnectionId(), callConnectionId) && key.getClazz() == eventType) { - return key; - } - return null; - }); - - if (removalKey != null) { - ongoingEventAwaiters.remove(removalKey); - eventAwaiters.remove(eventAwaiterOngoing); - } - } - } - } - - /** - * Detach Ongoing EventProcessor for specific event. - * @param callConnectionId The call connection id of the call. - * @param eventType The event type that is being waited. - * @param Any CallAutomation events. - */ - public void detachOngoingEventProcessor(String callConnectionId, - Class eventType) { - removeFromOngoingEvent(callConnectionId, eventType); - } - - private void removeFromOngoingEvent(String connectionId) { - removeFromOngoingEvent(connectionId, null); - } - - private void removeFromOngoingEvent(String connectionId, - Class clazz) { - if (clazz == null) { - // Remove all matching connectionId - List> keysToRemove = new ArrayList<>(); - ongoingEventAwaiters.forEachKey(1, key -> { - if (Objects.equals(key.getCallConnectionId(), connectionId)) { - keysToRemove.add(key); - } - }); - keysToRemove.forEach(key -> { - EventAwaiterOngoing awaiterOngoingToBeRemoved = ongoingEventAwaiters.remove(key); - eventAwaiters.remove(awaiterOngoingToBeRemoved); - }); - } else { - OngoingEventAwaiterKey removalKey = ongoingEventAwaiters.searchKeys(1, key -> { - if (Objects.equals(key.getCallConnectionId(), connectionId) && key.getClazz() == clazz) { - return key; - } - return null; - }); - - if (removalKey != null) { - EventAwaiterOngoing awaiterOngoingToBeRemoved = ongoingEventAwaiters.remove(removalKey); - eventAwaiters.remove(awaiterOngoingToBeRemoved); - } - } - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationServiceVersion.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationServiceVersion.java index 895cebe280bc..c7409ab1b0c8 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationServiceVersion.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationServiceVersion.java @@ -11,8 +11,8 @@ public enum CallAutomationServiceVersion implements ServiceVersion { /** - * Service version {@code 2023-03-06}. - */ + * Service version {@code 2023-03-06}. + */ V2023_03_06("2023-03-06"), /** @@ -26,29 +26,14 @@ public enum CallAutomationServiceVersion implements ServiceVersion { V2024_04_15("2024-04-15"), /** - * Service version {@code 2024-09-15}. - */ - V2024_09_15("2024-09-15"), - - /** - * Service version {@code 2024-06-15-preview}. + * Service version {@code 2024-09-15}. */ - V2024_06_15_PREVIEW("2024-06-15-preview"), - - /** - * Service version {@code 2024-06-15-preview}. - */ - V2024_11_15_PREVIEW("2024-11-15-preview"), - - /** - * Service version {@code 2023-10-03-preview}. - */ - V2023_10_03_PREVIEW("2023-10-03-preview"), + V2024_09_15("2024-09-15"), /** - * Service version {@code 2024-2024-01-preview}. + * Service version {@code 2025-05-15}. */ - V2024_09_01_PREVIEW("2024-09-01-preview"); + V2025_05_15("2025-05-15"); private final String version; @@ -70,6 +55,6 @@ public String getVersion() { * @return The latest {@link CallAutomationServiceVersion} object. */ public static CallAutomationServiceVersion getLatest() { - return V2024_09_01_PREVIEW; + return V2025_05_15; } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallConnection.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallConnection.java index 12c52e666dcb..d975bc9d99a6 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallConnection.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallConnection.java @@ -16,8 +16,6 @@ import com.azure.communication.callautomation.models.RemoveParticipantResult; import com.azure.communication.callautomation.models.TransferCallResult; import com.azure.communication.callautomation.models.TransferCallToParticipantOptions; -import com.azure.communication.callautomation.models.UnmuteParticipantOptions; -import com.azure.communication.callautomation.models.UnmuteParticipantResult; import com.azure.communication.common.CommunicationIdentifier; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; @@ -250,30 +248,6 @@ public Response muteParticipantWithResponse(MuteParticipa return callConnectionAsync.muteParticipantWithResponseInternal(options, context).block(); } - /** - * Unmutes participant in the call. - * - * @param targetParticipant - Participant to be unmuted. Only ACS Users are currently supported. - * @return An UnmuteParticipantResult object. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public UnmuteParticipantResult unmuteParticipant(CommunicationIdentifier targetParticipant) { - return callConnectionAsync.unmuteParticipant(targetParticipant).block(); - } - - /** - * Unmutes participant in the call. - * - * @param options - Options for the request. - * @param context A {@link Context} representing the request context. - * @return a Response containing the UnmuteParticipantResult object. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response unmuteParticipantWithResponse(UnmuteParticipantOptions options, - Context context) { - return callConnectionAsync.unmuteParticipantWithResponseInternal(options, context).block(); - } - /** * Cancel add participant operation request. * @@ -314,16 +288,5 @@ public Response cancelAddParticipantOperati public CallMedia getCallMedia() { return new CallMedia(callConnectionAsync.getCallMediaAsync()); } - - /*** - * Returns an object of CallDialog - * - * @return a CallDialogAsync. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CallDialog getCallDialog() { - return new CallDialog(callConnectionAsync.getCallDialogAsync()); - } - //endregion } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallConnectionAsync.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallConnectionAsync.java index ee9e25f2cb36..9426805497bb 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallConnectionAsync.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallConnectionAsync.java @@ -4,7 +4,6 @@ package com.azure.communication.callautomation; import com.azure.communication.callautomation.implementation.CallConnectionsImpl; -import com.azure.communication.callautomation.implementation.CallDialogsImpl; import com.azure.communication.callautomation.implementation.CallMediasImpl; import com.azure.communication.callautomation.implementation.accesshelpers.AddParticipantResponseConstructorProxy; import com.azure.communication.callautomation.implementation.accesshelpers.CallConnectionPropertiesConstructorProxy; @@ -12,7 +11,6 @@ import com.azure.communication.callautomation.implementation.accesshelpers.MuteParticipantsResponseConstructorProxy; import com.azure.communication.callautomation.implementation.accesshelpers.RemoveParticipantResponseConstructorProxy; import com.azure.communication.callautomation.implementation.accesshelpers.TransferCallResponseConstructorProxy; -import com.azure.communication.callautomation.implementation.accesshelpers.UnmuteParticipantsResponseConstructorProxy; import com.azure.communication.callautomation.implementation.converters.CallParticipantConverter; import com.azure.communication.callautomation.implementation.converters.CommunicationIdentifierConverter; import com.azure.communication.callautomation.implementation.converters.PhoneNumberIdentifierConverter; @@ -22,7 +20,6 @@ import com.azure.communication.callautomation.implementation.models.MuteParticipantsRequestInternal; import com.azure.communication.callautomation.implementation.models.RemoveParticipantRequestInternal; import com.azure.communication.callautomation.implementation.models.TransferToParticipantRequestInternal; -import com.azure.communication.callautomation.implementation.models.UnmuteParticipantsRequestInternal; import com.azure.communication.callautomation.models.AddParticipantOptions; import com.azure.communication.callautomation.models.AddParticipantResult; import com.azure.communication.callautomation.models.CallConnectionProperties; @@ -36,8 +33,6 @@ import com.azure.communication.callautomation.models.RemoveParticipantResult; import com.azure.communication.callautomation.models.TransferCallResult; import com.azure.communication.callautomation.models.TransferCallToParticipantOptions; -import com.azure.communication.callautomation.models.UnmuteParticipantOptions; -import com.azure.communication.callautomation.models.UnmuteParticipantResult; import com.azure.communication.common.CommunicationIdentifier; import com.azure.communication.common.CommunicationUserIdentifier; import com.azure.communication.common.MicrosoftTeamsAppIdentifier; @@ -70,17 +65,13 @@ public final class CallConnectionAsync { private final String callConnectionId; private final CallConnectionsImpl callConnectionInternal; private final CallMediasImpl callMediasInternal; - private final CallDialogsImpl callDialogsInternal; - private final CallAutomationEventProcessor eventProcessor; private final ClientLogger logger; CallConnectionAsync(String callConnectionId, CallConnectionsImpl callConnectionInternal, - CallMediasImpl contentsInternal, CallDialogsImpl dialogsInternal, CallAutomationEventProcessor eventProcessor) { + CallMediasImpl contentsInternal) { this.callConnectionId = callConnectionId; this.callConnectionInternal = callConnectionInternal; this.callMediasInternal = contentsInternal; - this.callDialogsInternal = dialogsInternal; - this.eventProcessor = eventProcessor; this.logger = new ClientLogger(CallConnectionAsync.class); } @@ -314,11 +305,8 @@ Mono> transferCallToParticipantWithResponseInternal } return callConnectionInternal.transferToParticipantWithResponseAsync(callConnectionId, request, context) - .map(response -> { - TransferCallResult result = TransferCallResponseConstructorProxy.create(response.getValue()); - result.setEventProcessor(eventProcessor, callConnectionId, result.getOperationContext()); - return new SimpleResponse<>(response, result); - }); + .map(response -> new SimpleResponse<>(response, + TransferCallResponseConstructorProxy.create(response.getValue()))); } catch (RuntimeException ex) { return monoError(logger, ex); } @@ -380,11 +368,8 @@ Mono> addParticipantWithResponseInternal(AddParti } return callConnectionInternal.addParticipantWithResponseAsync(callConnectionId, request, context) - .map(response -> { - AddParticipantResult result = AddParticipantResponseConstructorProxy.create(response.getValue()); - result.setEventProcessor(eventProcessor, callConnectionId, result.getOperationContext()); - return new SimpleResponse<>(response, result); - }); + .map(response -> new SimpleResponse<>(response, + AddParticipantResponseConstructorProxy.create(response.getValue()))); } catch (RuntimeException ex) { return monoError(logger, ex); } @@ -430,12 +415,8 @@ public Mono removeParticipant(CommunicationIdentifier p .setOperationCallbackUri(removeParticipantOptions.getOperationCallbackUrl()); return callConnectionInternal.removeParticipantWithResponseAsync(callConnectionId, request, context) - .map(response -> { - RemoveParticipantResult result - = RemoveParticipantResponseConstructorProxy.create(response.getValue()); - result.setEventProcessor(eventProcessor, callConnectionId, result.getOperationContext()); - return new SimpleResponse<>(response, result); - }); + .map(response -> new SimpleResponse<>(response, + RemoveParticipantResponseConstructorProxy.create(response.getValue()))); } catch (RuntimeException ex) { return monoError(logger, ex); } @@ -481,45 +462,6 @@ Mono> muteParticipantWithResponseInternal(MutePa } } - /** - * Unmutes participant in the call. - * @param targetParticipant - Participant to be unmuted. Only ACS Users are currently supported. - * @return An UnmuteParticipantResult object. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono unmuteParticipant(CommunicationIdentifier targetParticipant) { - return unmuteParticipantWithResponseInternal(new UnmuteParticipantOptions(targetParticipant), null) - .flatMap(FluxUtil::toMono); - } - - /** - * Unmute participants in the call. - * @param unmuteParticipantOptions - Options for the request. - * @return a Response containing the UnmuteParticipantResult object. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> - unmuteParticipantWithResponse(UnmuteParticipantOptions unmuteParticipantOptions) { - return withContext(context -> unmuteParticipantWithResponseInternal(unmuteParticipantOptions, context)); - } - - Mono> - unmuteParticipantWithResponseInternal(UnmuteParticipantOptions unmuteParticipantOptions, Context context) { - try { - context = context == null ? Context.NONE : context; - UnmuteParticipantsRequestInternal request = new UnmuteParticipantsRequestInternal() - .setTargetParticipants(Collections.singletonList( - CommunicationIdentifierConverter.convert(unmuteParticipantOptions.getTargetParticipant()))) - .setOperationContext(unmuteParticipantOptions.getOperationContext()); - - return callConnectionInternal.unmuteWithResponseAsync(callConnectionId, request, context) - .map(internalResponse -> new SimpleResponse<>(internalResponse, - UnmuteParticipantsResponseConstructorProxy.create(internalResponse.getValue()))); - } catch (RuntimeException ex) { - return monoError(logger, ex); - } - } - /** * Cancel add participant operation request. * @@ -560,12 +502,8 @@ Mono> cancelAddParticipantOperatio .setOperationCallbackUri(cancelAddParticipantOperationOptions.getOperationCallbackUrl()); return callConnectionInternal.cancelAddParticipantWithResponseAsync(callConnectionId, request, context) - .map(response -> { - CancelAddParticipantOperationResult result - = CancelAddParticipantResponseConstructorProxy.create(response.getValue()); - result.setEventProcessor(eventProcessor, callConnectionId, result.getOperationContext()); - return new SimpleResponse<>(response, result); - }); + .map(response -> new SimpleResponse<>(response, + CancelAddParticipantResponseConstructorProxy.create(response.getValue()))); } catch (RuntimeException ex) { return monoError(logger, ex); } @@ -581,15 +519,5 @@ Mono> cancelAddParticipantOperatio public CallMediaAsync getCallMediaAsync() { return new CallMediaAsync(callConnectionId, callMediasInternal); } - - /*** - * Returns an object of CallDialogAsync - * - * @return a CallDialogAsync. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CallDialogAsync getCallDialogAsync() { - return new CallDialogAsync(callConnectionId, callDialogsInternal); - } //endregion } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallDialog.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallDialog.java deleted file mode 100644 index d0dee1bfa4db..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallDialog.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation; - -import com.azure.core.util.Context; -import com.azure.communication.callautomation.models.DialogStateResult; -import com.azure.communication.callautomation.models.StartDialogOptions; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.exception.HttpResponseException; -import com.azure.core.http.rest.Response; - -/** - * CallDialog. - */ -public final class CallDialog { - - /** - * Instance of CallDialogAsync. - */ - private final CallDialogAsync callDialogAsync; - - /** - * Constructor. - * - * @param callDialogAsync callDialogAsync - */ - CallDialog(CallDialogAsync callDialogAsync) { - this.callDialogAsync = callDialogAsync; - } - - /** - * Start Dialog - * - * @param options A {@link StartDialogOptions} object containing different options for startDialog. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return Response for successful startDialog request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DialogStateResult startDialog(StartDialogOptions options) { - return callDialogAsync.startDialog(options).block(); - } - - /** - * Start Dialog - * - * @param options A {@link StartDialogOptions} object containing different options for startDialog. - * @param context The context to associate with this operation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return Response for successful startDialog request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response startDialogWithResponse(StartDialogOptions options, Context context) { - return callDialogAsync.startDialogWithResponseInternal(options, context).block(); - } - - /** - * Stop Dialog - * - * @param dialogId The dialog id. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void stopDialog(String dialogId) { - callDialogAsync.stopDialog(dialogId).block(); - } - - /** - * Stop Dialog - * - * @param dialogId The dialog id. - * @param context The context to associate with this operation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return Response for successful stopDialog request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response stopDialogWithResponse(String dialogId, Context context) { - return callDialogAsync.stopDialogWithResponseInternal(dialogId, context).block(); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallDialogAsync.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallDialogAsync.java deleted file mode 100644 index bdb493c54990..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallDialogAsync.java +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation; - -import com.azure.communication.callautomation.implementation.CallDialogsImpl; -import com.azure.communication.callautomation.implementation.accesshelpers.DialogStateResponseConstructorProxy; -import com.azure.communication.callautomation.implementation.models.BaseDialog; -import com.azure.communication.callautomation.implementation.models.StartDialogRequestInternal; -import com.azure.communication.callautomation.implementation.models.PowerVirtualAgentsDialog; -import com.azure.communication.callautomation.implementation.models.AzureOpenAIDialog; -import com.azure.communication.callautomation.models.DialogStateResult; -import com.azure.communication.callautomation.models.StartDialogOptions; -import com.azure.communication.callautomation.models.DialogInputType; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import reactor.core.publisher.Mono; - -import static com.azure.core.util.FluxUtil.monoError; -import static com.azure.core.util.FluxUtil.withContext; - -/** - * CallDialogAsync. - */ -public final class CallDialogAsync { - - private final CallDialogsImpl dialogsInternal; - private final String callConnectionId; - private final ClientLogger logger; - - /** - * Constructor. - * - * @param callConnectionId callConnectionId the id of the call connection - * @param callDialogInternal Internal implementation of CallDialog - */ - CallDialogAsync(String callConnectionId, CallDialogsImpl callDialogInternal) { - this.callConnectionId = callConnectionId; - this.dialogsInternal = callDialogInternal; - this.logger = new ClientLogger(CallDialogAsync.class); - } - - /** - * Start Dialog - * - * @param startDialogOptions startDialog options - * @return Response for successful startDialog request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono startDialog(StartDialogOptions startDialogOptions) { - return startDialogWithResponse(startDialogOptions).flatMap(response -> Mono.just(response.getValue())); - } - - /** - * Start Dialog - * - * @param startDialogOptions startDialog options - * @return Response for successful startDialog request. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> startDialogWithResponse(StartDialogOptions startDialogOptions) { - return withContext(context -> startDialogWithResponseInternal(startDialogOptions, context)); - } - - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> startDialogWithResponseInternal(StartDialogOptions startDialogOptions, - Context context) { - try { - context = context == null ? Context.NONE : context; - - BaseDialog baseDialog = null; - if (startDialogOptions.getDialogInputType() == DialogInputType.POWER_VIRTUAL_AGENTS) { - baseDialog = new PowerVirtualAgentsDialog().setBotAppId(startDialogOptions.getBotId()) - .setContext(startDialogOptions.getDialogContext()); - } else if (startDialogOptions.getDialogInputType() == DialogInputType.AZURE_OPEN_AI) { - baseDialog = new AzureOpenAIDialog().setContext(startDialogOptions.getDialogContext()); - } - - StartDialogRequestInternal requestInternal = new StartDialogRequestInternal().setDialog(baseDialog) - .setOperationContext(startDialogOptions.getOperationContext()); - - return dialogsInternal - .startDialogWithResponseAsync(callConnectionId, startDialogOptions.getDialogId(), requestInternal, - context) - .map(response -> new SimpleResponse<>(response, - DialogStateResponseConstructorProxy.create(response.getValue()))); - } catch (RuntimeException e) { - return monoError(logger, e); - } - } - - /** - * Stop Dialog - * - * @param dialogId The dialog id. - * @return Response for successful stopDialog request. - */ - public Mono stopDialog(String dialogId) { - return stopDialogWithResponse(dialogId).then(); - } - - /** - * Sop Dialog - * - * @param dialogId The dialog id. - * @return Response for successful stopDialog request. - */ - public Mono> stopDialogWithResponse(String dialogId) { - return withContext(context -> stopDialogWithResponseInternal(dialogId, context)); - } - - Mono> stopDialogWithResponseInternal(String dialogId, Context context) { - try { - context = context == null ? Context.NONE : context; - // TODO: FIX OperationCallbackUri - return dialogsInternal.stopDialogWithResponseAsync(callConnectionId, dialogId, null, context); - } catch (RuntimeException e) { - return monoError(logger, e); - } - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java index 1f9a853b6ddb..77ecdc15e54d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java @@ -7,7 +7,6 @@ import com.azure.communication.callautomation.models.ContinuousDtmfRecognitionOptions; import com.azure.communication.callautomation.models.DtmfTone; import com.azure.communication.callautomation.models.HoldOptions; -import com.azure.communication.callautomation.models.InterruptAudioAndAnnounceOptions; import com.azure.communication.callautomation.models.UnholdOptions; import com.azure.communication.callautomation.models.PlayOptions; import com.azure.communication.callautomation.models.PlayToAllOptions; @@ -387,26 +386,4 @@ public void stopMediaStreaming() { public Response stopMediaStreamingWithResponse(StopMediaStreamingOptions options, Context context) { return callMediaAsync.stopMediaStreamingWithResponseInternal(options, context).block(); } - - /** - * Interrupt audio and play announment to the participant in call. - * @param playSource A {@link PlaySource} representing the source to play. - * @param playTo the target. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void interruptAudioAndAnnounce(PlaySource playSource, CommunicationIdentifier playTo) { - callMediaAsync.interruptAudioAndAnnounce(playSource, playTo).block(); - } - - /** - * Interrupt audio and play announment to the participant in call. - * @param options - Different options to pass to the request. - * @param context Context - * @return Response for successful operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response interruptAudioAndAnnounceWithResponse(InterruptAudioAndAnnounceOptions options, - Context context) { - return callMediaAsync.interruptAudioAndAnnounceWithResponseInternal(options, context).block(); - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java index 2c8cb646d7c2..e1ca1502f955 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java @@ -16,7 +16,6 @@ import com.azure.communication.callautomation.implementation.models.DtmfToneInternal; import com.azure.communication.callautomation.implementation.models.FileSourceInternal; import com.azure.communication.callautomation.implementation.models.HoldRequest; -import com.azure.communication.callautomation.implementation.models.InterruptAudioAndAnnounceRequest; import com.azure.communication.callautomation.implementation.models.PlayOptionsInternal; import com.azure.communication.callautomation.implementation.models.PlayRequest; import com.azure.communication.callautomation.implementation.models.PlaySourceInternal; @@ -45,7 +44,6 @@ import com.azure.communication.callautomation.models.DtmfTone; import com.azure.communication.callautomation.models.FileSource; import com.azure.communication.callautomation.models.HoldOptions; -import com.azure.communication.callautomation.models.InterruptAudioAndAnnounceOptions; import com.azure.communication.callautomation.models.PlayOptions; import com.azure.communication.callautomation.models.PlaySource; import com.azure.communication.callautomation.models.PlayToAllOptions; @@ -303,7 +301,6 @@ PlayRequest getPlayRequest(PlayOptions options) { request.setPlayOptions(new PlayOptionsInternal().setLoop(options.isLoop())); request.setOperationContext(options.getOperationContext()); request.setOperationCallbackUri(options.getOperationCallbackUrl()); - request.setPlayOptions(new PlayOptionsInternal().setInterruptHoldAudio(options.isInterruptHoldAudio())); return request; } @@ -333,8 +330,8 @@ PlayRequest getPlayToAllRequest(PlayToAllOptions options) { if (!playSourcesInternal.isEmpty()) { PlayRequest request = new PlayRequest().setPlaySources(playSourcesInternal); - request.setPlayOptions(new PlayOptionsInternal().setLoop(options.isLoop()) - .setInterruptCallMediaOperation(options.isInterruptCallMediaOperation())); + request.setPlayOptions(new PlayOptionsInternal().setLoop(options.isLoop())); + request.setInterruptCallMediaOperation(options.isInterruptCallMediaOperation()); request.setOperationContext(options.getOperationContext()); request.setOperationCallbackUri(options.getOperationCallbackUrl()); @@ -840,7 +837,7 @@ Mono> startTranscriptionWithResponseInternal(StartTranscriptionOp if (options != null) { request.setLocale(options.getLocale()); request.setOperationContext(options.getOperationContext()); - request.setSpeechRecognitionModelEndpointId(options.getSpeechRecognitionModelEndpointId()); + request.setSpeechModelEndpointId(options.getSpeechRecognitionModelEndpointId()); } return contentsInternal.startTranscriptionWithResponseAsync(callConnectionId, request, context); } catch (RuntimeException ex) { @@ -936,7 +933,7 @@ Mono> updateTranscriptionWithResponseInternal(String locale, Stri context = context == null ? Context.NONE : context; UpdateTranscriptionRequestInternal request = new UpdateTranscriptionRequestInternal(); request.setLocale(locale); - request.setSpeechRecognitionModelEndpointId(speechRecognitionModelEndpointId); + request.setSpeechModelEndpointId(speechRecognitionModelEndpointId); request.setOperationContext(operationContext); return contentsInternal.updateTranscriptionWithResponseAsync(callConnectionId, request, context); } catch (RuntimeException ex) { @@ -1012,50 +1009,4 @@ Mono> stopMediaStreamingWithResponseInternal(StopMediaStreamingOp return monoError(logger, ex); } } - - /** - * Interrupt audio and play announment to the participant in call. - * @param playTo the target. - * @param playSource the play source. - * @return Response for successful operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono interruptAudioAndAnnounce(PlaySource playSource, CommunicationIdentifier playTo) { - return interruptAudioAndAnnounceWithResponse(new InterruptAudioAndAnnounceOptions(playSource, playTo)) - .flatMap(FluxUtil::toMono); - } - - /** - * Interrupt audio and play announment to the participant in call. - * @param options - Different options to pass to the request. - * @return Response for successful operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> interruptAudioAndAnnounceWithResponse(InterruptAudioAndAnnounceOptions options) { - return withContext(context -> interruptAudioAndAnnounceWithResponseInternal(options, context)); - } - - Mono> interruptAudioAndAnnounceWithResponseInternal(InterruptAudioAndAnnounceOptions options, - Context context) { - try { - context = context == null ? Context.NONE : context; - List playSourcesInternal = new ArrayList<>(); - InterruptAudioAndAnnounceRequest request = new InterruptAudioAndAnnounceRequest() - .setPlayTo(CommunicationIdentifierConverter.convert(options.getPlayTo())) - .setOperationContext(options.getOperationContext()); - - if (options.getPlaySources() != null) { - for (PlaySource playSource : options.getPlaySources()) { - if (playSource != null) { - playSourcesInternal.add(convertPlaySourceToPlaySourceInternal(playSource)); - } - } - } - request.setPlaySources(playSourcesInternal); - - return contentsInternal.interruptAudioAndAnnounceWithResponseAsync(callConnectionId, request, context); - } catch (RuntimeException ex) { - return monoError(logger, ex); - } - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallRecordingAsync.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallRecordingAsync.java index c5290114fd79..e9a0d4672ceb 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallRecordingAsync.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallRecordingAsync.java @@ -186,9 +186,6 @@ private StartCallRecordingRequestInternal getStartCallRecordingRequest(StartReco if (options.isPauseOnStart() != null) { request.setPauseOnStart(options.isPauseOnStart()); } - if (options.getCallConnectionId() != null) { - request.setCallConnectionId(options.getCallConnectionId()); - } return request; } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImpl.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImpl.java index 9a14b998ef27..a1cf281a34a0 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImpl.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImpl.java @@ -130,20 +130,6 @@ public CallMediasImpl getCallMedias() { return this.callMedias; } - /** - * The CallDialogsImpl object to access its operations. - */ - private final CallDialogsImpl callDialogs; - - /** - * Gets the CallDialogsImpl object to access its operations. - * - * @return the CallDialogsImpl object. - */ - public CallDialogsImpl getCallDialogs() { - return this.callDialogs; - } - /** * The CallRecordingsImpl object to access its operations. */ @@ -196,7 +182,6 @@ public CallRecordingsImpl getCallRecordings() { this.apiVersion = apiVersion; this.callConnections = new CallConnectionsImpl(this); this.callMedias = new CallMediasImpl(this); - this.callDialogs = new CallDialogsImpl(this); this.callRecordings = new CallRecordingsImpl(this); this.service = RestProxy.create(AzureCommunicationCallAutomationServiceService.class, this.httpPipeline, this.getSerializerAdapter()); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImplBuilder.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImplBuilder.java index ee97c03a9306..199d36e2c4db 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImplBuilder.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImplBuilder.java @@ -271,7 +271,7 @@ public AzureCommunicationCallAutomationServiceImplBuilder retryPolicy(RetryPolic @Generated public AzureCommunicationCallAutomationServiceImpl buildClient() { HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline(); - String localApiVersion = (apiVersion != null) ? apiVersion : "2024-09-01-preview"; + String localApiVersion = (apiVersion != null) ? apiVersion : "2025-05-15"; SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter : JacksonAdapter.createDefaultSerializerAdapter(); AzureCommunicationCallAutomationServiceImpl client = new AzureCommunicationCallAutomationServiceImpl( diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallConnectionsImpl.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallConnectionsImpl.java index b7865950d33c..f473a974953d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallConnectionsImpl.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallConnectionsImpl.java @@ -18,8 +18,6 @@ import com.azure.communication.callautomation.implementation.models.RemoveParticipantResponseInternal; import com.azure.communication.callautomation.implementation.models.TransferCallResponseInternal; import com.azure.communication.callautomation.implementation.models.TransferToParticipantRequestInternal; -import com.azure.communication.callautomation.implementation.models.UnmuteParticipantsRequestInternal; -import com.azure.communication.callautomation.implementation.models.UnmuteParticipantsResponseInternal; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; import com.azure.core.annotation.ExpectedResponses; @@ -149,16 +147,6 @@ Mono> mute(@HostParam("endpoint") Strin @HeaderParam("repeatability-request-id") String repeatabilityRequestId, @HeaderParam("repeatability-first-sent") String repeatabilityFirstSent, Context context); - @Post("/calling/callConnections/{callConnectionId}/participants:unmute") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(CommunicationErrorResponseException.class) - Mono> unmute(@HostParam("endpoint") String endpoint, - @PathParam("callConnectionId") String callConnectionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") UnmuteParticipantsRequestInternal unmuteParticipantsRequest, - @HeaderParam("Accept") String accept, - @HeaderParam("repeatability-request-id") String repeatabilityRequestId, - @HeaderParam("repeatability-first-sent") String repeatabilityFirstSent, Context context); - @Post("/calling/callConnections/{callConnectionId}/participants:cancelAddParticipant") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(CommunicationErrorResponseException.class) @@ -714,7 +702,7 @@ public PagedIterable getParticipants(String callConnect * Add a participant to the call. * * @param callConnectionId The call connection Id. - * @param addParticipantRequest The add participants request. + * @param addParticipantRequest The request payload for adding participant to the call. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -736,7 +724,7 @@ public Mono> addParticipantWithResponse * Add a participant to the call. * * @param callConnectionId The call connection Id. - * @param addParticipantRequest The add participants request. + * @param addParticipantRequest The request payload for adding participant to the call. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. @@ -758,7 +746,7 @@ public Mono> addParticipantWithResponse * Add a participant to the call. * * @param callConnectionId The call connection Id. - * @param addParticipantRequest The add participants request. + * @param addParticipantRequest The request payload for adding participant to the call. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -775,7 +763,7 @@ public Mono addParticipantAsync(String callConne * Add a participant to the call. * * @param callConnectionId The call connection Id. - * @param addParticipantRequest The add participants request. + * @param addParticipantRequest The request payload for adding participant to the call. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. @@ -793,7 +781,7 @@ public Mono addParticipantAsync(String callConne * Add a participant to the call. * * @param callConnectionId The call connection Id. - * @param addParticipantRequest The add participants request. + * @param addParticipantRequest The request payload for adding participant to the call. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. @@ -810,7 +798,7 @@ public Response addParticipantWithResponse(Strin * Add a participant to the call. * * @param callConnectionId The call connection Id. - * @param addParticipantRequest The add participants request. + * @param addParticipantRequest The request payload for adding participant to the call. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1046,118 +1034,6 @@ public MuteParticipantsResultInternal mute(String callConnectionId, return muteWithResponse(callConnectionId, muteParticipantsRequest, Context.NONE).getValue(); } - /** - * Unmute participants from the call using identifier. - * - * @param callConnectionId The call connection id. - * @param unmuteParticipantsRequest The participants to be unmuted from the call. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response payload for unmuting participants from the call along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> unmuteWithResponseAsync(String callConnectionId, - UnmuteParticipantsRequestInternal unmuteParticipantsRequest) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil.withContext( - context -> service.unmute(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), - unmuteParticipantsRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context)); - } - - /** - * Unmute participants from the call using identifier. - * - * @param callConnectionId The call connection id. - * @param unmuteParticipantsRequest The participants to be unmuted from the call. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response payload for unmuting participants from the call along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> unmuteWithResponseAsync(String callConnectionId, - UnmuteParticipantsRequestInternal unmuteParticipantsRequest, Context context) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return service.unmute(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), - unmuteParticipantsRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context); - } - - /** - * Unmute participants from the call using identifier. - * - * @param callConnectionId The call connection id. - * @param unmuteParticipantsRequest The participants to be unmuted from the call. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response payload for unmuting participants from the call on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono unmuteAsync(String callConnectionId, - UnmuteParticipantsRequestInternal unmuteParticipantsRequest) { - return unmuteWithResponseAsync(callConnectionId, unmuteParticipantsRequest) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Unmute participants from the call using identifier. - * - * @param callConnectionId The call connection id. - * @param unmuteParticipantsRequest The participants to be unmuted from the call. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response payload for unmuting participants from the call on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono unmuteAsync(String callConnectionId, - UnmuteParticipantsRequestInternal unmuteParticipantsRequest, Context context) { - return unmuteWithResponseAsync(callConnectionId, unmuteParticipantsRequest, context) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Unmute participants from the call using identifier. - * - * @param callConnectionId The call connection id. - * @param unmuteParticipantsRequest The participants to be unmuted from the call. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response payload for unmuting participants from the call along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response unmuteWithResponse(String callConnectionId, - UnmuteParticipantsRequestInternal unmuteParticipantsRequest, Context context) { - return unmuteWithResponseAsync(callConnectionId, unmuteParticipantsRequest, context).block(); - } - - /** - * Unmute participants from the call using identifier. - * - * @param callConnectionId The call connection id. - * @param unmuteParticipantsRequest The participants to be unmuted from the call. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response payload for unmuting participants from the call. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public UnmuteParticipantsResponseInternal unmute(String callConnectionId, - UnmuteParticipantsRequestInternal unmuteParticipantsRequest) { - return unmuteWithResponse(callConnectionId, unmuteParticipantsRequest, Context.NONE).getValue(); - } - /** * Cancel add participant operation. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallMediasImpl.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallMediasImpl.java index d0f33c422122..a0696ac44a44 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallMediasImpl.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallMediasImpl.java @@ -7,7 +7,6 @@ import com.azure.communication.callautomation.implementation.models.CommunicationErrorResponseException; import com.azure.communication.callautomation.implementation.models.ContinuousDtmfRecognitionRequestInternal; import com.azure.communication.callautomation.implementation.models.HoldRequest; -import com.azure.communication.callautomation.implementation.models.InterruptAudioAndAnnounceRequest; import com.azure.communication.callautomation.implementation.models.PlayRequest; import com.azure.communication.callautomation.implementation.models.RecognizeRequest; import com.azure.communication.callautomation.implementation.models.SendDtmfTonesRequestInternal; @@ -95,6 +94,14 @@ Mono> stopTranscription(@HostParam("endpoint") String endpoint, @BodyParam("application/json") StopTranscriptionRequestInternal stopTranscriptionRequest, @HeaderParam("Accept") String accept, Context context); + @Post("/calling/callConnections/{callConnectionId}:updateTranscription") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(CommunicationErrorResponseException.class) + Mono> updateTranscription(@HostParam("endpoint") String endpoint, + @PathParam("callConnectionId") String callConnectionId, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") UpdateTranscriptionRequestInternal updateTranscriptionRequest, + @HeaderParam("Accept") String accept, Context context); + @Post("/calling/callConnections/{callConnectionId}:cancelAllMediaOperations") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(CommunicationErrorResponseException.class) @@ -136,14 +143,6 @@ Mono> sendDtmfTones(@HostParam("endpoint") @HeaderParam("repeatability-request-id") String repeatabilityRequestId, @HeaderParam("repeatability-first-sent") String repeatabilityFirstSent, Context context); - @Post("/calling/callConnections/{callConnectionId}:updateTranscription") - @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(CommunicationErrorResponseException.class) - Mono> updateTranscription(@HostParam("endpoint") String endpoint, - @PathParam("callConnectionId") String callConnectionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") UpdateTranscriptionRequestInternal updateTranscriptionRequest, - @HeaderParam("Accept") String accept, Context context); - @Post("/calling/callConnections/{callConnectionId}:hold") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(CommunicationErrorResponseException.class) @@ -175,14 +174,6 @@ Mono> stopMediaStreaming(@HostParam("endpoint") String endpoint, @PathParam("callConnectionId") String callConnectionId, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") StopMediaStreamingRequest stopMediaStreamingRequest, @HeaderParam("Accept") String accept, Context context); - - @Post("/calling/callConnections/{callConnectionId}:interruptAudioAndAnnounce") - @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(CommunicationErrorResponseException.class) - Mono> interruptAudioAndAnnounce(@HostParam("endpoint") String endpoint, - @PathParam("callConnectionId") String callConnectionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") InterruptAudioAndAnnounceRequest interruptRequest, - @HeaderParam("Accept") String accept, Context context); } /** @@ -489,6 +480,122 @@ public void stopTranscription(String callConnectionId, StopTranscriptionRequestI stopTranscriptionWithResponse(callConnectionId, stopTranscriptionRequest, Context.NONE); } + /** + * UpdateTranscription Api. + * + * API to change transcription language. + * + * @param callConnectionId The call connection id. + * @param updateTranscriptionRequest The UpdateTranscription request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws CommunicationErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> updateTranscriptionWithResponseAsync(String callConnectionId, + UpdateTranscriptionRequestInternal updateTranscriptionRequest) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.updateTranscription(this.client.getEndpoint(), callConnectionId, + this.client.getApiVersion(), updateTranscriptionRequest, accept, context)); + } + + /** + * UpdateTranscription Api. + * + * API to change transcription language. + * + * @param callConnectionId The call connection id. + * @param updateTranscriptionRequest The UpdateTranscription request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws CommunicationErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> updateTranscriptionWithResponseAsync(String callConnectionId, + UpdateTranscriptionRequestInternal updateTranscriptionRequest, Context context) { + final String accept = "application/json"; + return service.updateTranscription(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), + updateTranscriptionRequest, accept, context); + } + + /** + * UpdateTranscription Api. + * + * API to change transcription language. + * + * @param callConnectionId The call connection id. + * @param updateTranscriptionRequest The UpdateTranscription request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws CommunicationErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTranscriptionAsync(String callConnectionId, + UpdateTranscriptionRequestInternal updateTranscriptionRequest) { + return updateTranscriptionWithResponseAsync(callConnectionId, updateTranscriptionRequest) + .flatMap(ignored -> Mono.empty()); + } + + /** + * UpdateTranscription Api. + * + * API to change transcription language. + * + * @param callConnectionId The call connection id. + * @param updateTranscriptionRequest The UpdateTranscription request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws CommunicationErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTranscriptionAsync(String callConnectionId, + UpdateTranscriptionRequestInternal updateTranscriptionRequest, Context context) { + return updateTranscriptionWithResponseAsync(callConnectionId, updateTranscriptionRequest, context) + .flatMap(ignored -> Mono.empty()); + } + + /** + * UpdateTranscription Api. + * + * API to change transcription language. + * + * @param callConnectionId The call connection id. + * @param updateTranscriptionRequest The UpdateTranscription request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws CommunicationErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTranscriptionWithResponse(String callConnectionId, + UpdateTranscriptionRequestInternal updateTranscriptionRequest, Context context) { + return updateTranscriptionWithResponseAsync(callConnectionId, updateTranscriptionRequest, context).block(); + } + + /** + * UpdateTranscription Api. + * + * API to change transcription language. + * + * @param callConnectionId The call connection id. + * @param updateTranscriptionRequest The UpdateTranscription request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws CommunicationErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void updateTranscription(String callConnectionId, + UpdateTranscriptionRequestInternal updateTranscriptionRequest) { + updateTranscriptionWithResponse(callConnectionId, updateTranscriptionRequest, Context.NONE); + } + /** * Cancel all media operations in a call. * @@ -997,122 +1104,6 @@ public SendDtmfTonesResultInternal sendDtmfTones(String callConnectionId, return sendDtmfTonesWithResponse(callConnectionId, sendDtmfTonesRequest, Context.NONE).getValue(); } - /** - * UpdateTranscription Api. - * - * API to change transcription language. - * - * @param callConnectionId The call connection id. - * @param updateTranscriptionRequest The UpdateTranscription request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateTranscriptionWithResponseAsync(String callConnectionId, - UpdateTranscriptionRequestInternal updateTranscriptionRequest) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.updateTranscription(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), updateTranscriptionRequest, accept, context)); - } - - /** - * UpdateTranscription Api. - * - * API to change transcription language. - * - * @param callConnectionId The call connection id. - * @param updateTranscriptionRequest The UpdateTranscription request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateTranscriptionWithResponseAsync(String callConnectionId, - UpdateTranscriptionRequestInternal updateTranscriptionRequest, Context context) { - final String accept = "application/json"; - return service.updateTranscription(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), - updateTranscriptionRequest, accept, context); - } - - /** - * UpdateTranscription Api. - * - * API to change transcription language. - * - * @param callConnectionId The call connection id. - * @param updateTranscriptionRequest The UpdateTranscription request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTranscriptionAsync(String callConnectionId, - UpdateTranscriptionRequestInternal updateTranscriptionRequest) { - return updateTranscriptionWithResponseAsync(callConnectionId, updateTranscriptionRequest) - .flatMap(ignored -> Mono.empty()); - } - - /** - * UpdateTranscription Api. - * - * API to change transcription language. - * - * @param callConnectionId The call connection id. - * @param updateTranscriptionRequest The UpdateTranscription request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTranscriptionAsync(String callConnectionId, - UpdateTranscriptionRequestInternal updateTranscriptionRequest, Context context) { - return updateTranscriptionWithResponseAsync(callConnectionId, updateTranscriptionRequest, context) - .flatMap(ignored -> Mono.empty()); - } - - /** - * UpdateTranscription Api. - * - * API to change transcription language. - * - * @param callConnectionId The call connection id. - * @param updateTranscriptionRequest The UpdateTranscription request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTranscriptionWithResponse(String callConnectionId, - UpdateTranscriptionRequestInternal updateTranscriptionRequest, Context context) { - return updateTranscriptionWithResponseAsync(callConnectionId, updateTranscriptionRequest, context).block(); - } - - /** - * UpdateTranscription Api. - * - * API to change transcription language. - * - * @param callConnectionId The call connection id. - * @param updateTranscriptionRequest The UpdateTranscription request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void updateTranscription(String callConnectionId, - UpdateTranscriptionRequestInternal updateTranscriptionRequest) { - updateTranscriptionWithResponse(callConnectionId, updateTranscriptionRequest, Context.NONE); - } - /** * Hold participant from the call using identifier. * @@ -1536,107 +1527,4 @@ public Response stopMediaStreamingWithResponse(String callConnectionId, public void stopMediaStreaming(String callConnectionId, StopMediaStreamingRequest stopMediaStreamingRequest) { stopMediaStreamingWithResponse(callConnectionId, stopMediaStreamingRequest, Context.NONE); } - - /** - * Plays audio to participants in the call. - * - * @param callConnectionId The call connection id. - * @param interruptRequest play request payload. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> interruptAudioAndAnnounceWithResponseAsync(String callConnectionId, - InterruptAudioAndAnnounceRequest interruptRequest) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.interruptAudioAndAnnounce(this.client.getEndpoint(), - callConnectionId, this.client.getApiVersion(), interruptRequest, accept, context)); - } - - /** - * Plays audio to participants in the call. - * - * @param callConnectionId The call connection id. - * @param interruptRequest play request payload. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> interruptAudioAndAnnounceWithResponseAsync(String callConnectionId, - InterruptAudioAndAnnounceRequest interruptRequest, Context context) { - final String accept = "application/json"; - return service.interruptAudioAndAnnounce(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), interruptRequest, accept, context); - } - - /** - * Plays audio to participants in the call. - * - * @param callConnectionId The call connection id. - * @param interruptRequest play request payload. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono interruptAudioAndAnnounceAsync(String callConnectionId, - InterruptAudioAndAnnounceRequest interruptRequest) { - return interruptAudioAndAnnounceWithResponseAsync(callConnectionId, interruptRequest) - .flatMap(ignored -> Mono.empty()); - } - - /** - * Plays audio to participants in the call. - * - * @param callConnectionId The call connection id. - * @param interruptRequest play request payload. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono interruptAudioAndAnnounceAsync(String callConnectionId, - InterruptAudioAndAnnounceRequest interruptRequest, Context context) { - return interruptAudioAndAnnounceWithResponseAsync(callConnectionId, interruptRequest, context) - .flatMap(ignored -> Mono.empty()); - } - - /** - * Plays audio to participants in the call. - * - * @param callConnectionId The call connection id. - * @param interruptRequest play request payload. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response interruptAudioAndAnnounceWithResponse(String callConnectionId, - InterruptAudioAndAnnounceRequest interruptRequest, Context context) { - return interruptAudioAndAnnounceWithResponseAsync(callConnectionId, interruptRequest, context).block(); - } - - /** - * Plays audio to participants in the call. - * - * @param callConnectionId The call connection id. - * @param interruptRequest play request payload. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void interruptAudioAndAnnounce(String callConnectionId, InterruptAudioAndAnnounceRequest interruptRequest) { - interruptAudioAndAnnounceWithResponse(callConnectionId, interruptRequest, Context.NONE); - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallRecordingsImpl.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallRecordingsImpl.java index 574d7c291acd..4e48ba94799d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallRecordingsImpl.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallRecordingsImpl.java @@ -5,7 +5,6 @@ package com.azure.communication.callautomation.implementation; import com.azure.communication.callautomation.implementation.models.CommunicationErrorResponseException; -import com.azure.communication.callautomation.implementation.models.RecordingResultResponse; import com.azure.communication.callautomation.implementation.models.RecordingStateResponseInternal; import com.azure.communication.callautomation.implementation.models.StartCallRecordingRequestInternal; import com.azure.core.annotation.BodyParam; @@ -100,13 +99,6 @@ Mono> pauseRecording(@HostParam("endpoint") String endpoint, Mono> resumeRecording(@HostParam("endpoint") String endpoint, @PathParam("recordingId") String recordingId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Get("/calling/recordings/{recordingId}/result") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(CommunicationErrorResponseException.class) - Mono> getRecordingResult(@HostParam("endpoint") String endpoint, - @PathParam("recordingId") String recordingId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); } /** @@ -574,97 +566,4 @@ public Response resumeRecordingWithResponse(String recordingId, Context co public void resumeRecording(String recordingId) { resumeRecordingWithResponse(recordingId, Context.NONE); } - - /** - * Get recording result. This includes the download URLs for the recording chunks. - * - * @param recordingId The recording id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return recording result along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getRecordingResultWithResponseAsync(String recordingId) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.getRecordingResult(this.client.getEndpoint(), recordingId, - this.client.getApiVersion(), accept, context)); - } - - /** - * Get recording result. This includes the download URLs for the recording chunks. - * - * @param recordingId The recording id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return recording result along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getRecordingResultWithResponseAsync(String recordingId, - Context context) { - final String accept = "application/json"; - return service.getRecordingResult(this.client.getEndpoint(), recordingId, this.client.getApiVersion(), accept, - context); - } - - /** - * Get recording result. This includes the download URLs for the recording chunks. - * - * @param recordingId The recording id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return recording result on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getRecordingResultAsync(String recordingId) { - return getRecordingResultWithResponseAsync(recordingId).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get recording result. This includes the download URLs for the recording chunks. - * - * @param recordingId The recording id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return recording result on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getRecordingResultAsync(String recordingId, Context context) { - return getRecordingResultWithResponseAsync(recordingId, context) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get recording result. This includes the download URLs for the recording chunks. - * - * @param recordingId The recording id. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return recording result along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getRecordingResultWithResponse(String recordingId, Context context) { - return getRecordingResultWithResponseAsync(recordingId, context).block(); - } - - /** - * Get recording result. This includes the download URLs for the recording chunks. - * - * @param recordingId The recording id. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CommunicationErrorResponseException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return recording result. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public RecordingResultResponse getRecordingResult(String recordingId) { - return getRecordingResultWithResponse(recordingId, Context.NONE).getValue(); - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DialogStateResponseConstructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DialogStateResponseConstructorProxy.java deleted file mode 100644 index 82bb62ff8d49..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DialogStateResponseConstructorProxy.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.implementation.accesshelpers; - -import com.azure.communication.callautomation.implementation.models.DialogStateResponse; -import com.azure.communication.callautomation.models.DialogStateResult; - -/** - * Helper class to access private values of {@link DialogStateResult} across package boundaries. - */ -public final class DialogStateResponseConstructorProxy { - private static DialogStateResponseConstructorProxy.DialogStateResponseConstructorAccessor accessor; - - private DialogStateResponseConstructorProxy() { - } - - /** - * Type defining the methods to set the non-public properties of a {@link DialogStateResponseConstructorProxy.DialogStateResponseConstructorAccessor} - * instance. - */ - public interface DialogStateResponseConstructorAccessor { - /** - * Creates a new instance of {@link DialogStateResult} backed by an internal instance of - * {@link DialogStateResult}. - * - * @param internalResponse The internal response. - * @return A new instance of {@link DialogStateResult}. - */ - DialogStateResult create(DialogStateResponse internalResponse); - } - - /** - * The method called from {@link DialogStateResult} to set it's accessor. - * - * @param accessor The accessor. - */ - public static void - setAccessor(final DialogStateResponseConstructorProxy.DialogStateResponseConstructorAccessor accessor) { - DialogStateResponseConstructorProxy.accessor = accessor; - } - - /** - * Creates a new instance of {@link DialogStateResult} backed by an internal instance of - * {@link DialogStateResult}. - * - * @param internalResponse The internal response. - * @return A new instance of {@link DialogStateResult}. - */ - public static DialogStateResult create(DialogStateResponse internalResponse) { - // This looks odd but is necessary, it is possible to engage the access helper before anywhere else in the - // application accesses BlobDownloadHeaders which triggers the accessor to be configured. So, if the accessor - // is null this effectively pokes the class to set up the accessor. - if (accessor == null) { - new DialogStateResult(); - } - - assert accessor != null; - return accessor.create(internalResponse); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/UnmuteParticipantsResponseConstructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/UnmuteParticipantsResponseConstructorProxy.java deleted file mode 100644 index 189449be0e0b..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/UnmuteParticipantsResponseConstructorProxy.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.implementation.accesshelpers; - -import com.azure.communication.callautomation.implementation.models.UnmuteParticipantsResponseInternal; -import com.azure.communication.callautomation.models.UnmuteParticipantResult; - -/** - * Helper class to access private values of {@link UnmuteParticipantResult} across package boundaries. - */ -public final class UnmuteParticipantsResponseConstructorProxy { - private static UnmuteParticipantsResponseConstructorAccessor accessor; - - private UnmuteParticipantsResponseConstructorProxy() { - } - - /** - * Type defining the methods to set the non-public properties of a {@link UnmuteParticipantsResponseConstructorAccessor} - * instance. - */ - public interface UnmuteParticipantsResponseConstructorAccessor { - /** - * Creates a new instance of {@link UnmuteParticipantResult} backed by an internal instance of - * {@link UnmuteParticipantsResponseInternal}. - * - * @param internalResponse The internal response. - * @return A new instance of {@link UnmuteParticipantResult}. - */ - UnmuteParticipantResult create(UnmuteParticipantsResponseInternal internalResponse); - } - - /** - * The method called from {@link UnmuteParticipantResult} to set it's accessor. - * - * @param accessor The accessor. - */ - public static void setAccessor(final UnmuteParticipantsResponseConstructorAccessor accessor) { - UnmuteParticipantsResponseConstructorProxy.accessor = accessor; - } - - /** - * Creates a new instance of {@link UnmuteParticipantResult} backed by an internal instance of - * {@link UnmuteParticipantsResponseInternal}. - * - * @param internalResponse The internal response. - * @return A new instance of {@link UnmuteParticipantResult}. - */ - public static UnmuteParticipantResult create(UnmuteParticipantsResponseInternal internalResponse) { - // This looks odd but is necessary, it is possible to engage the access helper before anywhere else in the - // application accesses BlobDownloadHeaders which triggers the accessor to be configured. So, if the accessor - // is null this effectively pokes the class to set up the accessor. - if (accessor == null) { - new UnmuteParticipantResult(); - } - - assert accessor != null; - return accessor.create(internalResponse); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AnswerCallRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AnswerCallRequestInternal.java index d84415921046..f6c0b8273c2b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AnswerCallRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AnswerCallRequestInternal.java @@ -26,11 +26,6 @@ public final class AnswerCallRequestInternal implements JsonSerializable { /** - * Pcm16KMono. + * Static value pcm16KMono for AudioFormatInternal. */ - public static final AudioFormatInternal PCM_16K_MONO = fromString("Pcm16KMono"); + public static final AudioFormatInternal PCM_16K_MONO = fromString("pcm16KMono"); /** - * Pcm24KMono. + * Static value pcm24KMono for AudioFormatInternal. */ - public static final AudioFormatInternal PCM_24K_MONO = fromString("Pcm24KMono"); + public static final AudioFormatInternal PCM_24K_MONO = fromString("pcm24KMono"); /** * Creates a new instance of AudioFormatInternal value. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionPropertiesInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionPropertiesInternal.java index 7154b494c06d..c4b83ed1cce0 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionPropertiesInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionPropertiesInternal.java @@ -68,16 +68,6 @@ public final class CallConnectionPropertiesInternal implements JsonSerializable< */ private CommunicationUserIdentifierModel answeredBy; - /* - * SubscriptionId for media streaming - */ - private String mediaSubscriptionId; - - /* - * SubscriptionId for transcription - */ - private String dataSubscriptionId; - /* * The state of media streaming subscription for the call */ @@ -306,46 +296,6 @@ public CallConnectionPropertiesInternal setAnsweredBy(CommunicationUserIdentifie return this; } - /** - * Get the mediaSubscriptionId property: SubscriptionId for media streaming. - * - * @return the mediaSubscriptionId value. - */ - public String getMediaSubscriptionId() { - return this.mediaSubscriptionId; - } - - /** - * Set the mediaSubscriptionId property: SubscriptionId for media streaming. - * - * @param mediaSubscriptionId the mediaSubscriptionId value to set. - * @return the CallConnectionPropertiesInternal object itself. - */ - public CallConnectionPropertiesInternal setMediaSubscriptionId(String mediaSubscriptionId) { - this.mediaSubscriptionId = mediaSubscriptionId; - return this; - } - - /** - * Get the dataSubscriptionId property: SubscriptionId for transcription. - * - * @return the dataSubscriptionId value. - */ - public String getDataSubscriptionId() { - return this.dataSubscriptionId; - } - - /** - * Set the dataSubscriptionId property: SubscriptionId for transcription. - * - * @param dataSubscriptionId the dataSubscriptionId value to set. - * @return the CallConnectionPropertiesInternal object itself. - */ - public CallConnectionPropertiesInternal setDataSubscriptionId(String dataSubscriptionId) { - this.dataSubscriptionId = dataSubscriptionId; - return this; - } - /** * Get the mediaStreamingSubscription property: The state of media streaming subscription for the call. * @@ -427,8 +377,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("source", this.source); jsonWriter.writeStringField("correlationId", this.correlationId); jsonWriter.writeJsonField("answeredBy", this.answeredBy); - jsonWriter.writeStringField("mediaSubscriptionId", this.mediaSubscriptionId); - jsonWriter.writeStringField("dataSubscriptionId", this.dataSubscriptionId); jsonWriter.writeJsonField("mediaStreamingSubscription", this.mediaStreamingSubscription); jsonWriter.writeJsonField("transcriptionSubscription", this.transcriptionSubscription); jsonWriter.writeJsonField("answeredFor", this.answeredFor); @@ -476,10 +424,6 @@ public static CallConnectionPropertiesInternal fromJson(JsonReader jsonReader) t } else if ("answeredBy".equals(fieldName)) { deserializedCallConnectionPropertiesInternal.answeredBy = CommunicationUserIdentifierModel.fromJson(reader); - } else if ("mediaSubscriptionId".equals(fieldName)) { - deserializedCallConnectionPropertiesInternal.mediaSubscriptionId = reader.getString(); - } else if ("dataSubscriptionId".equals(fieldName)) { - deserializedCallConnectionPropertiesInternal.dataSubscriptionId = reader.getString(); } else if ("mediaStreamingSubscription".equals(fieldName)) { deserializedCallConnectionPropertiesInternal.mediaStreamingSubscription = MediaStreamingSubscriptionInternal.fromJson(reader); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallIntelligenceOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallIntelligenceOptionsInternal.java index a5f84949726e..3ee92c645bb8 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallIntelligenceOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallIntelligenceOptionsInternal.java @@ -21,11 +21,6 @@ public final class CallIntelligenceOptionsInternal implements JsonSerializable { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingContentTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingContentTypeInternal.java index b3ec6c3eb4ea..31a69696762a 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingContentTypeInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingContentTypeInternal.java @@ -8,7 +8,7 @@ import java.util.Collection; /** - * Content type to stream, eg. audio. + * Defines values for MediaStreamingContentTypeInternal. */ public final class MediaStreamingContentTypeInternal extends ExpandableStringEnum { /** diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java index 6a5901c787d4..664ce84c14e4 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java @@ -12,113 +12,39 @@ import java.io.IOException; /** - * Configuration of Media streaming. + * Options for media streaming. */ @Fluent -public final class MediaStreamingOptionsInternal implements JsonSerializable { +public class MediaStreamingOptionsInternal implements JsonSerializable { /* - * Transport URL for media streaming + * Defines the transport type used for streaming. Note that future values may be introduced that are not currently documented. */ - private String transportUrl; + private StreamingTransportType transportType; /* - * The type of transport to be used for media streaming, eg. Websocket - */ - private MediaStreamingTransportTypeInternal transportType; - - /* - * Content type to stream, eg. audio - */ - private MediaStreamingContentTypeInternal contentType; - - /* - * Audio channel type to stream, eg. unmixed audio, mixed audio + * The audio channel type to stream, e.g., unmixed audio, mixed audio. */ private MediaStreamingAudioChannelTypeInternal audioChannelType; - /* - * Determines if the media streaming should be started immediately after call is answered or not. - */ - private Boolean startMediaStreaming; - - /* - * A value indicating whether bidirectional streaming is enabled. - */ - private Boolean enableBidirectional; - - /* - * Specifies the audio format used for encoding, including sample rate and channel type. - */ - private AudioFormatInternal audioFormat; - /** * Creates an instance of MediaStreamingOptionsInternal class. */ public MediaStreamingOptionsInternal() { + this.transportType = StreamingTransportType.fromString("MediaStreamingOptionsInternal"); } /** - * Get the transportUrl property: Transport URL for media streaming. - * - * @return the transportUrl value. - */ - public String getTransportUrl() { - return this.transportUrl; - } - - /** - * Set the transportUrl property: Transport URL for media streaming. - * - * @param transportUrl the transportUrl value to set. - * @return the MediaStreamingOptionsInternal object itself. - */ - public MediaStreamingOptionsInternal setTransportUrl(String transportUrl) { - this.transportUrl = transportUrl; - return this; - } - - /** - * Get the transportType property: The type of transport to be used for media streaming, eg. Websocket. + * Get the transportType property: Defines the transport type used for streaming. Note that future values may be + * introduced that are not currently documented. * * @return the transportType value. */ - public MediaStreamingTransportTypeInternal getTransportType() { + public StreamingTransportType getTransportType() { return this.transportType; } /** - * Set the transportType property: The type of transport to be used for media streaming, eg. Websocket. - * - * @param transportType the transportType value to set. - * @return the MediaStreamingOptionsInternal object itself. - */ - public MediaStreamingOptionsInternal setTransportType(MediaStreamingTransportTypeInternal transportType) { - this.transportType = transportType; - return this; - } - - /** - * Get the contentType property: Content type to stream, eg. audio. - * - * @return the contentType value. - */ - public MediaStreamingContentTypeInternal getContentType() { - return this.contentType; - } - - /** - * Set the contentType property: Content type to stream, eg. audio. - * - * @param contentType the contentType value to set. - * @return the MediaStreamingOptionsInternal object itself. - */ - public MediaStreamingOptionsInternal setContentType(MediaStreamingContentTypeInternal contentType) { - this.contentType = contentType; - return this; - } - - /** - * Get the audioChannelType property: Audio channel type to stream, eg. unmixed audio, mixed audio. + * Get the audioChannelType property: The audio channel type to stream, e.g., unmixed audio, mixed audio. * * @return the audioChannelType value. */ @@ -127,7 +53,7 @@ public MediaStreamingAudioChannelTypeInternal getAudioChannelType() { } /** - * Set the audioChannelType property: Audio channel type to stream, eg. unmixed audio, mixed audio. + * Set the audioChannelType property: The audio channel type to stream, e.g., unmixed audio, mixed audio. * * @param audioChannelType the audioChannelType value to set. * @return the MediaStreamingOptionsInternal object itself. @@ -137,84 +63,15 @@ public MediaStreamingOptionsInternal setAudioChannelType(MediaStreamingAudioChan return this; } - /** - * Get the startMediaStreaming property: Determines if the media streaming should be started immediately after call - * is answered or not. - * - * @return the startMediaStreaming value. - */ - public Boolean isStartMediaStreaming() { - return this.startMediaStreaming; - } - - /** - * Set the startMediaStreaming property: Determines if the media streaming should be started immediately after call - * is answered or not. - * - * @param startMediaStreaming the startMediaStreaming value to set. - * @return the MediaStreamingOptionsInternal object itself. - */ - public MediaStreamingOptionsInternal setStartMediaStreaming(Boolean startMediaStreaming) { - this.startMediaStreaming = startMediaStreaming; - return this; - } - - /** - * Get the enableBidirectional property: A value indicating whether bidirectional streaming is enabled. - * - * @return the enableBidirectional value. - */ - public Boolean isEnableBidirectional() { - return this.enableBidirectional; - } - - /** - * Set the enableBidirectional property: A value indicating whether bidirectional streaming is enabled. - * - * @param enableBidirectional the enableBidirectional value to set. - * @return the MediaStreamingOptionsInternal object itself. - */ - public MediaStreamingOptionsInternal setEnableBidirectional(Boolean enableBidirectional) { - this.enableBidirectional = enableBidirectional; - return this; - } - - /** - * Get the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel - * type. - * - * @return the audioFormat value. - */ - public AudioFormatInternal getAudioFormat() { - return this.audioFormat; - } - - /** - * Set the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel - * type. - * - * @param audioFormat the audioFormat value to set. - * @return the MediaStreamingOptionsInternal object itself. - */ - public MediaStreamingOptionsInternal setAudioFormat(AudioFormatInternal audioFormat) { - this.audioFormat = audioFormat; - return this; - } - /** * {@inheritDoc} */ @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("transportUrl", this.transportUrl); - jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString()); - jsonWriter.writeStringField("contentType", this.contentType == null ? null : this.contentType.toString()); jsonWriter.writeStringField("audioChannelType", this.audioChannelType == null ? null : this.audioChannelType.toString()); - jsonWriter.writeBooleanField("startMediaStreaming", this.startMediaStreaming); - jsonWriter.writeBooleanField("enableBidirectional", this.enableBidirectional); - jsonWriter.writeStringField("audioFormat", this.audioFormat == null ? null : this.audioFormat.toString()); + jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString()); return jsonWriter.writeEndObject(); } @@ -228,6 +85,31 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IOException If an error occurs while reading the MediaStreamingOptionsInternal. */ public static MediaStreamingOptionsInternal fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("transportType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("websocket".equals(discriminatorValue)) { + return WebSocketMediaStreamingOptionsInternal.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static MediaStreamingOptionsInternal fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { MediaStreamingOptionsInternal deserializedMediaStreamingOptionsInternal = new MediaStreamingOptionsInternal(); @@ -235,26 +117,12 @@ public static MediaStreamingOptionsInternal fromJson(JsonReader jsonReader) thro String fieldName = reader.getFieldName(); reader.nextToken(); - if ("transportUrl".equals(fieldName)) { - deserializedMediaStreamingOptionsInternal.transportUrl = reader.getString(); - } else if ("transportType".equals(fieldName)) { - deserializedMediaStreamingOptionsInternal.transportType - = MediaStreamingTransportTypeInternal.fromString(reader.getString()); - } else if ("contentType".equals(fieldName)) { - deserializedMediaStreamingOptionsInternal.contentType - = MediaStreamingContentTypeInternal.fromString(reader.getString()); - } else if ("audioChannelType".equals(fieldName)) { + if ("audioChannelType".equals(fieldName)) { deserializedMediaStreamingOptionsInternal.audioChannelType = MediaStreamingAudioChannelTypeInternal.fromString(reader.getString()); - } else if ("startMediaStreaming".equals(fieldName)) { - deserializedMediaStreamingOptionsInternal.startMediaStreaming - = reader.getNullable(JsonReader::getBoolean); - } else if ("enableBidirectional".equals(fieldName)) { - deserializedMediaStreamingOptionsInternal.enableBidirectional - = reader.getNullable(JsonReader::getBoolean); - } else if ("audioFormat".equals(fieldName)) { - deserializedMediaStreamingOptionsInternal.audioFormat - = AudioFormatInternal.fromString(reader.getString()); + } else if ("transportType".equals(fieldName)) { + deserializedMediaStreamingOptionsInternal.transportType + = StreamingTransportType.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayOptionsInternal.java index 3270d9e10960..0fba42db686e 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayOptionsInternal.java @@ -21,16 +21,6 @@ public final class PlayOptionsInternal implements JsonSerializable { */ private List playTo; + /* + * If set play can barge into other existing queued-up/currently-processing requests. + */ + private Boolean interruptCallMediaOperation; + /* * Defines options for playing the audio. */ @@ -92,6 +97,28 @@ public PlayRequest setPlayTo(List playTo) { return this; } + /** + * Get the interruptCallMediaOperation property: If set play can barge into other existing + * queued-up/currently-processing requests. + * + * @return the interruptCallMediaOperation value. + */ + public Boolean isInterruptCallMediaOperation() { + return this.interruptCallMediaOperation; + } + + /** + * Set the interruptCallMediaOperation property: If set play can barge into other existing + * queued-up/currently-processing requests. + * + * @param interruptCallMediaOperation the interruptCallMediaOperation value to set. + * @return the PlayRequest object itself. + */ + public PlayRequest setInterruptCallMediaOperation(Boolean interruptCallMediaOperation) { + this.interruptCallMediaOperation = interruptCallMediaOperation; + return this; + } + /** * Get the playOptions property: Defines options for playing the audio. * @@ -164,6 +191,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("playSources", this.playSources, (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("playTo", this.playTo, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeBooleanField("interruptCallMediaOperation", this.interruptCallMediaOperation); jsonWriter.writeJsonField("playOptions", this.playOptions); jsonWriter.writeStringField("operationContext", this.operationContext); jsonWriter.writeStringField("operationCallbackUri", this.operationCallbackUri); @@ -194,6 +222,8 @@ public static PlayRequest fromJson(JsonReader jsonReader) throws IOException { List playTo = reader.readArray(reader1 -> CommunicationIdentifierModel.fromJson(reader1)); deserializedPlayRequest.playTo = playTo; + } else if ("interruptCallMediaOperation".equals(fieldName)) { + deserializedPlayRequest.interruptCallMediaOperation = reader.getNullable(JsonReader::getBoolean); } else if ("playOptions".equals(fieldName)) { deserializedPlayRequest.playOptions = PlayOptionsInternal.fromJson(reader); } else if ("operationContext".equals(fieldName)) { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RedirectCallRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RedirectCallRequestInternal.java index 406e2f39ec9b..8fe85bf39e87 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RedirectCallRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RedirectCallRequestInternal.java @@ -26,11 +26,6 @@ public final class RedirectCallRequestInternal implements JsonSerializable { /* - * The call locator. (Only one of callLocator or callConnectionId to be used) + * The call locator. */ private CallLocatorInternal callLocator; - /* - * The call connectionId. (Only one of callLocator or callConnectionId to be used) - */ - private String callConnectionId; - /* * The uri to send notifications to. */ @@ -80,7 +75,7 @@ public StartCallRecordingRequestInternal() { } /** - * Get the callLocator property: The call locator. (Only one of callLocator or callConnectionId to be used). + * Get the callLocator property: The call locator. * * @return the callLocator value. */ @@ -89,7 +84,7 @@ public CallLocatorInternal getCallLocator() { } /** - * Set the callLocator property: The call locator. (Only one of callLocator or callConnectionId to be used). + * Set the callLocator property: The call locator. * * @param callLocator the callLocator value to set. * @return the StartCallRecordingRequestInternal object itself. @@ -99,28 +94,6 @@ public StartCallRecordingRequestInternal setCallLocator(CallLocatorInternal call return this; } - /** - * Get the callConnectionId property: The call connectionId. (Only one of callLocator or callConnectionId to be - * used). - * - * @return the callConnectionId value. - */ - public String getCallConnectionId() { - return this.callConnectionId; - } - - /** - * Set the callConnectionId property: The call connectionId. (Only one of callLocator or callConnectionId to be - * used). - * - * @param callConnectionId the callConnectionId value to set. - * @return the StartCallRecordingRequestInternal object itself. - */ - public StartCallRecordingRequestInternal setCallConnectionId(String callConnectionId) { - this.callConnectionId = callConnectionId; - return this; - } - /** * Get the recordingStateCallbackUri property: The uri to send notifications to. * @@ -305,7 +278,6 @@ public StartCallRecordingRequestInternal setExternalStorage(RecordingStorageInte public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("callLocator", this.callLocator); - jsonWriter.writeStringField("callConnectionId", this.callConnectionId); jsonWriter.writeStringField("recordingStateCallbackUri", this.recordingStateCallbackUri); jsonWriter.writeStringField("recordingContentType", this.recordingContentType == null ? null : this.recordingContentType.toString()); @@ -328,6 +300,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of StartCallRecordingRequestInternal if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the StartCallRecordingRequestInternal. */ public static StartCallRecordingRequestInternal fromJson(JsonReader jsonReader) throws IOException { @@ -340,8 +313,6 @@ public static StartCallRecordingRequestInternal fromJson(JsonReader jsonReader) if ("callLocator".equals(fieldName)) { deserializedStartCallRecordingRequestInternal.callLocator = CallLocatorInternal.fromJson(reader); - } else if ("callConnectionId".equals(fieldName)) { - deserializedStartCallRecordingRequestInternal.callConnectionId = reader.getString(); } else if ("recordingStateCallbackUri".equals(fieldName)) { deserializedStartCallRecordingRequestInternal.recordingStateCallbackUri = reader.getString(); } else if ("recordingContentType".equals(fieldName)) { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartTranscriptionRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartTranscriptionRequestInternal.java index 4a882459472d..4e15b19b26e2 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartTranscriptionRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartTranscriptionRequestInternal.java @@ -17,14 +17,14 @@ @Fluent public final class StartTranscriptionRequestInternal implements JsonSerializable { /* - * Defines Locale for the transcription e,g en-US + * Specifies the Locale used for transcription, e.g., en-CA or en-AU. */ private String locale; /* - * Endpoint where the custom model was deployed. + * The ID of the deployed custom model in GUID format. The GUID is generated by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. */ - private String speechRecognitionModelEndpointId; + private String speechModelEndpointId; /* * The value to identify context of the operation. @@ -44,7 +44,7 @@ public StartTranscriptionRequestInternal() { } /** - * Get the locale property: Defines Locale for the transcription e,g en-US. + * Get the locale property: Specifies the Locale used for transcription, e.g., en-CA or en-AU. * * @return the locale value. */ @@ -53,7 +53,7 @@ public String getLocale() { } /** - * Set the locale property: Defines Locale for the transcription e,g en-US. + * Set the locale property: Specifies the Locale used for transcription, e.g., en-CA or en-AU. * * @param locale the locale value to set. * @return the StartTranscriptionRequestInternal object itself. @@ -64,23 +64,24 @@ public StartTranscriptionRequestInternal setLocale(String locale) { } /** - * Get the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed. + * Get the speechModelEndpointId property: The ID of the deployed custom model in GUID format. The GUID is generated + * by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. * - * @return the speechRecognitionModelEndpointId value. + * @return the speechModelEndpointId value. */ - public String getSpeechRecognitionModelEndpointId() { - return this.speechRecognitionModelEndpointId; + public String getSpeechModelEndpointId() { + return this.speechModelEndpointId; } /** - * Set the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed. + * Set the speechModelEndpointId property: The ID of the deployed custom model in GUID format. The GUID is generated + * by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. * - * @param speechRecognitionModelEndpointId the speechRecognitionModelEndpointId value to set. + * @param speechModelEndpointId the speechModelEndpointId value to set. * @return the StartTranscriptionRequestInternal object itself. */ - public StartTranscriptionRequestInternal - setSpeechRecognitionModelEndpointId(String speechRecognitionModelEndpointId) { - this.speechRecognitionModelEndpointId = speechRecognitionModelEndpointId; + public StartTranscriptionRequestInternal setSpeechModelEndpointId(String speechModelEndpointId) { + this.speechModelEndpointId = speechModelEndpointId; return this; } @@ -135,7 +136,7 @@ public StartTranscriptionRequestInternal setOperationCallbackUri(String operatio public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("locale", this.locale); - jsonWriter.writeStringField("speechRecognitionModelEndpointId", this.speechRecognitionModelEndpointId); + jsonWriter.writeStringField("speechModelEndpointId", this.speechModelEndpointId); jsonWriter.writeStringField("operationContext", this.operationContext); jsonWriter.writeStringField("operationCallbackUri", this.operationCallbackUri); return jsonWriter.writeEndObject(); @@ -159,8 +160,8 @@ public static StartTranscriptionRequestInternal fromJson(JsonReader jsonReader) if ("locale".equals(fieldName)) { deserializedStartTranscriptionRequestInternal.locale = reader.getString(); - } else if ("speechRecognitionModelEndpointId".equals(fieldName)) { - deserializedStartTranscriptionRequestInternal.speechRecognitionModelEndpointId = reader.getString(); + } else if ("speechModelEndpointId".equals(fieldName)) { + deserializedStartTranscriptionRequestInternal.speechModelEndpointId = reader.getString(); } else if ("operationContext".equals(fieldName)) { deserializedStartTranscriptionRequestInternal.operationContext = reader.getString(); } else if ("operationCallbackUri".equals(fieldName)) { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportType.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportType.java new file mode 100644 index 000000000000..0837ae91d9a1 --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportType.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.communication.callautomation.implementation.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Defines the transport type used for streaming. Note that future values may be introduced that are not currently + * documented. + */ +public final class StreamingTransportType extends ExpandableStringEnum { + /** + * Static value websocket for StreamingTransportType. + */ + public static final StreamingTransportType WEBSOCKET = fromString("websocket"); + + /** + * Creates a new instance of StreamingTransportType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public StreamingTransportType() { + } + + /** + * Creates or finds a StreamingTransportType from its string representation. + * + * @param name a name to look for. + * @return the corresponding StreamingTransportType. + */ + public static StreamingTransportType fromString(String name) { + return fromString(name, StreamingTransportType.class); + } + + /** + * Gets known StreamingTransportType values. + * + * @return known StreamingTransportType values. + */ + public static Collection values() { + return values(StreamingTransportType.class); + } +} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java index 1d21508b62cb..1cea85d9e89c 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java @@ -12,88 +12,39 @@ import java.io.IOException; /** - * Configuration of live transcription. + * Options for live transcription. */ @Fluent -public final class TranscriptionOptionsInternal implements JsonSerializable { +public class TranscriptionOptionsInternal implements JsonSerializable { /* - * Transport URL for live transcription + * Defines the transport type used for streaming. Note that future values may be introduced that are not currently documented. */ - private String transportUrl; + private StreamingTransportType transportType; /* - * The type of transport to be used for live transcription, eg. Websocket - */ - private TranscriptionTransportTypeInternal transportType; - - /* - * Defines the locale for the data e.g en-CA, en-AU + * Specifies the Locale used for transcription, e.g., en-CA or en-AU. */ private String locale; - /* - * Endpoint where the custom model was deployed. - */ - private String speechRecognitionModelEndpointId; - - /* - * Determines if the transcription should be started immediately after call is answered or not. - */ - private boolean startTranscription; - - /* - * Enables intermediate results for the transcribed speech. - */ - private Boolean enableIntermediateResults; - /** * Creates an instance of TranscriptionOptionsInternal class. */ public TranscriptionOptionsInternal() { + this.transportType = StreamingTransportType.fromString("TranscriptionOptionsInternal"); } /** - * Get the transportUrl property: Transport URL for live transcription. - * - * @return the transportUrl value. - */ - public String getTransportUrl() { - return this.transportUrl; - } - - /** - * Set the transportUrl property: Transport URL for live transcription. - * - * @param transportUrl the transportUrl value to set. - * @return the TranscriptionOptionsInternal object itself. - */ - public TranscriptionOptionsInternal setTransportUrl(String transportUrl) { - this.transportUrl = transportUrl; - return this; - } - - /** - * Get the transportType property: The type of transport to be used for live transcription, eg. Websocket. + * Get the transportType property: Defines the transport type used for streaming. Note that future values may be + * introduced that are not currently documented. * * @return the transportType value. */ - public TranscriptionTransportTypeInternal getTransportType() { + public StreamingTransportType getTransportType() { return this.transportType; } /** - * Set the transportType property: The type of transport to be used for live transcription, eg. Websocket. - * - * @param transportType the transportType value to set. - * @return the TranscriptionOptionsInternal object itself. - */ - public TranscriptionOptionsInternal setTransportType(TranscriptionTransportTypeInternal transportType) { - this.transportType = transportType; - return this; - } - - /** - * Get the locale property: Defines the locale for the data e.g en-CA, en-AU. + * Get the locale property: Specifies the Locale used for transcription, e.g., en-CA or en-AU. * * @return the locale value. */ @@ -102,7 +53,7 @@ public String getLocale() { } /** - * Set the locale property: Defines the locale for the data e.g en-CA, en-AU. + * Set the locale property: Specifies the Locale used for transcription, e.g., en-CA or en-AU. * * @param locale the locale value to set. * @return the TranscriptionOptionsInternal object itself. @@ -112,80 +63,14 @@ public TranscriptionOptionsInternal setLocale(String locale) { return this; } - /** - * Get the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed. - * - * @return the speechRecognitionModelEndpointId value. - */ - public String getSpeechRecognitionModelEndpointId() { - return this.speechRecognitionModelEndpointId; - } - - /** - * Set the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed. - * - * @param speechRecognitionModelEndpointId the speechRecognitionModelEndpointId value to set. - * @return the TranscriptionOptionsInternal object itself. - */ - public TranscriptionOptionsInternal setSpeechRecognitionModelEndpointId(String speechRecognitionModelEndpointId) { - this.speechRecognitionModelEndpointId = speechRecognitionModelEndpointId; - return this; - } - - /** - * Get the startTranscription property: Determines if the transcription should be started immediately after call is - * answered or not. - * - * @return the startTranscription value. - */ - public boolean isStartTranscription() { - return this.startTranscription; - } - - /** - * Set the startTranscription property: Determines if the transcription should be started immediately after call is - * answered or not. - * - * @param startTranscription the startTranscription value to set. - * @return the TranscriptionOptionsInternal object itself. - */ - public TranscriptionOptionsInternal setStartTranscription(boolean startTranscription) { - this.startTranscription = startTranscription; - return this; - } - - /** - * Get the enableIntermediateResults property: Enables intermediate results for the transcribed speech. - * - * @return the enableIntermediateResults value. - */ - public Boolean isEnableIntermediateResults() { - return this.enableIntermediateResults; - } - - /** - * Set the enableIntermediateResults property: Enables intermediate results for the transcribed speech. - * - * @param enableIntermediateResults the enableIntermediateResults value to set. - * @return the TranscriptionOptionsInternal object itself. - */ - public TranscriptionOptionsInternal setEnableIntermediateResults(Boolean enableIntermediateResults) { - this.enableIntermediateResults = enableIntermediateResults; - return this; - } - /** * {@inheritDoc} */ @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("transportUrl", this.transportUrl); - jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString()); jsonWriter.writeStringField("locale", this.locale); - jsonWriter.writeBooleanField("startTranscription", this.startTranscription); - jsonWriter.writeStringField("speechRecognitionModelEndpointId", this.speechRecognitionModelEndpointId); - jsonWriter.writeBooleanField("enableIntermediateResults", this.enableIntermediateResults); + jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString()); return jsonWriter.writeEndObject(); } @@ -199,26 +84,42 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IOException If an error occurs while reading the TranscriptionOptionsInternal. */ public static TranscriptionOptionsInternal fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("transportType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("websocket".equals(discriminatorValue)) { + return WebSocketTranscriptionOptionsInternal.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static TranscriptionOptionsInternal fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { TranscriptionOptionsInternal deserializedTranscriptionOptionsInternal = new TranscriptionOptionsInternal(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); - if ("transportUrl".equals(fieldName)) { - deserializedTranscriptionOptionsInternal.transportUrl = reader.getString(); + if ("locale".equals(fieldName)) { + deserializedTranscriptionOptionsInternal.locale = reader.getString(); } else if ("transportType".equals(fieldName)) { deserializedTranscriptionOptionsInternal.transportType - = TranscriptionTransportTypeInternal.fromString(reader.getString()); - } else if ("locale".equals(fieldName)) { - deserializedTranscriptionOptionsInternal.locale = reader.getString(); - } else if ("startTranscription".equals(fieldName)) { - deserializedTranscriptionOptionsInternal.startTranscription = reader.getBoolean(); - } else if ("speechRecognitionModelEndpointId".equals(fieldName)) { - deserializedTranscriptionOptionsInternal.speechRecognitionModelEndpointId = reader.getString(); - } else if ("enableIntermediateResults".equals(fieldName)) { - deserializedTranscriptionOptionsInternal.enableIntermediateResults - = reader.getNullable(JsonReader::getBoolean); + = StreamingTransportType.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionInternal.java index 755e31111401..b88e925c1a7b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionInternal.java @@ -32,6 +32,11 @@ public final class TranscriptionSubscriptionInternal implements JsonSerializable */ private List subscribedResultTypes; + /* + * Specifies the locale used for transcription, e.g., en-CA or en-AU. + */ + private String locale; + /** * Creates an instance of TranscriptionSubscriptionInternal class. */ @@ -99,6 +104,26 @@ public List getSubscribedResultTypes() { return this; } + /** + * Get the locale property: Specifies the locale used for transcription, e.g., en-CA or en-AU. + * + * @return the locale value. + */ + public String getLocale() { + return this.locale; + } + + /** + * Set the locale property: Specifies the locale used for transcription, e.g., en-CA or en-AU. + * + * @param locale the locale value to set. + * @return the TranscriptionSubscriptionInternal object itself. + */ + public TranscriptionSubscriptionInternal setLocale(String locale) { + this.locale = locale; + return this; + } + /** * {@inheritDoc} */ @@ -109,6 +134,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); jsonWriter.writeArrayField("subscribedResultTypes", this.subscribedResultTypes, (writer, element) -> writer.writeString(element == null ? null : element.toString())); + jsonWriter.writeStringField("locale", this.locale); return jsonWriter.writeEndObject(); } @@ -137,6 +163,8 @@ public static TranscriptionSubscriptionInternal fromJson(JsonReader jsonReader) List subscribedResultTypes = reader.readArray(reader1 -> TranscriptionResultTypeInternal.fromString(reader1.getString())); deserializedTranscriptionSubscriptionInternal.subscribedResultTypes = subscribedResultTypes; + } else if ("locale".equals(fieldName)) { + deserializedTranscriptionSubscriptionInternal.locale = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnholdRequest.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnholdRequest.java index e4e051b2d165..bfe55fc2401a 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnholdRequest.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnholdRequest.java @@ -27,6 +27,12 @@ public final class UnholdRequest implements JsonSerializable { */ private String operationContext; + /* + * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. + * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. + */ + private String operationCallbackUri; + /** * Creates an instance of UnholdRequest class. */ @@ -77,6 +83,30 @@ public UnholdRequest setOperationContext(String operationContext) { return this; } + /** + * Get the operationCallbackUri property: Set a callback URI that overrides the default callback URI set by + * CreateCall/AnswerCall for this operation. + * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. + * + * @return the operationCallbackUri value. + */ + public String getOperationCallbackUri() { + return this.operationCallbackUri; + } + + /** + * Set the operationCallbackUri property: Set a callback URI that overrides the default callback URI set by + * CreateCall/AnswerCall for this operation. + * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. + * + * @param operationCallbackUri the operationCallbackUri value to set. + * @return the UnholdRequest object itself. + */ + public UnholdRequest setOperationCallbackUri(String operationCallbackUri) { + this.operationCallbackUri = operationCallbackUri; + return this; + } + /** * {@inheritDoc} */ @@ -85,6 +115,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("targetParticipant", this.targetParticipant); jsonWriter.writeStringField("operationContext", this.operationContext); + jsonWriter.writeStringField("operationCallbackUri", this.operationCallbackUri); return jsonWriter.writeEndObject(); } @@ -108,6 +139,8 @@ public static UnholdRequest fromJson(JsonReader jsonReader) throws IOException { deserializedUnholdRequest.targetParticipant = CommunicationIdentifierModel.fromJson(reader); } else if ("operationContext".equals(fieldName)) { deserializedUnholdRequest.operationContext = reader.getString(); + } else if ("operationCallbackUri".equals(fieldName)) { + deserializedUnholdRequest.operationCallbackUri = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UpdateTranscriptionRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UpdateTranscriptionRequestInternal.java index 3cde00350b30..24f9861f4210 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UpdateTranscriptionRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UpdateTranscriptionRequestInternal.java @@ -17,14 +17,14 @@ @Fluent public final class UpdateTranscriptionRequestInternal implements JsonSerializable { /* - * Defines new locale for transcription. + * Specifies the Locale used for transcription, e.g., en-CA or en-AU. */ private String locale; /* - * Sets Endpoint id where the custom model was deployed. + * The ID of the deployed custom model, in GUID format, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. */ - private String speechRecognitionModelEndpointId; + private String speechModelEndpointId; /* * The value to identify context of the operation. @@ -44,7 +44,7 @@ public UpdateTranscriptionRequestInternal() { } /** - * Get the locale property: Defines new locale for transcription. + * Get the locale property: Specifies the Locale used for transcription, e.g., en-CA or en-AU. * * @return the locale value. */ @@ -53,7 +53,7 @@ public String getLocale() { } /** - * Set the locale property: Defines new locale for transcription. + * Set the locale property: Specifies the Locale used for transcription, e.g., en-CA or en-AU. * * @param locale the locale value to set. * @return the UpdateTranscriptionRequestInternal object itself. @@ -64,23 +64,24 @@ public UpdateTranscriptionRequestInternal setLocale(String locale) { } /** - * Get the speechRecognitionModelEndpointId property: Sets Endpoint id where the custom model was deployed. + * Get the speechModelEndpointId property: The ID of the deployed custom model, in GUID format, e.g., + * a259c255-1cdw-4ed7-a693-dd58563b6f6a. * - * @return the speechRecognitionModelEndpointId value. + * @return the speechModelEndpointId value. */ - public String getSpeechRecognitionModelEndpointId() { - return this.speechRecognitionModelEndpointId; + public String getSpeechModelEndpointId() { + return this.speechModelEndpointId; } /** - * Set the speechRecognitionModelEndpointId property: Sets Endpoint id where the custom model was deployed. + * Set the speechModelEndpointId property: The ID of the deployed custom model, in GUID format, e.g., + * a259c255-1cdw-4ed7-a693-dd58563b6f6a. * - * @param speechRecognitionModelEndpointId the speechRecognitionModelEndpointId value to set. + * @param speechModelEndpointId the speechModelEndpointId value to set. * @return the UpdateTranscriptionRequestInternal object itself. */ - public UpdateTranscriptionRequestInternal - setSpeechRecognitionModelEndpointId(String speechRecognitionModelEndpointId) { - this.speechRecognitionModelEndpointId = speechRecognitionModelEndpointId; + public UpdateTranscriptionRequestInternal setSpeechModelEndpointId(String speechModelEndpointId) { + this.speechModelEndpointId = speechModelEndpointId; return this; } @@ -135,7 +136,7 @@ public UpdateTranscriptionRequestInternal setOperationCallbackUri(String operati public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("locale", this.locale); - jsonWriter.writeStringField("speechRecognitionModelEndpointId", this.speechRecognitionModelEndpointId); + jsonWriter.writeStringField("speechModelEndpointId", this.speechModelEndpointId); jsonWriter.writeStringField("operationContext", this.operationContext); jsonWriter.writeStringField("operationCallbackUri", this.operationCallbackUri); return jsonWriter.writeEndObject(); @@ -147,7 +148,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of UpdateTranscriptionRequestInternal if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the UpdateTranscriptionRequestInternal. */ public static UpdateTranscriptionRequestInternal fromJson(JsonReader jsonReader) throws IOException { @@ -160,9 +160,8 @@ public static UpdateTranscriptionRequestInternal fromJson(JsonReader jsonReader) if ("locale".equals(fieldName)) { deserializedUpdateTranscriptionRequestInternal.locale = reader.getString(); - } else if ("speechRecognitionModelEndpointId".equals(fieldName)) { - deserializedUpdateTranscriptionRequestInternal.speechRecognitionModelEndpointId - = reader.getString(); + } else if ("speechModelEndpointId".equals(fieldName)) { + deserializedUpdateTranscriptionRequestInternal.speechModelEndpointId = reader.getString(); } else if ("operationContext".equals(fieldName)) { deserializedUpdateTranscriptionRequestInternal.operationContext = reader.getString(); } else if ("operationCallbackUri".equals(fieldName)) { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptions.java new file mode 100644 index 000000000000..91f9f15c6121 --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptions.java @@ -0,0 +1,269 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.communication.callautomation.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Represents the options for WebSocket transport. + */ +@Fluent +public final class WebSocketMediaStreamingOptions extends MediaStreamingOptionsInternal { + /* + * Defines the transport type used for streaming. Note that future values may be introduced that are not currently documented. + */ + private StreamingTransportType transportType = StreamingTransportType.WEBSOCKET; + + /* + * The transport URL for media streaming. + */ + private String transportUrl; + + /* + * The contentType property. + */ + private MediaStreamingContentTypeInternal contentType; + + /* + * A value indicating whether the media streaming should start immediately after the call is answered. + */ + private Boolean startMediaStreaming; + + /* + * A value indicating whether bidirectional streaming is enabled. + */ + private Boolean enableBidirectional; + + /* + * The audio format used for encoding, including sample rate and channel type. The default is Pcm16KMono. + */ + private AudioFormatInternal audioFormat; + + /* + * A value that indicates whether to stream the DTMF tones. + */ + private Boolean enableDtmfTones; + + /** + * Creates an instance of WebSocketMediaStreamingOptions class. + */ + public WebSocketMediaStreamingOptions() { + } + + /** + * Get the transportType property: Defines the transport type used for streaming. Note that future values may be + * introduced that are not currently documented. + * + * @return the transportType value. + */ + @Override + public StreamingTransportType getTransportType() { + return this.transportType; + } + + /** + * Get the transportUrl property: The transport URL for media streaming. + * + * @return the transportUrl value. + */ + public String getTransportUrl() { + return this.transportUrl; + } + + /** + * Set the transportUrl property: The transport URL for media streaming. + * + * @param transportUrl the transportUrl value to set. + * @return the WebSocketMediaStreamingOptions object itself. + */ + public WebSocketMediaStreamingOptions setTransportUrl(String transportUrl) { + this.transportUrl = transportUrl; + return this; + } + + /** + * Get the contentType property: The contentType property. + * + * @return the contentType value. + */ + public MediaStreamingContentTypeInternal getContentType() { + return this.contentType; + } + + /** + * Set the contentType property: The contentType property. + * + * @param contentType the contentType value to set. + * @return the WebSocketMediaStreamingOptions object itself. + */ + public WebSocketMediaStreamingOptions setContentType(MediaStreamingContentTypeInternal contentType) { + this.contentType = contentType; + return this; + } + + /** + * Get the startMediaStreaming property: A value indicating whether the media streaming should start immediately + * after the call is answered. + * + * @return the startMediaStreaming value. + */ + public Boolean isStartMediaStreaming() { + return this.startMediaStreaming; + } + + /** + * Set the startMediaStreaming property: A value indicating whether the media streaming should start immediately + * after the call is answered. + * + * @param startMediaStreaming the startMediaStreaming value to set. + * @return the WebSocketMediaStreamingOptions object itself. + */ + public WebSocketMediaStreamingOptions setStartMediaStreaming(Boolean startMediaStreaming) { + this.startMediaStreaming = startMediaStreaming; + return this; + } + + /** + * Get the enableBidirectional property: A value indicating whether bidirectional streaming is enabled. + * + * @return the enableBidirectional value. + */ + public Boolean isEnableBidirectional() { + return this.enableBidirectional; + } + + /** + * Set the enableBidirectional property: A value indicating whether bidirectional streaming is enabled. + * + * @param enableBidirectional the enableBidirectional value to set. + * @return the WebSocketMediaStreamingOptions object itself. + */ + public WebSocketMediaStreamingOptions setEnableBidirectional(Boolean enableBidirectional) { + this.enableBidirectional = enableBidirectional; + return this; + } + + /** + * Get the audioFormat property: The audio format used for encoding, including sample rate and channel type. The + * default is Pcm16KMono. + * + * @return the audioFormat value. + */ + public AudioFormatInternal getAudioFormat() { + return this.audioFormat; + } + + /** + * Set the audioFormat property: The audio format used for encoding, including sample rate and channel type. The + * default is Pcm16KMono. + * + * @param audioFormat the audioFormat value to set. + * @return the WebSocketMediaStreamingOptions object itself. + */ + public WebSocketMediaStreamingOptions setAudioFormat(AudioFormatInternal audioFormat) { + this.audioFormat = audioFormat; + return this; + } + + /** + * Get the enableDtmfTones property: A value that indicates whether to stream the DTMF tones. + * + * @return the enableDtmfTones value. + */ + public Boolean isEnableDtmfTones() { + return this.enableDtmfTones; + } + + /** + * Set the enableDtmfTones property: A value that indicates whether to stream the DTMF tones. + * + * @param enableDtmfTones the enableDtmfTones value to set. + * @return the WebSocketMediaStreamingOptions object itself. + */ + public WebSocketMediaStreamingOptions setEnableDtmfTones(Boolean enableDtmfTones) { + this.enableDtmfTones = enableDtmfTones; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public WebSocketMediaStreamingOptions setAudioChannelType(MediaStreamingAudioChannelTypeInternal audioChannelType) { + super.setAudioChannelType(audioChannelType); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("audioChannelType", + getAudioChannelType() == null ? null : getAudioChannelType().toString()); + jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString()); + jsonWriter.writeStringField("transportUrl", this.transportUrl); + jsonWriter.writeStringField("contentType", this.contentType == null ? null : this.contentType.toString()); + jsonWriter.writeBooleanField("startMediaStreaming", this.startMediaStreaming); + jsonWriter.writeBooleanField("enableBidirectional", this.enableBidirectional); + jsonWriter.writeStringField("audioFormat", this.audioFormat == null ? null : this.audioFormat.toString()); + jsonWriter.writeBooleanField("enableDtmfTones", this.enableDtmfTones); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of WebSocketMediaStreamingOptions from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of WebSocketMediaStreamingOptions if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the WebSocketMediaStreamingOptions. + */ + public static WebSocketMediaStreamingOptions fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + WebSocketMediaStreamingOptions deserializedWebSocketMediaStreamingOptions + = new WebSocketMediaStreamingOptions(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("audioChannelType".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptions + .setAudioChannelType(MediaStreamingAudioChannelTypeInternal.fromString(reader.getString())); + } else if ("transportType".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptions.transportType + = StreamingTransportType.fromString(reader.getString()); + } else if ("transportUrl".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptions.transportUrl = reader.getString(); + } else if ("contentType".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptions.contentType + = MediaStreamingContentTypeInternal.fromString(reader.getString()); + } else if ("startMediaStreaming".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptions.startMediaStreaming + = reader.getNullable(JsonReader::getBoolean); + } else if ("enableBidirectional".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptions.enableBidirectional + = reader.getNullable(JsonReader::getBoolean); + } else if ("audioFormat".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptions.audioFormat + = AudioFormatInternal.fromString(reader.getString()); + } else if ("enableDtmfTones".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptions.enableDtmfTones + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedWebSocketMediaStreamingOptions; + }); + } +} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptionsInternal.java new file mode 100644 index 000000000000..c52f1143cd93 --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptionsInternal.java @@ -0,0 +1,270 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.communication.callautomation.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Represents the options for WebSocket transport. + */ +@Fluent +public final class WebSocketMediaStreamingOptionsInternal extends MediaStreamingOptionsInternal { + /* + * Defines the transport type used for streaming. Note that future values may be introduced that are not currently documented. + */ + private StreamingTransportType transportType = StreamingTransportType.WEBSOCKET; + + /* + * The transport URL for media streaming. + */ + private String transportUrl; + + /* + * The contentType property. + */ + private MediaStreamingContentTypeInternal contentType; + + /* + * A value indicating whether the media streaming should start immediately after the call is answered. + */ + private Boolean startMediaStreaming; + + /* + * A value indicating whether bidirectional streaming is enabled. + */ + private Boolean enableBidirectional; + + /* + * The audio format used for encoding, including sample rate and channel type. The default is Pcm16KMono. + */ + private AudioFormatInternal audioFormat; + + /* + * A value that indicates whether to stream the DTMF tones. + */ + private Boolean enableDtmfTones; + + /** + * Creates an instance of WebSocketMediaStreamingOptionsInternal class. + */ + public WebSocketMediaStreamingOptionsInternal() { + } + + /** + * Get the transportType property: Defines the transport type used for streaming. Note that future values may be + * introduced that are not currently documented. + * + * @return the transportType value. + */ + @Override + public StreamingTransportType getTransportType() { + return this.transportType; + } + + /** + * Get the transportUrl property: The transport URL for media streaming. + * + * @return the transportUrl value. + */ + public String getTransportUrl() { + return this.transportUrl; + } + + /** + * Set the transportUrl property: The transport URL for media streaming. + * + * @param transportUrl the transportUrl value to set. + * @return the WebSocketMediaStreamingOptionsInternal object itself. + */ + public WebSocketMediaStreamingOptionsInternal setTransportUrl(String transportUrl) { + this.transportUrl = transportUrl; + return this; + } + + /** + * Get the contentType property: The contentType property. + * + * @return the contentType value. + */ + public MediaStreamingContentTypeInternal getContentType() { + return this.contentType; + } + + /** + * Set the contentType property: The contentType property. + * + * @param contentType the contentType value to set. + * @return the WebSocketMediaStreamingOptionsInternal object itself. + */ + public WebSocketMediaStreamingOptionsInternal setContentType(MediaStreamingContentTypeInternal contentType) { + this.contentType = contentType; + return this; + } + + /** + * Get the startMediaStreaming property: A value indicating whether the media streaming should start immediately + * after the call is answered. + * + * @return the startMediaStreaming value. + */ + public Boolean isStartMediaStreaming() { + return this.startMediaStreaming; + } + + /** + * Set the startMediaStreaming property: A value indicating whether the media streaming should start immediately + * after the call is answered. + * + * @param startMediaStreaming the startMediaStreaming value to set. + * @return the WebSocketMediaStreamingOptionsInternal object itself. + */ + public WebSocketMediaStreamingOptionsInternal setStartMediaStreaming(Boolean startMediaStreaming) { + this.startMediaStreaming = startMediaStreaming; + return this; + } + + /** + * Get the enableBidirectional property: A value indicating whether bidirectional streaming is enabled. + * + * @return the enableBidirectional value. + */ + public Boolean isEnableBidirectional() { + return this.enableBidirectional; + } + + /** + * Set the enableBidirectional property: A value indicating whether bidirectional streaming is enabled. + * + * @param enableBidirectional the enableBidirectional value to set. + * @return the WebSocketMediaStreamingOptionsInternal object itself. + */ + public WebSocketMediaStreamingOptionsInternal setEnableBidirectional(Boolean enableBidirectional) { + this.enableBidirectional = enableBidirectional; + return this; + } + + /** + * Get the audioFormat property: The audio format used for encoding, including sample rate and channel type. The + * default is Pcm16KMono. + * + * @return the audioFormat value. + */ + public AudioFormatInternal getAudioFormat() { + return this.audioFormat; + } + + /** + * Set the audioFormat property: The audio format used for encoding, including sample rate and channel type. The + * default is Pcm16KMono. + * + * @param audioFormat the audioFormat value to set. + * @return the WebSocketMediaStreamingOptionsInternal object itself. + */ + public WebSocketMediaStreamingOptionsInternal setAudioFormat(AudioFormatInternal audioFormat) { + this.audioFormat = audioFormat; + return this; + } + + /** + * Get the enableDtmfTones property: A value that indicates whether to stream the DTMF tones. + * + * @return the enableDtmfTones value. + */ + public Boolean isEnableDtmfTones() { + return this.enableDtmfTones; + } + + /** + * Set the enableDtmfTones property: A value that indicates whether to stream the DTMF tones. + * + * @param enableDtmfTones the enableDtmfTones value to set. + * @return the WebSocketMediaStreamingOptionsInternal object itself. + */ + public WebSocketMediaStreamingOptionsInternal setEnableDtmfTones(Boolean enableDtmfTones) { + this.enableDtmfTones = enableDtmfTones; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public WebSocketMediaStreamingOptionsInternal + setAudioChannelType(MediaStreamingAudioChannelTypeInternal audioChannelType) { + super.setAudioChannelType(audioChannelType); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("audioChannelType", + getAudioChannelType() == null ? null : getAudioChannelType().toString()); + jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString()); + jsonWriter.writeStringField("transportUrl", this.transportUrl); + jsonWriter.writeStringField("contentType", this.contentType == null ? null : this.contentType.toString()); + jsonWriter.writeBooleanField("startMediaStreaming", this.startMediaStreaming); + jsonWriter.writeBooleanField("enableBidirectional", this.enableBidirectional); + jsonWriter.writeStringField("audioFormat", this.audioFormat == null ? null : this.audioFormat.toString()); + jsonWriter.writeBooleanField("enableDtmfTones", this.enableDtmfTones); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of WebSocketMediaStreamingOptionsInternal from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of WebSocketMediaStreamingOptionsInternal if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the WebSocketMediaStreamingOptionsInternal. + */ + public static WebSocketMediaStreamingOptionsInternal fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + WebSocketMediaStreamingOptionsInternal deserializedWebSocketMediaStreamingOptionsInternal + = new WebSocketMediaStreamingOptionsInternal(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("audioChannelType".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptionsInternal + .setAudioChannelType(MediaStreamingAudioChannelTypeInternal.fromString(reader.getString())); + } else if ("transportType".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptionsInternal.transportType + = StreamingTransportType.fromString(reader.getString()); + } else if ("transportUrl".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptionsInternal.transportUrl = reader.getString(); + } else if ("contentType".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptionsInternal.contentType + = MediaStreamingContentTypeInternal.fromString(reader.getString()); + } else if ("startMediaStreaming".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptionsInternal.startMediaStreaming + = reader.getNullable(JsonReader::getBoolean); + } else if ("enableBidirectional".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptionsInternal.enableBidirectional + = reader.getNullable(JsonReader::getBoolean); + } else if ("audioFormat".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptionsInternal.audioFormat + = AudioFormatInternal.fromString(reader.getString()); + } else if ("enableDtmfTones".equals(fieldName)) { + deserializedWebSocketMediaStreamingOptionsInternal.enableDtmfTones + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedWebSocketMediaStreamingOptionsInternal; + }); + } +} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptions.java new file mode 100644 index 000000000000..8d0db227fbe0 --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptions.java @@ -0,0 +1,208 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.communication.callautomation.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Represents the options for WebSocket transport. + */ +@Fluent +public final class WebSocketTranscriptionOptions extends TranscriptionOptionsInternal { + /* + * Defines the transport type used for streaming. Note that future values may be introduced that are not currently documented. + */ + private StreamingTransportType transportType = StreamingTransportType.WEBSOCKET; + + /* + * The URL used for live transcription transport. + */ + private String transportUrl; + + /* + * The ID of the deployed custom model in GUID format. The GUID is generated by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. + */ + private String speechModelEndpointId; + + /* + * Indicates whether the transcription should start immediately after the call is answered. + */ + private Boolean startTranscription; + + /* + * Enables intermediate results for the transcribed speech. + */ + private Boolean enableIntermediateResults; + + /** + * Creates an instance of WebSocketTranscriptionOptions class. + */ + public WebSocketTranscriptionOptions() { + } + + /** + * Get the transportType property: Defines the transport type used for streaming. Note that future values may be + * introduced that are not currently documented. + * + * @return the transportType value. + */ + @Override + public StreamingTransportType getTransportType() { + return this.transportType; + } + + /** + * Get the transportUrl property: The URL used for live transcription transport. + * + * @return the transportUrl value. + */ + public String getTransportUrl() { + return this.transportUrl; + } + + /** + * Set the transportUrl property: The URL used for live transcription transport. + * + * @param transportUrl the transportUrl value to set. + * @return the WebSocketTranscriptionOptions object itself. + */ + public WebSocketTranscriptionOptions setTransportUrl(String transportUrl) { + this.transportUrl = transportUrl; + return this; + } + + /** + * Get the speechModelEndpointId property: The ID of the deployed custom model in GUID format. The GUID is generated + * by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. + * + * @return the speechModelEndpointId value. + */ + public String getSpeechModelEndpointId() { + return this.speechModelEndpointId; + } + + /** + * Set the speechModelEndpointId property: The ID of the deployed custom model in GUID format. The GUID is generated + * by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. + * + * @param speechModelEndpointId the speechModelEndpointId value to set. + * @return the WebSocketTranscriptionOptions object itself. + */ + public WebSocketTranscriptionOptions setSpeechModelEndpointId(String speechModelEndpointId) { + this.speechModelEndpointId = speechModelEndpointId; + return this; + } + + /** + * Get the startTranscription property: Indicates whether the transcription should start immediately after the call + * is answered. + * + * @return the startTranscription value. + */ + public Boolean isStartTranscription() { + return this.startTranscription; + } + + /** + * Set the startTranscription property: Indicates whether the transcription should start immediately after the call + * is answered. + * + * @param startTranscription the startTranscription value to set. + * @return the WebSocketTranscriptionOptions object itself. + */ + public WebSocketTranscriptionOptions setStartTranscription(Boolean startTranscription) { + this.startTranscription = startTranscription; + return this; + } + + /** + * Get the enableIntermediateResults property: Enables intermediate results for the transcribed speech. + * + * @return the enableIntermediateResults value. + */ + public Boolean isEnableIntermediateResults() { + return this.enableIntermediateResults; + } + + /** + * Set the enableIntermediateResults property: Enables intermediate results for the transcribed speech. + * + * @param enableIntermediateResults the enableIntermediateResults value to set. + * @return the WebSocketTranscriptionOptions object itself. + */ + public WebSocketTranscriptionOptions setEnableIntermediateResults(Boolean enableIntermediateResults) { + this.enableIntermediateResults = enableIntermediateResults; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public WebSocketTranscriptionOptions setLocale(String locale) { + super.setLocale(locale); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("locale", getLocale()); + jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString()); + jsonWriter.writeStringField("transportUrl", this.transportUrl); + jsonWriter.writeStringField("speechModelEndpointId", this.speechModelEndpointId); + jsonWriter.writeBooleanField("startTranscription", this.startTranscription); + jsonWriter.writeBooleanField("enableIntermediateResults", this.enableIntermediateResults); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of WebSocketTranscriptionOptions from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of WebSocketTranscriptionOptions if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the WebSocketTranscriptionOptions. + */ + public static WebSocketTranscriptionOptions fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + WebSocketTranscriptionOptions deserializedWebSocketTranscriptionOptions + = new WebSocketTranscriptionOptions(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("locale".equals(fieldName)) { + deserializedWebSocketTranscriptionOptions.setLocale(reader.getString()); + } else if ("transportType".equals(fieldName)) { + deserializedWebSocketTranscriptionOptions.transportType + = StreamingTransportType.fromString(reader.getString()); + } else if ("transportUrl".equals(fieldName)) { + deserializedWebSocketTranscriptionOptions.transportUrl = reader.getString(); + } else if ("speechModelEndpointId".equals(fieldName)) { + deserializedWebSocketTranscriptionOptions.speechModelEndpointId = reader.getString(); + } else if ("startTranscription".equals(fieldName)) { + deserializedWebSocketTranscriptionOptions.startTranscription + = reader.getNullable(JsonReader::getBoolean); + } else if ("enableIntermediateResults".equals(fieldName)) { + deserializedWebSocketTranscriptionOptions.enableIntermediateResults + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedWebSocketTranscriptionOptions; + }); + } +} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptionsInternal.java new file mode 100644 index 000000000000..8257bf7ff4ea --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptionsInternal.java @@ -0,0 +1,208 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.communication.callautomation.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Represents the options for WebSocket transport. + */ +@Fluent +public final class WebSocketTranscriptionOptionsInternal extends TranscriptionOptionsInternal { + /* + * Defines the transport type used for streaming. Note that future values may be introduced that are not currently documented. + */ + private StreamingTransportType transportType = StreamingTransportType.WEBSOCKET; + + /* + * The URL used for live transcription transport. + */ + private String transportUrl; + + /* + * The ID of the deployed custom model in GUID format. The GUID is generated by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. + */ + private String speechModelEndpointId; + + /* + * Indicates whether the transcription should start immediately after the call is answered. + */ + private Boolean startTranscription; + + /* + * Enables intermediate results for the transcribed speech. + */ + private Boolean enableIntermediateResults; + + /** + * Creates an instance of WebSocketTranscriptionOptionsInternal class. + */ + public WebSocketTranscriptionOptionsInternal() { + } + + /** + * Get the transportType property: Defines the transport type used for streaming. Note that future values may be + * introduced that are not currently documented. + * + * @return the transportType value. + */ + @Override + public StreamingTransportType getTransportType() { + return this.transportType; + } + + /** + * Get the transportUrl property: The URL used for live transcription transport. + * + * @return the transportUrl value. + */ + public String getTransportUrl() { + return this.transportUrl; + } + + /** + * Set the transportUrl property: The URL used for live transcription transport. + * + * @param transportUrl the transportUrl value to set. + * @return the WebSocketTranscriptionOptionsInternal object itself. + */ + public WebSocketTranscriptionOptionsInternal setTransportUrl(String transportUrl) { + this.transportUrl = transportUrl; + return this; + } + + /** + * Get the speechModelEndpointId property: The ID of the deployed custom model in GUID format. The GUID is generated + * by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. + * + * @return the speechModelEndpointId value. + */ + public String getSpeechModelEndpointId() { + return this.speechModelEndpointId; + } + + /** + * Set the speechModelEndpointId property: The ID of the deployed custom model in GUID format. The GUID is generated + * by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. + * + * @param speechModelEndpointId the speechModelEndpointId value to set. + * @return the WebSocketTranscriptionOptionsInternal object itself. + */ + public WebSocketTranscriptionOptionsInternal setSpeechModelEndpointId(String speechModelEndpointId) { + this.speechModelEndpointId = speechModelEndpointId; + return this; + } + + /** + * Get the startTranscription property: Indicates whether the transcription should start immediately after the call + * is answered. + * + * @return the startTranscription value. + */ + public Boolean isStartTranscription() { + return this.startTranscription; + } + + /** + * Set the startTranscription property: Indicates whether the transcription should start immediately after the call + * is answered. + * + * @param startTranscription the startTranscription value to set. + * @return the WebSocketTranscriptionOptionsInternal object itself. + */ + public WebSocketTranscriptionOptionsInternal setStartTranscription(Boolean startTranscription) { + this.startTranscription = startTranscription; + return this; + } + + /** + * Get the enableIntermediateResults property: Enables intermediate results for the transcribed speech. + * + * @return the enableIntermediateResults value. + */ + public Boolean isEnableIntermediateResults() { + return this.enableIntermediateResults; + } + + /** + * Set the enableIntermediateResults property: Enables intermediate results for the transcribed speech. + * + * @param enableIntermediateResults the enableIntermediateResults value to set. + * @return the WebSocketTranscriptionOptionsInternal object itself. + */ + public WebSocketTranscriptionOptionsInternal setEnableIntermediateResults(Boolean enableIntermediateResults) { + this.enableIntermediateResults = enableIntermediateResults; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public WebSocketTranscriptionOptionsInternal setLocale(String locale) { + super.setLocale(locale); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("locale", getLocale()); + jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString()); + jsonWriter.writeStringField("transportUrl", this.transportUrl); + jsonWriter.writeStringField("speechModelEndpointId", this.speechModelEndpointId); + jsonWriter.writeBooleanField("startTranscription", this.startTranscription); + jsonWriter.writeBooleanField("enableIntermediateResults", this.enableIntermediateResults); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of WebSocketTranscriptionOptionsInternal from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of WebSocketTranscriptionOptionsInternal if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the WebSocketTranscriptionOptionsInternal. + */ + public static WebSocketTranscriptionOptionsInternal fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + WebSocketTranscriptionOptionsInternal deserializedWebSocketTranscriptionOptionsInternal + = new WebSocketTranscriptionOptionsInternal(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("locale".equals(fieldName)) { + deserializedWebSocketTranscriptionOptionsInternal.setLocale(reader.getString()); + } else if ("transportType".equals(fieldName)) { + deserializedWebSocketTranscriptionOptionsInternal.transportType + = StreamingTransportType.fromString(reader.getString()); + } else if ("transportUrl".equals(fieldName)) { + deserializedWebSocketTranscriptionOptionsInternal.transportUrl = reader.getString(); + } else if ("speechModelEndpointId".equals(fieldName)) { + deserializedWebSocketTranscriptionOptionsInternal.speechModelEndpointId = reader.getString(); + } else if ("startTranscription".equals(fieldName)) { + deserializedWebSocketTranscriptionOptionsInternal.startTranscription + = reader.getNullable(JsonReader::getBoolean); + } else if ("enableIntermediateResults".equals(fieldName)) { + deserializedWebSocketTranscriptionOptionsInternal.enableIntermediateResults + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedWebSocketTranscriptionOptionsInternal; + }); + } +} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AddParticipantEventResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AddParticipantEventResult.java deleted file mode 100644 index 7e38a60a48d6..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AddParticipantEventResult.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.communication.callautomation.models.events.AddParticipantFailed; -import com.azure.communication.callautomation.models.events.AddParticipantSucceeded; -import com.azure.communication.common.CommunicationIdentifier; -import com.azure.core.annotation.Immutable; - -/** - * The result of an add participant event. - */ -@Immutable -public final class AddParticipantEventResult { - private final boolean isSuccess; - private final AddParticipantSucceeded successResult; - private final AddParticipantFailed failureResult; - private final CommunicationIdentifier participant; - - /** - * Initializes a new instance of AddParticipantEventResult. - * - * @param isSuccess the success status of the add participant operation. - * @param successResult the add participant succeeded event. - * @param failureResult the add participant failed event. - * @param participant the participant. - */ - AddParticipantEventResult(boolean isSuccess, AddParticipantSucceeded successResult, - AddParticipantFailed failureResult, CommunicationIdentifier participant) { - this.isSuccess = isSuccess; - this.successResult = successResult; - this.failureResult = failureResult; - this.participant = participant; - } - - /** - * Gets the success status of the add participant operation. - * - * @return the success status of the add participant operation. - */ - public boolean isSuccess() { - return isSuccess; - } - - /** - * Gets the add participant succeeded event. - * - * @return the add participant succeeded event. - */ - public AddParticipantSucceeded getSuccessResult() { - return successResult; - } - - /** - * Gets the add participant failed event. - * - * @return the add participant failed event. - */ - public AddParticipantFailed getFailureResult() { - return failureResult; - } - - /** - * Gets the participant. - * - * @return the participant. - */ - public CommunicationIdentifier getParticipant() { - return participant; - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AddParticipantResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AddParticipantResult.java index 9ca78f6740ea..0dd343cf690e 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AddParticipantResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AddParticipantResult.java @@ -6,18 +6,12 @@ import com.azure.communication.callautomation.implementation.accesshelpers.AddParticipantResponseConstructorProxy; import com.azure.communication.callautomation.implementation.converters.CallParticipantConverter; import com.azure.communication.callautomation.implementation.models.AddParticipantResponseInternal; -import com.azure.communication.callautomation.models.events.AddParticipantFailed; -import com.azure.communication.callautomation.models.events.AddParticipantSucceeded; -import com.azure.communication.callautomation.models.events.CallAutomationEventBase; import com.azure.core.annotation.Immutable; -import reactor.core.publisher.Mono; - -import java.time.Duration; import java.util.Objects; /** The AddParticipantResult model. */ @Immutable -public class AddParticipantResult extends ResultWithEventHandling { +public final class AddParticipantResult { /* * The participant property. */ @@ -95,40 +89,4 @@ public String getOperationContext() { public String getInvitationId() { return invitationId; } - - @Override - public Mono waitForEventProcessorAsync(Duration timeout) { - if (eventProcessor == null) { - return Mono.empty(); - } - - return (timeout == null - ? eventProcessor - .waitForEventProcessorAsync(event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == AddParticipantSucceeded.class - || event.getClass() == AddParticipantFailed.class)) - : eventProcessor - .waitForEventProcessorAsync(event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == AddParticipantSucceeded.class - || event.getClass() == AddParticipantFailed.class), - timeout)).flatMap(event -> Mono.just(getReturnedEvent(event))); - } - - @Override - protected AddParticipantEventResult getReturnedEvent(CallAutomationEventBase event) { - AddParticipantEventResult result = null; - if (event.getClass() == AddParticipantSucceeded.class) { - result = new AddParticipantEventResult(true, (AddParticipantSucceeded) event, null, - ((AddParticipantSucceeded) event).getParticipant()); - } else if (event.getClass() == AddParticipantFailed.class) { - result = new AddParticipantEventResult(false, null, (AddParticipantFailed) event, - ((AddParticipantFailed) event).getParticipant()); - } - - return result; - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallEventResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallEventResult.java deleted file mode 100644 index 74fd35fe0e34..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallEventResult.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.communication.callautomation.models.events.AnswerFailed; -import com.azure.communication.callautomation.models.events.CallConnected; -import com.azure.core.annotation.Immutable; - -/** - * The result of an answer call event. - */ -@Immutable -public final class AnswerCallEventResult { - private final boolean isSuccess; - private final CallConnected successResult; - private final AnswerFailed failureResult; - - /** - * Initializes a new instance of AnswerCallEventResult. - * - * @param isSuccess the success status of the answer call operation. - * @param successResult the call connected success event. - */ - AnswerCallEventResult(boolean isSuccess, CallConnected successResult, AnswerFailed failureResult) { - this.isSuccess = isSuccess; - this.successResult = successResult; - this.failureResult = failureResult; - } - - /** - * Gets the success status of the answer call operation. - * - * @return the success status of the answer call operation. - */ - public boolean isSuccess() { - return isSuccess; - } - - /** - * Gets the call connected success event. - * - * @return the call connected success event. - */ - public CallConnected getSuccessResult() { - return successResult; - } - - /** - * Gets the answer failed failure event. - * - * @return the answer failed failure event. - */ - public AnswerFailed getFailureResult() { - return failureResult; - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallOptions.java index 284af397e034..9a90a2e11b3e 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallOptions.java @@ -42,11 +42,6 @@ public final class AnswerCallOptions { */ private String operationContext; - /** - * Custom Context - */ - private final CustomCallingContext customCallingContext; - /** * Constructor * @@ -56,8 +51,6 @@ public final class AnswerCallOptions { public AnswerCallOptions(String incomingCallContext, String callbackUrl) { this.incomingCallContext = incomingCallContext; this.callbackUrl = callbackUrl; - this.customCallingContext - = new CustomCallingContext(new HashMap(), new HashMap()); } /** @@ -157,12 +150,4 @@ public AnswerCallOptions setMediaStreamingOptions(MediaStreamingOptions mediaStr this.mediaStreamingOptions = mediaStreamingOptions; return this; } - - /** - * get custom context - * @return custom context - */ - public CustomCallingContext getCustomCallingContext() { - return customCallingContext; - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallResult.java index 1378a0f80324..5375dbd653cf 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallResult.java @@ -5,14 +5,7 @@ import com.azure.communication.callautomation.CallConnection; import com.azure.communication.callautomation.CallConnectionAsync; -import com.azure.communication.callautomation.models.events.AnswerFailed; -import com.azure.communication.callautomation.models.events.CallAutomationEventBase; -import com.azure.communication.callautomation.models.events.CallConnected; import com.azure.core.annotation.Immutable; -import reactor.core.publisher.Mono; - -import java.time.Duration; -import java.util.Objects; /** * The result of answering a call @@ -30,76 +23,4 @@ public AnswerCallResult(CallConnectionProperties callConnectionProperties, CallC CallConnectionAsync callConnectionAsync) { super(callConnectionProperties, callConnection, callConnectionAsync); } - - /** - * Waits for the event processor to process the event - * - * @return the result of the event processing - */ - public AnswerCallEventResult waitForEventProcessor() { - return waitForEventProcessorAsync().block(); - } - - /** - * Waits for the event processor to process the event - * - * @param timeout the timeout - * @return the result of the event processing - */ - public AnswerCallEventResult waitForEventProcessor(Duration timeout) { - return waitForEventProcessorAsync(timeout).block(); - } - - /** - * Waits for the event processor to process the event - * - * @return the result of the event processing - */ - public Mono waitForEventProcessorAsync() { - return waitForEventProcessorAsync(null); - } - - /** - * Waits for the event processor to process the event - * - * @param timeout the timeout - * @return the result of the event processing - */ - public Mono waitForEventProcessorAsync(Duration timeout) { - if (eventProcessor == null) { - return Mono.empty(); - } - - return (timeout == null - ? eventProcessor - .waitForEventProcessorAsync(event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == CallConnected.class || event.getClass() == AnswerFailed.class)) - : eventProcessor - .waitForEventProcessorAsync( - event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == CallConnected.class || event.getClass() == AnswerFailed.class), - timeout)).flatMap(event -> Mono.just(getReturnedEvent(event))); - } - - /** - * Sets the returned event - * - * @param event the event to set - * @return the result of the event processing - */ - private AnswerCallEventResult getReturnedEvent(CallAutomationEventBase event) { - if (event.getClass() == CallConnected.class) { - return new AnswerCallEventResult(true, (CallConnected) event, null); - } - - if (event.getClass() == AnswerFailed.class) { - return new AnswerCallEventResult(false, null, (AnswerFailed) event); - } - - return null; - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallIntelligenceOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallIntelligenceOptions.java index 49b91b15fd26..c4be09281142 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallIntelligenceOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallIntelligenceOptions.java @@ -16,11 +16,6 @@ public final class CallIntelligenceOptions { */ private String cognitiveServicesEndpoint; - /** - * A backup endpoint URL of the Azure Cognitive Services resource attached - */ - private String backupCognitiveServicesEndpoint; - /** * Creates an instance of {@link CallIntelligenceOptions}. */ @@ -48,26 +43,4 @@ public CallIntelligenceOptions setCognitiveServicesEndpoint(String cognitiveServ this.cognitiveServicesEndpoint = cognitiveServicesEndpoint; return this; } - - /** - * Get the backupCognitiveServicesEndpoint property: A backup endpoint URL of the Azure Cognitive Services resource - * attached. - * - * @return the backupCognitiveServicesEndpoint value. - */ - public String getBackupCognitiveServicesEndpoint() { - return this.backupCognitiveServicesEndpoint; - } - - /** - * Set the backupCognitiveServicesEndpoint property: A backup endpoint URL of the Azure Cognitive Services resource - * attached. - * - * @param backupCognitiveServicesEndpoint the backupCognitiveServicesEndpoint value to set. - * @return the CallIntelligenceOptions object itself. - */ - public CallIntelligenceOptions setBackupCognitiveServicesEndpoint(String backupCognitiveServicesEndpoint) { - this.backupCognitiveServicesEndpoint = backupCognitiveServicesEndpoint; - return this; - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallInvite.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallInvite.java index 023368b4be2e..64bb59af5655 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallInvite.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallInvite.java @@ -55,16 +55,6 @@ public CallInvite(MicrosoftTeamsUserIdentifier targetIdentity) { this.customCallingContext = new CustomCallingContext(null, new HashMap<>()); } - /** - * Create a CallInvite object with MicrosoftTeamsAppIdentifier - * @param targetIdentity Target's MicrosoftTeamsAppIdentifier - */ - public CallInvite(MicrosoftTeamsAppIdentifier targetIdentity) { - this.targetParticipant = targetIdentity; - this.sourceCallerIdNumber = null; - this.customCallingContext = new CustomCallingContext(null, new HashMap<>()); - } - /** * Get target's CommunicationIdentifier * @return target's CommunicationIdentifier diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallResult.java index b8c47be7eb43..0efd271b8048 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallResult.java @@ -5,7 +5,6 @@ import com.azure.communication.callautomation.CallConnection; import com.azure.communication.callautomation.CallConnectionAsync; -import com.azure.communication.callautomation.CallAutomationEventProcessor; /** * The abstract class used as parent of [action]CallResult @@ -26,19 +25,6 @@ public abstract class CallResult { */ private final CallConnectionAsync callConnectionAsync; - /** - * The event processor that handles events. - */ - protected CallAutomationEventProcessor eventProcessor; - /** - * The call's connection id. - */ - protected String callConnectionId; - /** - * Operation context from the api request. - */ - protected String operationContextFromRequest; - CallResult(CallConnectionProperties callConnectionProperties, CallConnection callConnection, CallConnectionAsync callConnectionAsync) { this.callConnectionProperties = callConnectionProperties; @@ -46,20 +32,6 @@ public abstract class CallResult { this.callConnectionAsync = callConnectionAsync; } - /** - * Sets the event processor - * - * @param eventProcessor the event processor - * @param callConnectionId the call connection id - * @param operationContext the operation context - */ - public void setEventProcessor(CallAutomationEventProcessor eventProcessor, String callConnectionId, - String operationContext) { - this.eventProcessor = eventProcessor; - this.callConnectionId = callConnectionId; - this.operationContextFromRequest = operationContext; - } - /** * Get the callConnectionProperties. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CancelAddParticipantEventResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CancelAddParticipantEventResult.java deleted file mode 100644 index 3d4c4f04bee2..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CancelAddParticipantEventResult.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.communication.callautomation.models.events.CancelAddParticipantSucceeded; -import com.azure.communication.callautomation.models.events.CancelAddParticipantFailed; -import com.azure.core.annotation.Immutable; - -/** - * The result of a cancel add participant event. - */ -@Immutable -public final class CancelAddParticipantEventResult { - private final boolean isSuccess; - private final CancelAddParticipantSucceeded successResult; - private final CancelAddParticipantFailed failureResult; - private final String invitationId; - - /** - * Initializes a new instance of CancelAddParticipantEventResult. - * - * @param isSuccess the success status of the cancel add participant operation. - * @param successResult the add participant cancelled success event. - * @param failureResult the cancel add participant failed event. - * @param participant the participant. - * @param invitationId the invitation id. - */ - CancelAddParticipantEventResult(boolean isSuccess, CancelAddParticipantSucceeded successResult, - CancelAddParticipantFailed failureResult, String invitationId) { - this.isSuccess = isSuccess; - this.successResult = successResult; - this.failureResult = failureResult; - this.invitationId = invitationId; - } - - /** - * Gets the success status of the cancel add participant operation. - * - * @return the success status of the cancel add participant operation. - */ - public boolean isSuccess() { - return isSuccess; - } - - /** - * Gets the add participant cancelled success event. - * - * @return the add participant cancelled success event. - */ - public CancelAddParticipantSucceeded getSuccessResult() { - return successResult; - } - - /** - * Gets the cancel add participant failed event. - * - * @return the cancel add participant failed event. - */ - public CancelAddParticipantFailed getFailureResult() { - return failureResult; - } - - /** - * Gets the invitation id. - * - * @return the invitation id. - */ - public String getInvitationId() { - return invitationId; - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CancelAddParticipantOperationResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CancelAddParticipantOperationResult.java index defcd4325638..ce258f9a8d1d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CancelAddParticipantOperationResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CancelAddParticipantOperationResult.java @@ -6,19 +6,12 @@ import com.azure.communication.callautomation.implementation.accesshelpers.CancelAddParticipantResponseConstructorProxy; import com.azure.communication.callautomation.implementation.accesshelpers.CancelAddParticipantResponseConstructorProxy.CancelAddParticipantResponseConstructorAccessor; import com.azure.communication.callautomation.implementation.models.CancelAddParticipantResponse; -import com.azure.communication.callautomation.models.events.CancelAddParticipantSucceeded; -import com.azure.communication.callautomation.models.events.CallAutomationEventBase; -import com.azure.communication.callautomation.models.events.CancelAddParticipantFailed; import com.azure.core.annotation.Immutable; -import reactor.core.publisher.Mono; - -import java.time.Duration; import java.util.Objects; /** The CancelAddParticipantResult model. */ @Immutable -public final class CancelAddParticipantOperationResult - extends ResultWithEventHandling { +public final class CancelAddParticipantOperationResult { /** * The invitation ID used to cancel the add participant request. @@ -78,39 +71,4 @@ public String getInvitationId() { public String getOperationContext() { return operationContext; } - - @Override - public Mono waitForEventProcessorAsync(Duration timeout) { - if (eventProcessor == null) { - return Mono.empty(); - } - - return (timeout == null - ? eventProcessor - .waitForEventProcessorAsync(event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == CancelAddParticipantSucceeded.class - || event.getClass() == CancelAddParticipantFailed.class)) - : eventProcessor - .waitForEventProcessorAsync(event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == CancelAddParticipantSucceeded.class - || event.getClass() == CancelAddParticipantFailed.class), - timeout)).flatMap(event -> Mono.just(getReturnedEvent(event))); - } - - @Override - protected CancelAddParticipantEventResult getReturnedEvent(CallAutomationEventBase event) { - CancelAddParticipantEventResult result = null; - if (event.getClass() == CancelAddParticipantSucceeded.class) { - result = new CancelAddParticipantEventResult(true, (CancelAddParticipantSucceeded) event, null, - ((CancelAddParticipantSucceeded) event).getInvitationId()); - } else if (event.getClass() == CancelAddParticipantFailed.class) { - result = new CancelAddParticipantEventResult(false, null, (CancelAddParticipantFailed) event, - ((CancelAddParticipantFailed) event).getInvitationId()); - } - return result; - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ChoiceResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ChoiceResult.java index b08be534852d..e5f856e321db 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ChoiceResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ChoiceResult.java @@ -40,17 +40,6 @@ public String getLabel() { return this.label; } - /** - * Set the label property: Label is the primary identifier for the choice detected. - * - * @param label the label value to set. - * @return the ChoiceResult object itself. - */ - public ChoiceResult setLabel(String label) { - this.label = label; - return this; - } - /** * Get the recognizedPhrase property: Phrases are set to the value if choice is selected via phrase detection. If * Dtmf input is recognized, then Label will be the identifier for the choice detected and phrases will be set to @@ -62,19 +51,6 @@ public String getRecognizedPhrase() { return this.recognizedPhrase; } - /** - * Set the recognizedPhrase property: Phrases are set to the value if choice is selected via phrase detection. If - * Dtmf input is recognized, then Label will be the identifier for the choice detected and phrases will be set to - * null. - * - * @param recognizedPhrase the recognizedPhrase value to set. - * @return the ChoiceResult object itself. - */ - public ChoiceResult setRecognizedPhrase(String recognizedPhrase) { - this.recognizedPhrase = recognizedPhrase; - return this; - } - @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ConnectCallEventResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ConnectCallEventResult.java deleted file mode 100644 index 7c132d0c6045..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ConnectCallEventResult.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.communication.callautomation.models.events.CallConnected; -import com.azure.communication.callautomation.models.events.ConnectFailed; -import com.azure.core.annotation.Immutable; - -/** - * The result of a connect call event. - */ -@Immutable -public final class ConnectCallEventResult { - private final boolean isSuccess; - private final CallConnected successResult; - private final ConnectFailed failureResult; - - /** - * Initializes a new instance of ConnectCallEventResult. - * - * @param isSuccess the success status of the connect call operation. - * @param successResult the call connected success event. - */ - ConnectCallEventResult(boolean isSuccess, CallConnected successResult, ConnectFailed failureResult) { - this.isSuccess = isSuccess; - this.successResult = successResult; - this.failureResult = failureResult; - } - - /** - * Gets the success status of the connect call operation. - * - * @return the success status of the connect call operation. - */ - public boolean isSuccess() { - return isSuccess; - } - - /** - * Gets the call connected success event. - * - * @return the call connected success event. - */ - public CallConnected getSuccessResult() { - return successResult; - } - - /** - * Gets the connect failed event. - * @return the connect call failure event. - */ - public ConnectFailed getFailureResult() { - return failureResult; - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ConnectCallResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ConnectCallResult.java index 66b88bd51b20..313d8a224bd2 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ConnectCallResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ConnectCallResult.java @@ -3,18 +3,10 @@ package com.azure.communication.callautomation.models; -import java.time.Duration; -import java.util.Objects; - import com.azure.communication.callautomation.CallConnection; import com.azure.communication.callautomation.CallConnectionAsync; -import com.azure.communication.callautomation.models.events.CallAutomationEventBase; -import com.azure.communication.callautomation.models.events.CallConnected; -import com.azure.communication.callautomation.models.events.ConnectFailed; import com.azure.core.annotation.Immutable; -import reactor.core.publisher.Mono; - /** The result of connect request. */ @Immutable public final class ConnectCallResult extends CallResult { @@ -29,76 +21,4 @@ public ConnectCallResult(CallConnectionProperties callConnectionProperties, Call CallConnectionAsync callConnectionAsync) { super(callConnectionProperties, callConnection, callConnectionAsync); } - - /** - * Waits for the event processor to process the event - * - * @return the result of the event processing - */ - public ConnectCallEventResult waitForEventProcessor() { - return waitForEventProcessorAsync().block(); - } - - /** - * Waits for the event processor to process the event - * - * @param timeout the timeout - * @return the result of the event processing - */ - public ConnectCallEventResult waitForEventProcessor(Duration timeout) { - return waitForEventProcessorAsync(timeout).block(); - } - - /** - * Waits for the event processor to process the event - * - * @return the result of the event processing - */ - public Mono waitForEventProcessorAsync() { - return waitForEventProcessorAsync(null); - } - - /** - * Waits for the event processor to process the event - * - * @param timeout the timeout - * @return the result of the event processing - */ - public Mono waitForEventProcessorAsync(Duration timeout) { - if (eventProcessor == null) { - return Mono.empty(); - } - - return (timeout == null - ? eventProcessor - .waitForEventProcessorAsync(event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == CallConnected.class || event.getClass() == ConnectFailed.class)) - : eventProcessor - .waitForEventProcessorAsync( - event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == CallConnected.class || event.getClass() == ConnectFailed.class), - timeout)).flatMap(event -> Mono.just(getReturnedEvent(event))); - } - - /** - * Sets the returned event - * - * @param event the event to set - * @return the result of the event processing - */ - private ConnectCallEventResult getReturnedEvent(CallAutomationEventBase event) { - if (event.getClass() == CallConnected.class) { - return new ConnectCallEventResult(true, (CallConnected) event, null); - } - - if (event.getClass() == ConnectFailed.class) { - return new ConnectCallEventResult(false, null, (ConnectFailed) event); - } - - return null; - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallEventResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallEventResult.java deleted file mode 100644 index 10cf91ecbdfc..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallEventResult.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.communication.callautomation.models.events.CallConnected; -import com.azure.communication.callautomation.models.events.CreateCallFailed; -import com.azure.core.annotation.Immutable; - -/** - * The result of a create call event. - */ -@Immutable -public final class CreateCallEventResult { - private final boolean isSuccess; - private final CallConnected successResult; - private final CreateCallFailed failureResult; - - /** - * Initializes a new instance of CreateCallEventResult. - * - * @param isSuccess the success status of the create call operation. - * @param successResult the call connected success event. - */ - CreateCallEventResult(boolean isSuccess, CallConnected successResult, CreateCallFailed failureResult) { - this.isSuccess = isSuccess; - this.successResult = successResult; - this.failureResult = failureResult; - } - - /** - * Gets the success status of the create call operation. - * - * @return the success status of the create call operation. - */ - public boolean isSuccess() { - return isSuccess; - } - - /** - * Gets the call connected success event. - * - * @return the call connected success event. - */ - public CallConnected getSuccessResult() { - return successResult; - } - - /** - * Gets the create call failure event. - * - * @return the create call failure event. - */ - public CreateCallFailed getFailureResult() { - return failureResult; - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallOptions.java index fecc04be6d47..27e4f245ed3d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallOptions.java @@ -41,13 +41,6 @@ public final class CreateCallOptions { */ private TranscriptionOptions transcriptionOptions; - /** - * Overrides default client source by a MicrosoftTeamsAppIdentifier type source. - * Required for creating call with Teams resource account ID. - * This is per-operation setting and does not change the client's default source. - */ - private MicrosoftTeamsAppIdentifier teamsAppSource; - /** * Constructor * @param callInvite Call invitee information. @@ -154,26 +147,4 @@ public CreateCallOptions setMediaStreamingOptions(MediaStreamingOptions mediaStr this.mediaStreamingOptions = mediaStreamingOptions; return this; } - - /** - * Get the TeamsAppSource property: it overrides default client source by a MicrosoftTeamsAppIdentifier type source. - * - * @return the teamsAppSource. - */ - public MicrosoftTeamsAppIdentifier getTeamsAppSource() { - return teamsAppSource; - } - - /** - * Overrides default client source by a MicrosoftTeamsAppIdentifier type source. - * Required for creating call with Teams resource account ID. - * This is per-operation setting and does not change the client's default source. - * - * @param teamsAppSource The MicrosoftTeamsAppIdentifier type source for overriding default client source. - * @return the CreateCallOptions object itself. - */ - public CreateCallOptions setTeamsAppSource(MicrosoftTeamsAppIdentifier teamsAppSource) { - this.teamsAppSource = teamsAppSource; - return this; - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallResult.java index 8a3704316ec0..1cb02b0aefff 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallResult.java @@ -5,14 +5,7 @@ import com.azure.communication.callautomation.CallConnection; import com.azure.communication.callautomation.CallConnectionAsync; -import com.azure.communication.callautomation.models.events.CallAutomationEventBase; -import com.azure.communication.callautomation.models.events.CallConnected; -import com.azure.communication.callautomation.models.events.CreateCallFailed; import com.azure.core.annotation.Immutable; -import reactor.core.publisher.Mono; - -import java.time.Duration; -import java.util.Objects; /** * The result of answering a call @@ -31,75 +24,4 @@ public CreateCallResult(CallConnectionProperties callConnectionProperties, CallC CallConnectionAsync callConnectionAsync) { super(callConnectionProperties, callConnection, callConnectionAsync); } - - /** - * Waits for the event processor to process the event - * - * @return the result of the event processing - */ - public CreateCallEventResult waitForEventProcessor() { - return waitForEventProcessorAsync().block(); - } - - /** - * Waits for the event processor to process the event - * - * @param timeout the timeout - * @return the result of the event processing - */ - public CreateCallEventResult waitForEventProcessor(Duration timeout) { - return waitForEventProcessorAsync(timeout).block(); - } - - /** - * Waits for the event processor to process the event - * - * @return the result of the event processing - */ - public Mono waitForEventProcessorAsync() { - return waitForEventProcessorAsync(null); - } - - /** - * Waits for the event processor to process the event - * - * @param timeout the timeout - * @return the result of the event processing - */ - public Mono waitForEventProcessorAsync(Duration timeout) { - if (eventProcessor == null) { - return Mono.empty(); - } - - return (timeout == null - ? eventProcessor - .waitForEventProcessorAsync(event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == CallConnected.class || event.getClass() == CreateCallFailed.class)) - : eventProcessor.waitForEventProcessorAsync( - event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == CallConnected.class || event.getClass() == CreateCallFailed.class), - timeout)).flatMap(event -> Mono.just(getReturnedEvent(event))); - } - - /** - * Sets the returned event - * - * @param event the event to set - * @return the result of the event processing - */ - private CreateCallEventResult getReturnedEvent(CallAutomationEventBase event) { - if (event.getClass() == CallConnected.class) { - return new CreateCallEventResult(true, (CallConnected) event, null); - } - - if (event.getClass() == CreateCallFailed.class) { - return new CreateCallEventResult(false, null, (CreateCallFailed) event); - } - - return null; - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateGroupCallOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateGroupCallOptions.java index 3c1142ac45a8..cae84bf0d483 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateGroupCallOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateGroupCallOptions.java @@ -56,18 +56,6 @@ public final class CreateGroupCallOptions { */ private CallIntelligenceOptions callIntelligenceOptions; - /** - * Custom Context - */ - private final CustomCallingContext customContext; - - /** - * Overrides default client source by a MicrosoftTeamsAppIdentifier type source. - * Required for creating call with Teams resource account ID. - * This is per-operation setting and does not change the client's default source. - */ - private MicrosoftTeamsAppIdentifier teamsAppSource; - /** * Constructor * @@ -79,7 +67,6 @@ public CreateGroupCallOptions(List targetParticipants, this.callbackUrl = callbackUrl; this.sourceDisplayName = null; this.sourceCallIdNumber = null; - this.customContext = new CustomCallingContext(new HashMap(), new HashMap()); } /** @@ -215,34 +202,4 @@ public MediaStreamingOptions getMediaStreamingOptions() { public TranscriptionOptions getTranscriptionOptions() { return transcriptionOptions; } - - /** - * get custom context - * @return custom context - */ - public CustomCallingContext getCustomContext() { - return customContext; - } - - /** - * Get the TeamsAppSource property: it overrides default client source by a MicrosoftTeamsAppIdentifier type source. - * - * @return the teamsAppSource. - */ - public MicrosoftTeamsAppIdentifier getTeamsAppSource() { - return teamsAppSource; - } - - /** - * Overrides default client source by a MicrosoftTeamsAppIdentifier type source. - * Required for creating call with Teams resource account ID. - * This is per-operation setting and does not change the client's default source. - * - * @param teamsAppSource The MicrosoftTeamsAppIdentifier type source for overriding default client source. - * @return the CreateCallOptions object itself. - */ - public CreateGroupCallOptions setTeamsAppSource(MicrosoftTeamsAppIdentifier teamsAppSource) { - this.teamsAppSource = teamsAppSource; - return this; - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DialogInputType.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DialogInputType.java deleted file mode 100644 index 1a96ec6d5ddc..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DialogInputType.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.communication.callautomation.models; - -import com.azure.core.util.ExpandableStringEnum; - -import java.util.Collection; - -/** Determines the type of the dialog. */ -public final class DialogInputType extends ExpandableStringEnum { - /** Static value powerVirtualAgents for DialogInputType. */ - public static final DialogInputType POWER_VIRTUAL_AGENTS = fromString("powerVirtualAgents"); - - /** Static value azureOpenAI for DialogInputType. */ - public static final DialogInputType AZURE_OPEN_AI = fromString("azureOpenAI"); - - /** - * Creates a new instance of DialogInputType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public DialogInputType() { - } - - /** - * Creates or finds a DialogInputType from its string representation. - * - * @param name a name to look for. - * @return the corresponding DialogInputType. - */ - public static DialogInputType fromString(String name) { - return fromString(name, DialogInputType.class); - } - - /** - * Gets known DialogInputType values. - * - * @return known DialogInputType values. - */ - public static Collection values() { - return values(DialogInputType.class); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DialogStateResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DialogStateResult.java deleted file mode 100644 index 76231fd9c846..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DialogStateResult.java +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.communication.callautomation.implementation.accesshelpers.DialogStateResponseConstructorProxy; -import com.azure.communication.callautomation.implementation.models.DialogStateResponse; -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -import java.io.IOException; -import java.util.Objects; - -/** The DialogStateResult model. */ -@Immutable -public class DialogStateResult implements JsonSerializable { - - /* - * The dialog ID. - */ - private String dialogId; - - /* - * Defines options for dialog. - */ - private StartDialogOptions dialogOptions; - - /* - * Determines the type of the dialog. - */ - private DialogInputType dialogInputType; - - /* - * The value to identify context of the operation. - */ - private String operationContext; - - static { - DialogStateResponseConstructorProxy - .setAccessor(new DialogStateResponseConstructorProxy.DialogStateResponseConstructorAccessor() { - @Override - public DialogStateResult create(DialogStateResponse internalHeaders) { - return new DialogStateResult(internalHeaders); - } - }); - } - - /** - * Public constructor. - * - */ - public DialogStateResult() { - this.dialogId = null; - this.operationContext = null; - } - - /** - * Constructor of the class - * - * @param dialogStateResponse The response from the dialog service - */ - DialogStateResult(DialogStateResponse dialogStateResponse) { - Objects.requireNonNull(dialogStateResponse, "dialogStateResponse must not be null"); - - this.dialogId = dialogStateResponse.getDialogId(); - this.operationContext = dialogStateResponse.getOperationContext(); - } - - /** - * Get the dialogId property: The dialog ID. - * - * @return the dialogId value. - */ - public String getDialogId() { - return dialogId; - } - - /** - * Get the operationContext property: The value to identify context of the operation. - * - * @return the operationContext value. - */ - public String getOperationContext() { - return operationContext; - } - - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("dialogId", this.dialogId); - jsonWriter.writeStringField("operationContext", this.operationContext); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DialogStateResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DialogStateResult if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DialogStateResult. - */ - public static DialogStateResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final DialogStateResult result = new DialogStateResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("dialogId".equals(fieldName)) { - result.dialogId = reader.getString(); - } else if ("operationContext".equals(fieldName)) { - result.operationContext = reader.getString(); - } else { - reader.skipChildren(); - } - } - return result; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/InterruptAudioAndAnnounceOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/InterruptAudioAndAnnounceOptions.java deleted file mode 100644 index e2b89e5047c3..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/InterruptAudioAndAnnounceOptions.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.communication.common.CommunicationIdentifier; -import com.azure.core.annotation.Fluent; - -import java.util.ArrayList; -import java.util.List; - -/** The InterruptAudioAndAnnounceOptions model. */ -@Fluent -public final class InterruptAudioAndAnnounceOptions { - /* - * A List of {@link PlaySource} representing the sources to play. - * Currently only single play source per request is supported. - */ - private final List playSources; - - /* - * The targets to play to - */ - private final CommunicationIdentifier playTo; - - /* - * The operation context - */ - private String operationContext; - - /** - * Constructor - * @param playSources A List of {@link PlaySource} representing the sources to play. - * @param playTo The target to play to. - */ - public InterruptAudioAndAnnounceOptions(List playSources, CommunicationIdentifier playTo) { - this.playSources = playSources; - this.playTo = playTo; - } - - /** - * Constructor - * @param playSource A {@link PlaySource} representing the source to play. - * @param playTo The target to play to. - */ - public InterruptAudioAndAnnounceOptions(PlaySource playSource, CommunicationIdentifier playTo) { - this.playSources = new ArrayList<>(); - this.playSources.add(playSource); - this.playTo = playTo; - } - - /** - * Get the play sources. - * - * @return the playSources value. - */ - public List getPlaySources() { - return this.playSources; - } - - /** - * Get the target to play to. - * - * @return the playTo value. - */ - public CommunicationIdentifier getPlayTo() { - return this.playTo; - } - - /** - * Get the operationContext property. - * - * @return the operationContext value. - */ - public String getOperationContext() { - return this.operationContext; - } - - /** - * Set the operationContext property. - * - * @param operationContext the operationContext value to set. - * @return the InterruptAudioAndAnnounceOptions object itself. - */ - public InterruptAudioAndAnnounceOptions setOperationContext(String operationContext) { - this.operationContext = operationContext; - return this; - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/PlayOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/PlayOptions.java index f53db7ff5f63..51bf6ca25e3f 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/PlayOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/PlayOptions.java @@ -39,11 +39,6 @@ public final class PlayOptions { */ private String operationCallbackUrl; - /* - * If set, hold audio will be interrupted, then this request will be played, and then the hold audio will be resumed. - */ - private Boolean interruptHoldAudio; - /** * Constructor * @param playSources A List of {@link PlaySource} representing the sources to play. @@ -143,24 +138,4 @@ public PlayOptions setOperationCallbackUrl(String operationCallbackUrl) { this.operationCallbackUrl = operationCallbackUrl; return this; } - - /** - * Get the interruptHoldAudio property. - * - * @return the interruptHoldAudio value. - */ - public Boolean isInterruptHoldAudio() { - return this.interruptHoldAudio; - } - - /** - * Set the interruptHoldAudio property - * - * @param interruptHoldAudio the interruptHoldAudio value to set. - * @return the PlayOptions object itself. - */ - public PlayOptions setInterruptHoldAudio(Boolean interruptHoldAudio) { - this.interruptHoldAudio = interruptHoldAudio; - return this; - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RemoveParticipantResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RemoveParticipantResult.java index d16ffac6c503..c8c9f4c841de 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RemoveParticipantResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RemoveParticipantResult.java @@ -5,18 +5,12 @@ import com.azure.communication.callautomation.implementation.accesshelpers.RemoveParticipantResponseConstructorProxy; import com.azure.communication.callautomation.implementation.models.RemoveParticipantResponseInternal; -import com.azure.communication.callautomation.models.events.CallAutomationEventBase; -import com.azure.communication.callautomation.models.events.RemoveParticipantFailed; -import com.azure.communication.callautomation.models.events.RemoveParticipantSucceeded; import com.azure.core.annotation.Immutable; -import reactor.core.publisher.Mono; - -import java.time.Duration; import java.util.Objects; /** The RemoveParticipantResult model. */ @Immutable -public final class RemoveParticipantResult extends ResultWithEventHandling { +public final class RemoveParticipantResult { /* * The operation context provided by client. */ @@ -58,41 +52,4 @@ public RemoveParticipantResult() { public String getOperationContext() { return this.operationContext; } - - @Override - public Mono waitForEventProcessorAsync(Duration timeout) { - if (eventProcessor == null) { - return Mono.empty(); - } - - return (timeout == null - ? eventProcessor - .waitForEventProcessorAsync(event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == RemoveParticipantSucceeded.class - || event.getClass() == RemoveParticipantFailed.class)) - : eventProcessor - .waitForEventProcessorAsync(event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == RemoveParticipantSucceeded.class - || event.getClass() == RemoveParticipantFailed.class), - timeout)).flatMap(event -> Mono.just(getReturnedEvent(event))); - } - - @Override - protected RemoveParticipantEventResult getReturnedEvent(CallAutomationEventBase event) { - RemoveParticipantEventResult result = null; - - if (event.getClass() == RemoveParticipantSucceeded.class) { - result = new RemoveParticipantEventResult(true, (RemoveParticipantSucceeded) event, null, - ((RemoveParticipantSucceeded) event).getParticipant()); - } else if (event.getClass() == RemoveParticipantFailed.class) { - result = new RemoveParticipantEventResult(false, null, (RemoveParticipantFailed) event, - ((RemoveParticipantFailed) event).getParticipant()); - } - - return result; - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ResultWithEventHandling.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ResultWithEventHandling.java deleted file mode 100644 index ec06e824c386..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ResultWithEventHandling.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.communication.callautomation.CallAutomationEventProcessor; -import com.azure.communication.callautomation.models.events.CallAutomationEventBase; -import reactor.core.publisher.Mono; - -import java.time.Duration; - -/** - * Injects the event handling into the result - * - * @param the type of the event result - */ -public abstract class ResultWithEventHandling { - /** - * The event processor that handles events. - */ - protected CallAutomationEventProcessor eventProcessor; - /** - * The call's connection id. - */ - protected String callConnectionId; - /** - * Operation context from the api request. - */ - protected String operationContextFromRequest; - - /** - * Creates a new instance of {@link ResultWithEventHandling}. - */ - public ResultWithEventHandling() { - } - - /** - * Sets the event processor - * - * @param eventProcessor the event processor - * @param callConnectionId the call connection id - * @param operationContext the operation context - */ - public void setEventProcessor(CallAutomationEventProcessor eventProcessor, String callConnectionId, - String operationContext) { - this.eventProcessor = eventProcessor; - this.callConnectionId = callConnectionId; - this.operationContextFromRequest = operationContext; - } - - /** - * Waits for the event processor to process the event - * - * @return the result of the event processing - */ - public TEventResult waitForEventProcessor() { - return waitForEventProcessorAsync().block(); - } - - /** - * Waits for the event processor to process the event - * - * @param timeout the timeout - * @return the result of the event processing - */ - public TEventResult waitForEventProcessor(Duration timeout) { - return waitForEventProcessorAsync(timeout).block(); - } - - /** - * Waits for the event processor to process the event - * - * @return the result of the event processing - */ - public Mono waitForEventProcessorAsync() { - return waitForEventProcessorAsync(null); - } - - /** - * Waits for the event processor to process the event - * - * @param timeout the timeout - * @return the result of the event processing - */ - public abstract Mono waitForEventProcessorAsync(Duration timeout); - - /** - * Sets the returned event - * - * @param event the event to set - * @return the result of the event processing - */ - protected abstract TEventResult getReturnedEvent(CallAutomationEventBase event); -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/SpeechResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/SpeechResult.java index 52c7ea7d8266..dc909569d6cd 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/SpeechResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/SpeechResult.java @@ -12,7 +12,6 @@ import java.io.IOException; /** The continuous speech recognition result. */ -@Fluent @Immutable public final class SpeechResult extends RecognizeResult { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartDialogOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartDialogOptions.java deleted file mode 100644 index 966d8eec8964..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartDialogOptions.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import java.util.Map; -import java.util.UUID; - -/** - * The options for starting a dialog. - */ -public class StartDialogOptions { - - /* - * Bot identifier. - */ - private String botId; - - /* - * The dialog ID. - */ - private final String dialogId; - - /* - * Determines the type of the dialog. - */ - private final DialogInputType dialogInputType; - - /* - * Dialog context. - */ - private final Map dialogContext; - - /* - * The value to identify context of the operation. - */ - private String operationContext; - - /** - * Creates a new instance of the DialogOptions. - * - * @param dialogInputType type of dialog - * @param dialogContext context of the dialog - */ - public StartDialogOptions(DialogInputType dialogInputType, Map dialogContext) { - this.dialogInputType = dialogInputType; - this.dialogContext = dialogContext; - this.dialogId = UUID.randomUUID().toString(); - } - - /** - * Creates a new instance of the DialogOptions. - * - * @param dialogId id of the dialog - * @param dialogInputType type of dialog - * @param dialogContext context of the dialog - */ - public StartDialogOptions(String dialogId, DialogInputType dialogInputType, Map dialogContext) { - this.dialogId = dialogId; - this.dialogInputType = dialogInputType; - this.dialogContext = dialogContext; - } - - /** - * Get the botAppId property: Bot identifier. - * - * @return the botAppId value. - */ - public String getBotId() { - return botId; - } - - /** - * Set the botAppId property: Bot identifier. - * - * @param botId context of the operation - */ - public void setBotId(String botId) { - this.botId = botId; - } - - /** - * Get the dialogId property: The dialog ID. - * - * @return the dialogId value. - */ - public String getDialogId() { - return dialogId; - } - - /** - * Get the dialogOptions property: Defines options for dialog. - * - * @return the dialogOptions value. - */ - public DialogInputType getDialogInputType() { - return dialogInputType; - } - - /** - * Get the dialogContext property: Dialog context. - * - * @return the dialogContext value. - */ - public Map getDialogContext() { - return dialogContext; - } - - /** - * Get the operationContext property: The value to identify context of the operation. - * - * @return the operationContext value. - */ - public String getOperationContext() { - return operationContext; - } - - /** - * Set the operationContext property: The value to identify context of the operation. - * - * @param operationContext context of the operation - */ - public void setOperationContext(String operationContext) { - this.operationContext = operationContext; - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartHoldMusicOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartHoldMusicOptions.java deleted file mode 100644 index 121a0ab4b833..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartHoldMusicOptions.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.communication.common.CommunicationIdentifier; - -/** - * Options for the Start Hold Music operation. - */ -public class StartHoldMusicOptions { - - /** - * Participant to put on hold. - */ - private final CommunicationIdentifier targetParticipant; - - /** - * Audio to play while on hold. - */ - private final PlaySource playSourceInfo; - - /** - * Operation context. - */ - private String operationContext; - - /** - * Create a new StartHoldMusicOptions object. - * @param targetParticipant Participant to be put on hold. - * @param playSourceInfo Audio to be played while on hold. - */ - public StartHoldMusicOptions(CommunicationIdentifier targetParticipant, PlaySource playSourceInfo) { - this.targetParticipant = targetParticipant; - this.playSourceInfo = playSourceInfo; - } - - /** - * Get Participant to be put on hold. - * @return participant. - */ - public CommunicationIdentifier getTargetParticipant() { - return targetParticipant; - } - - /** - * Get PlaySourceInfo - * @return the playSourceInfo. - */ - public PlaySource getPlaySourceInfo() { - return playSourceInfo; - } - - /** - * Get the operation context. - * @return operation context. - */ - public String getOperationContext() { - return operationContext; - } - - /** - * Sets the operation context. - * @param operationContext Operation Context - * @return The StartHoldMusicOptions object. - */ - public StartHoldMusicOptions setOperationContext(String operationContext) { - this.operationContext = operationContext; - return this; - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartRecordingOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartRecordingOptions.java index ee0159146a71..cf3a60c10ab4 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartRecordingOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartRecordingOptions.java @@ -18,8 +18,6 @@ public final class StartRecordingOptions { */ private final CallLocator callLocator; - private final String callConnectionId; - private String recordingStateCallbackUrl; private RecordingChannel recordingChannel; @@ -43,17 +41,6 @@ public final class StartRecordingOptions { */ public StartRecordingOptions(CallLocator callLocator) { this.callLocator = callLocator; - this.callConnectionId = null; - } - - /** - * Constructor - * - * @param callConnectionId the ID of the call connection. - */ - public StartRecordingOptions(String callConnectionId) { - this.callConnectionId = callConnectionId; - this.callLocator = null; } /** @@ -65,15 +52,6 @@ public CallLocator getCallLocator() { return this.callLocator; } - /** - * Get callConnectionId for the call - * - * @return callConnectionId for the call - */ - public String getCallConnectionId() { - return callConnectionId; - } - /** * Uri to send state change callbacks. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallResult.java index cc5d09704374..379a73e19f70 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallResult.java @@ -5,18 +5,12 @@ import com.azure.communication.callautomation.implementation.accesshelpers.TransferCallResponseConstructorProxy; import com.azure.communication.callautomation.implementation.models.TransferCallResponseInternal; -import com.azure.communication.callautomation.models.events.CallAutomationEventBase; -import com.azure.communication.callautomation.models.events.CallTransferAccepted; -import com.azure.communication.callautomation.models.events.CallTransferFailed; import com.azure.core.annotation.Immutable; -import reactor.core.publisher.Mono; - -import java.time.Duration; import java.util.Objects; /** The TransferCallResult model. */ @Immutable -public final class TransferCallResult extends ResultWithEventHandling { +public final class TransferCallResult { /* * The operation context provided by client. */ @@ -59,37 +53,4 @@ public TransferCallResult() { public String getOperationContext() { return this.operationContext; } - - @Override - public Mono waitForEventProcessorAsync(Duration timeout) { - if (eventProcessor == null) { - return Mono.empty(); - } - - return (timeout == null - ? eventProcessor - .waitForEventProcessorAsync(event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == CallTransferAccepted.class || event.getClass() == CallTransferFailed.class)) - : eventProcessor.waitForEventProcessorAsync( - event -> Objects.equals(event.getCallConnectionId(), callConnectionId) - && (Objects.equals(event.getOperationContext(), operationContextFromRequest) - || operationContextFromRequest == null) - && (event.getClass() == CallTransferAccepted.class || event.getClass() == CallTransferFailed.class), - timeout)).flatMap(event -> Mono.just(getReturnedEvent(event))); - } - - @Override - protected TransferCallToParticipantEventResult getReturnedEvent(CallAutomationEventBase event) { - TransferCallToParticipantEventResult result = null; - - if (event.getClass() == CallTransferAccepted.class) { - result = new TransferCallToParticipantEventResult(true, (CallTransferAccepted) event, null); - } else if (event.getClass() == CallTransferFailed.class) { - result = new TransferCallToParticipantEventResult(false, null, (CallTransferFailed) event); - } - - return result; - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallToParticipantEventResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallToParticipantEventResult.java deleted file mode 100644 index 03ccefe0ac48..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallToParticipantEventResult.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.communication.callautomation.models.events.CallTransferAccepted; -import com.azure.communication.callautomation.models.events.CallTransferFailed; -import com.azure.core.annotation.Immutable; - -/** - * The result of a transfer call to participant event. - */ -@Immutable -public final class TransferCallToParticipantEventResult { - private final boolean isSuccess; - private final CallTransferAccepted successResult; - private final CallTransferFailed failureResult; - - /** - * Initializes a new instance of TransferCallToParticipantEventResult. - * - * @param isSuccess the success status of the transfer call to participant operation. - * @param successResult the transfer call to participant succeeded event. - * @param failureResult the transfer call to participant failed event. - */ - TransferCallToParticipantEventResult(boolean isSuccess, CallTransferAccepted successResult, - CallTransferFailed failureResult) { - this.isSuccess = isSuccess; - this.successResult = successResult; - this.failureResult = failureResult; - } - - /** - * Gets the success status of the transfer call to participant operation. - * - * @return the success status of the transfer call to participant operation. - */ - public boolean isSuccess() { - return isSuccess; - } - - /** - * Gets the transfer call to participant succeeded event. - * - * @return the transfer call to participant succeeded event. - */ - public CallTransferAccepted getSuccessResult() { - return successResult; - } - - /** - * Gets the transfer call to participant failed event. - * - * @return the transfer call to participant failed event. - */ - public CallTransferFailed getFailureResult() { - return failureResult; - } - -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallToParticipantOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallToParticipantOptions.java index c1e4903d5487..776b90b89c6b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallToParticipantOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallToParticipantOptions.java @@ -80,16 +80,6 @@ public TransferCallToParticipantOptions(MicrosoftTeamsUserIdentifier targetParti this.customCallingContext = new CustomCallingContext(null, new HashMap<>()); } - /** - * Constructor - * - * @param targetParticipant {@link MicrosoftTeamsAppIdentifier} contains information for TransferTarget(to whom the call is transferred). - */ - public TransferCallToParticipantOptions(MicrosoftTeamsAppIdentifier targetParticipant) { - this.targetParticipant = targetParticipant; - this.customCallingContext = new CustomCallingContext(null, new HashMap<>()); - } - /** * Get the operationContext. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnmuteParticipantOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnmuteParticipantOptions.java deleted file mode 100644 index 6c1341c81709..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnmuteParticipantOptions.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.communication.common.CommunicationIdentifier; -import com.azure.core.annotation.Fluent; - -/** - * The options for unmuting a participant. - */ -@Fluent -public final class UnmuteParticipantOptions { - /** - * The participants to unmute. - * Only ACS Users are currently supported. - */ - private final CommunicationIdentifier targetParticipant; - - /** - * The operational context - */ - private String operationContext; - - /** - * Constructor - * - * @param targetParticipant The participants to unmute. - */ - public UnmuteParticipantOptions(CommunicationIdentifier targetParticipant) { - this.targetParticipant = targetParticipant; - } - - /** - * Get the participant. - * - * @return the participant to unmute. - */ - public CommunicationIdentifier getTargetParticipant() { - return targetParticipant; - } - - /** - * Get the operationContext. - * - * @return the operationContext - */ - public String getOperationContext() { - return operationContext; - } - - /** - * Set the operationContext. - * - * @param operationContext the operationContext to set - * @return the UnmuteParticipantOptions object itself. - */ - public UnmuteParticipantOptions setOperationContext(String operationContext) { - this.operationContext = operationContext; - return this; - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnmuteParticipantResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnmuteParticipantResult.java deleted file mode 100644 index 9d63a71a78be..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnmuteParticipantResult.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.communication.callautomation.implementation.accesshelpers.UnmuteParticipantsResponseConstructorProxy; -import com.azure.communication.callautomation.implementation.models.UnmuteParticipantsResponseInternal; -import com.azure.core.annotation.Immutable; - -import java.util.Objects; - -/** The UnmuteParticipantsResult model. */ -@Immutable -public final class UnmuteParticipantResult { - /* - * The operation context provided by client. - */ - private final String operationContext; - - static { - UnmuteParticipantsResponseConstructorProxy.setAccessor(UnmuteParticipantResult::new); - } - - /** - * Public constructor. - * - */ - public UnmuteParticipantResult() { - this.operationContext = null; - } - - /** - * Package-private constructor of the class, used internally only. - * - * @param unmuteParticipantsResponseInternal The response from the service - */ - UnmuteParticipantResult(UnmuteParticipantsResponseInternal unmuteParticipantsResponseInternal) { - Objects.requireNonNull(unmuteParticipantsResponseInternal, - "unmuteParticipantsResponseInternal must not be null"); - - this.operationContext = unmuteParticipantsResponseInternal.getOperationContext(); - } - - /** - * Get the operationContext property: The operation context provided by client. - * - * @return the operationContext value. - */ - public String getOperationContext() { - return this.operationContext; - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UserConsent.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UserConsent.java deleted file mode 100644 index 976373ec521b..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UserConsent.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -import java.io.IOException; - -/** The UserConsent model. */ -@Fluent -public final class UserConsent implements JsonSerializable { - /* - * The recording property. - */ - private Integer recording; - - /** Creates an instance of UserConsent class. */ - public UserConsent() { - } - - /** - * Get the recording property: The recording property. - * - * @return the recording value. - */ - public Integer getRecording() { - return this.recording; - } - - /** - * Set the recording property: The recording property. - * - * @param recording the recording value to set. - * @return the UserConsent object itself. - */ - public UserConsent setRecording(Integer recording) { - this.recording = recording; - return this; - } - - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("recording", recording); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of UserConsent from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of UserConsent if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the UserConsent. - */ - public static UserConsent fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - UserConsent consent = new UserConsent(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("recording".equals(fieldName)) { - consent.recording = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - return consent; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogCompleted.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogCompleted.java deleted file mode 100644 index c0f022699fd2..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogCompleted.java +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import com.azure.communication.callautomation.models.DialogInputType; -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -import java.io.IOException; - -/** The DialogCompleted model. */ -@Immutable -public class DialogCompleted extends CallAutomationEventBase { - - /* - * Contains the resulting SIP code/sub-code and message from NGC services. - */ - private ResultInformation resultInformation; - - /* - * Determines the type of the dialog. - */ - private DialogInputType dialogInputType; - - /* - * Dialog ID - */ - private String dialogId; - - /** Creates an instance of DialogCompleted class. */ - public DialogCompleted() { - } - - /** - * Get the resultInformation property: Contains the resulting SIP code/sub-code and message from NGC services. - * - * @return the resultInformation value. - */ - public ResultInformation getResultInformation() { - return this.resultInformation; - } - - /** - * Get the dialogInputType property: Determines the type of the dialog. - * - * @return the dialogInputType value. - */ - public DialogInputType getDialogInputType() { - return this.dialogInputType; - } - - /** - * Get the dialogId property: Dialog ID. - * - * @return the dialogId value. - */ - public String getDialogId() { - return this.dialogId; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("resultInformation", resultInformation); - jsonWriter.writeStringField("dialogInputType", dialogInputType != null ? dialogInputType.toString() : null); - jsonWriter.writeStringField("dialogId", dialogId); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DialogCompleted from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DialogCompleted if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DialogCompleted. - */ - public static DialogCompleted fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final DialogCompleted event = new DialogCompleted(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("resultInformation".equals(fieldName)) { - event.resultInformation = ResultInformation.fromJson(reader); - } else if ("dialogInputType".equals(fieldName)) { - event.dialogInputType = DialogInputType.fromString(reader.getString()); - } else if ("dialogId".equals(fieldName)) { - event.dialogId = reader.getString(); - } else { - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogConsent.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogConsent.java deleted file mode 100644 index 9bcece409fa4..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogConsent.java +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import com.azure.communication.callautomation.models.DialogInputType; -import com.azure.communication.callautomation.models.UserConsent; -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -import java.io.IOException; - -/** The DialogConsent model. */ -@Immutable -public final class DialogConsent extends CallAutomationEventBase { - - /* - * Contains the resulting SIP code/sub-code and message from NGC services. - */ - private ResultInformation resultInformation; - - /* - * Determines the type of the dialog. - */ - private DialogInputType dialogInputType; - - /* - * UserConsent data from the Conversation Conductor - */ - private UserConsent userConsent; - - /* - * Dialog ID - */ - private String dialogId; - - /** Creates an instance of DialogConsent class. */ - public DialogConsent() { - } - - /** - * Get the resultInformation property: Contains the resulting SIP code/sub-code and message from NGC services. - * - * @return the resultInformation value. - */ - public ResultInformation getResultInformation() { - return this.resultInformation; - } - - /** - * Get the dialogInputType property: Determines the type of the dialog. - * - * @return the dialogInputType value. - */ - public DialogInputType getDialogInputType() { - return this.dialogInputType; - } - - /** - * Get the userConsent property: UserConsent data from the Conversation Conductor. - * - * @return the userConsent value. - */ - public UserConsent getUserConsent() { - return this.userConsent; - } - - /** - * Get the dialogId property: Dialog ID. - * - * @return the dialogId value. - */ - public String getDialogId() { - return this.dialogId; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("resultInformation", resultInformation); - jsonWriter.writeStringField("dialogInputType", dialogInputType != null ? dialogInputType.toString() : null); - jsonWriter.writeJsonField("userConsent", userConsent); - jsonWriter.writeStringField("dialogId", dialogId); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DialogConsent from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DialogConsent if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DialogConsent. - */ - public static DialogConsent fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final DialogConsent event = new DialogConsent(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("resultInformation".equals(fieldName)) { - event.resultInformation = ResultInformation.fromJson(reader); - } else if ("dialogInputType".equals(fieldName)) { - event.dialogInputType = DialogInputType.fromString(reader.getString()); - } else if ("userConsent".equals(fieldName)) { - event.userConsent = UserConsent.fromJson(reader); - } else if ("dialogId".equals(fieldName)) { - event.dialogId = reader.getString(); - } else { - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogFailed.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogFailed.java deleted file mode 100644 index 301fc27f8859..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogFailed.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import com.azure.communication.callautomation.models.DialogInputType; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -import java.io.IOException; - -/** The DialogFailed model. */ -public final class DialogFailed extends CallAutomationEventBase { - /* - * Contains the resulting SIP code/sub-code and message from NGC services. - */ - private ResultInformation resultInformation; - - /* - * Determines the type of the dialog. - */ - private DialogInputType dialogInputType; - - /* - * Dialog ID - */ - private String dialogId; - - /** Creates an instance of DialogCompleted class. */ - public DialogFailed() { - } - - /** - * Get the resultInformation property: Contains the resulting SIP code/sub-code and message from NGC services. - * - * @return the resultInformation value. - */ - public ResultInformation getResultInformation() { - return this.resultInformation; - } - - /** - * Get the dialogInputType property: Determines the type of the dialog. - * - * @return the dialogInputType value. - */ - public DialogInputType getDialogInputType() { - return this.dialogInputType; - } - - /** - * Get the dialogId property: Dialog ID. - * - * @return the dialogId value. - */ - public String getDialogId() { - return this.dialogId; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("resultInformation", resultInformation); - jsonWriter.writeStringField("dialogInputType", dialogInputType != null ? dialogInputType.toString() : null); - jsonWriter.writeStringField("dialogId", dialogId); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DialogFailed from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DialogFailed if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DialogFailed. - */ - public static DialogFailed fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final DialogFailed event = new DialogFailed(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("resultInformation".equals(fieldName)) { - event.resultInformation = ResultInformation.fromJson(reader); - } else if ("dialogInputType".equals(fieldName)) { - event.dialogInputType = DialogInputType.fromString(reader.getString()); - } else if ("dialogId".equals(fieldName)) { - event.dialogId = reader.getString(); - } else { - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogHangup.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogHangup.java deleted file mode 100644 index 0524fb9f7805..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogHangup.java +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import com.azure.communication.callautomation.models.DialogInputType; -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -import java.io.IOException; - -/** The DialogHangup model. */ -@Fluent -public final class DialogHangup extends CallAutomationEventBase { - /* - * Contains the resulting SIP code/sub-code and message from NGC services. - */ - private ResultInformation resultInformation; - - /* - * Determines the type of the dialog. - */ - private DialogInputType dialogInputType; - - /* - * Dialog ID - */ - private String dialogId; - - /* - * Ivr Context - */ - private Object ivrContext; - - /** Creates an instance of DialogHangup class. */ - public DialogHangup() { - } - - /** - * Get the resultInformation property: Contains the resulting SIP code/sub-code and message from NGC services. - * - * @return the resultInformation value. - */ - public ResultInformation getResultInformation() { - return this.resultInformation; - } - - /** - * Get the dialogInputType property: Determines the type of the dialog. - * - * @return the dialogInputType value. - */ - public DialogInputType getDialogInputType() { - return this.dialogInputType; - } - - /** - * Get the dialogId property: Dialog ID. - * - * @return the dialogId value. - */ - public String getDialogId() { - return this.dialogId; - } - - /** - * Get the ivrContext property: Ivr Context. - * - * @return the ivrContext value. - */ - public Object getIvrContext() { - return this.ivrContext; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("resultInformation", resultInformation); - jsonWriter.writeStringField("dialogInputType", dialogInputType != null ? dialogInputType.toString() : null); - jsonWriter.writeStringField("dialogId", dialogId); - jsonWriter.writeUntypedField("ivrContext", ivrContext); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DialogHangup from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DialogHangup if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DialogHangup. - */ - public static DialogHangup fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final DialogHangup event = new DialogHangup(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("resultInformation".equals(fieldName)) { - event.resultInformation = ResultInformation.fromJson(reader); - } else if ("dialogInputType".equals(fieldName)) { - event.dialogInputType = DialogInputType.fromString(reader.getString()); - } else if ("dialogId".equals(fieldName)) { - event.dialogId = reader.getString(); - } else if ("ivrContext".equals(fieldName)) { - event.ivrContext = reader.readUntyped(); - } else { - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogLanguageChange.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogLanguageChange.java deleted file mode 100644 index 9baf46a20f2a..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogLanguageChange.java +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import com.azure.communication.callautomation.models.DialogInputType; -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -import java.io.IOException; - -/** The DialogLanguageChange model. */ -@Fluent -public final class DialogLanguageChange extends CallAutomationEventBase { - - /* - * Contains the resulting SIP code/sub-code and message from NGC services. - */ - private ResultInformation resultInformation; - - /* - * Determines the type of the dialog. - */ - private DialogInputType dialogInputType; - - /* - * Dialog ID - */ - private String dialogId; - - /* - * Selected Language - */ - private String selectedLanguage; - - /* - * Ivr Context - */ - private Object ivrContext; - - /** Creates an instance of DialogLanguageChange class. */ - public DialogLanguageChange() { - } - - /** - * Get the resultInformation property: Contains the resulting SIP code/sub-code and message from NGC services. - * - * @return the resultInformation value. - */ - public ResultInformation getResultInformation() { - return this.resultInformation; - } - - /** - * Get the dialogInputType property: Determines the type of the dialog. - * - * @return the dialogInputType value. - */ - public DialogInputType getDialogInputType() { - return this.dialogInputType; - } - - /** - * Get the dialogId property: Dialog ID. - * - * @return the dialogId value. - */ - public String getDialogId() { - return this.dialogId; - } - - /** - * Get the selectedLanguage property: Selected Language. - * - * @return the selectedLanguage value. - */ - public String getSelectedLanguage() { - return this.selectedLanguage; - } - - /** - * Get the ivrContext property: Ivr Context. - * - * @return the ivrContext value. - */ - public Object getIvrContext() { - return this.ivrContext; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("resultInformation", resultInformation); - jsonWriter.writeStringField("dialogInputType", dialogInputType != null ? dialogInputType.toString() : null); - jsonWriter.writeStringField("dialogId", dialogId); - jsonWriter.writeStringField("selectedLanguage", selectedLanguage); - jsonWriter.writeUntypedField("ivrContext", ivrContext); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DialogLanguageChange from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DialogLanguageChange if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DialogLanguageChange. - */ - public static DialogLanguageChange fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final DialogLanguageChange event = new DialogLanguageChange(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("resultInformation".equals(fieldName)) { - event.resultInformation = ResultInformation.fromJson(reader); - } else if ("dialogInputType".equals(fieldName)) { - event.dialogInputType = DialogInputType.fromString(reader.getString()); - } else if ("dialogId".equals(fieldName)) { - event.dialogId = reader.getString(); - } else if ("selectedLanguage".equals(fieldName)) { - event.selectedLanguage = reader.getString(); - } else if ("ivrContext".equals(fieldName)) { - event.ivrContext = reader.readUntyped(); - } else { - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogSensitivityUpdate.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogSensitivityUpdate.java deleted file mode 100644 index a477b0ddf1af..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogSensitivityUpdate.java +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import com.azure.communication.callautomation.models.DialogInputType; -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -import java.io.IOException; - -/** The DialogSensitivityUpdate model. */ -@Fluent -public final class DialogSensitivityUpdate extends CallAutomationEventBase { - /* - * Contains the resulting SIP code/sub-code and message from NGC services. - */ - private ResultInformation resultInformation; - - /* - * Determines the type of the dialog. - */ - private DialogInputType dialogInputType; - - /* - * Dialog ID - */ - private String dialogId; - - /* - * SensitiveMask - */ - private Boolean sensitiveMask; - - /** Creates an instance of DialogSensitivityUpdate class. */ - public DialogSensitivityUpdate() { - } - - /** - * Get the resultInformation property: Contains the resulting SIP code/sub-code and message from NGC services. - * - * @return the resultInformation value. - */ - public ResultInformation getResultInformation() { - return this.resultInformation; - } - - /** - * Get the dialogInputType property: Determines the type of the dialog. - * - * @return the dialogInputType value. - */ - public DialogInputType getDialogInputType() { - return this.dialogInputType; - } - - /** - * Get the dialogId property: Dialog ID. - * - * @return the dialogId value. - */ - public String getDialogId() { - return this.dialogId; - } - - /** - * Get the sensitiveMask property: SensitiveMask. - * - * @return the sensitiveMask value. - */ - public Boolean isSensitiveMask() { - return this.sensitiveMask; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("resultInformation", resultInformation); - jsonWriter.writeStringField("dialogInputType", dialogInputType != null ? dialogInputType.toString() : null); - jsonWriter.writeStringField("dialogId", dialogId); - jsonWriter.writeBooleanField("sensitiveMask", sensitiveMask); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DialogSensitivityUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DialogSensitivityUpdate if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DialogSensitivityUpdate. - */ - public static DialogSensitivityUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final DialogSensitivityUpdate event = new DialogSensitivityUpdate(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("resultInformation".equals(fieldName)) { - event.resultInformation = ResultInformation.fromJson(reader); - } else if ("dialogInputType".equals(fieldName)) { - event.dialogInputType = DialogInputType.fromString(reader.getString()); - } else if ("dialogId".equals(fieldName)) { - event.dialogId = reader.getString(); - } else if ("sensitiveMask".equals(fieldName)) { - event.sensitiveMask = reader.getBoolean(); - } else { - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogStarted.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogStarted.java deleted file mode 100644 index 3b25f91b461f..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogStarted.java +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import com.azure.communication.callautomation.models.DialogInputType; -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -import java.io.IOException; - -/** The DialogStarted model. */ -@Immutable -public class DialogStarted extends CallAutomationEventBase { - - /* - * Contains the resulting SIP code/sub-code and message from NGC services. - */ - private ResultInformation resultInformation; - - /* - * Determines the type of the dialog. - */ - private DialogInputType dialogInputType; - - /* - * Dialog ID - */ - private String dialogId; - - /** Creates an instance of DialogStarted class. */ - public DialogStarted() { - } - - /** - * Get the resultInformation property: Contains the resulting SIP code/sub-code and message from NGC services. - * - * @return the resultInformation value. - */ - public ResultInformation getResultInformation() { - return this.resultInformation; - } - - /** - * Get the dialogInputType property: Determines the type of the dialog. - * - * @return the dialogInputType value. - */ - public DialogInputType getDialogInputType() { - return this.dialogInputType; - } - - /** - * Get the dialogId property: Dialog ID. - * - * @return the dialogId value. - */ - public String getDialogId() { - return this.dialogId; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("resultInformation", resultInformation); - jsonWriter.writeStringField("dialogInputType", dialogInputType != null ? dialogInputType.toString() : null); - jsonWriter.writeStringField("dialogId", dialogId); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DialogStarted from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DialogStarted if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DialogStarted. - */ - public static DialogStarted fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final DialogStarted event = new DialogStarted(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("resultInformation".equals(fieldName)) { - event.resultInformation = ResultInformation.fromJson(reader); - } else if ("dialogInputType".equals(fieldName)) { - event.dialogInputType = DialogInputType.fromString(reader.getString()); - } else if ("dialogId".equals(fieldName)) { - event.dialogId = reader.getString(); - } else { - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogTransfer.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogTransfer.java deleted file mode 100644 index 69c6a7ddc56a..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/DialogTransfer.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import com.azure.communication.callautomation.models.DialogInputType; -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -import java.io.IOException; - -/** The DialogTransfer model. */ -@Fluent -public final class DialogTransfer extends CallAutomationEventBase { - /* - * Contains the resulting SIP code/sub-code and message from NGC services. - */ - private ResultInformation resultInformation; - - /* - * Determines the type of the dialog. - */ - private DialogInputType dialogInputType; - - /* - * Dialog ID - */ - private String dialogId; - - /* - * Transfer type - */ - private String transferType; - - /* - * Transfer destination - */ - private String transferDestination; - - /* - * IVR context - */ - private Object ivrContext; - - /** Creates an instance of DialogTransfer class. */ - public DialogTransfer() { - } - - /** - * Get the resultInformation property: Contains the resulting SIP code/sub-code and message from NGC services. - * - * @return the resultInformation value. - */ - public ResultInformation getResultInformation() { - return this.resultInformation; - } - - /** - * Get the dialogInputType property: Determines the type of the dialog. - * - * @return the dialogInputType value. - */ - public DialogInputType getDialogInputType() { - return this.dialogInputType; - } - - /** - * Get the dialogId property: Dialog ID. - * - * @return the dialogId value. - */ - public String getDialogId() { - return this.dialogId; - } - - /** - * Get the transferType property: Transfer type. - * - * @return the transferType value. - */ - public String getTransferType() { - return this.transferType; - } - - /** - * Get the transferDestination property: Transfer destination. - * - * @return the transferDestination value. - */ - public String getTransferDestination() { - return this.transferDestination; - } - - /** - * Get the ivrContext property: IVR context. - * - * @return the ivrContext value. - */ - public Object getIvrContext() { - return this.ivrContext; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("resultInformation", resultInformation); - jsonWriter.writeStringField("dialogInputType", dialogInputType != null ? dialogInputType.toString() : null); - jsonWriter.writeStringField("dialogId", dialogId); - jsonWriter.writeStringField("transferType", transferType); - jsonWriter.writeStringField("transferDestination", transferDestination); - jsonWriter.writeUntypedField("ivrContext", ivrContext); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DialogTransfer from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DialogTransfer if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the DialogTransfer. - */ - public static DialogTransfer fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final DialogTransfer event = new DialogTransfer(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("resultInformation".equals(fieldName)) { - event.resultInformation = ResultInformation.fromJson(reader); - } else if ("dialogInputType".equals(fieldName)) { - event.dialogInputType = DialogInputType.fromString(reader.getString()); - } else if ("dialogId".equals(fieldName)) { - event.dialogId = reader.getString(); - } else if ("transferType".equals(fieldName)) { - event.transferType = reader.getString(); - } else if ("transferDestination".equals(fieldName)) { - event.transferDestination = reader.getString(); - } else if ("ivrContext".equals(fieldName)) { - event.ivrContext = reader.readUntyped(); - } else { - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioCompleted.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioCompleted.java deleted file mode 100644 index 014044a82f5b..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioCompleted.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import java.io.IOException; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -/** The HoldAudioCompleted model. */ -@Immutable -public final class HoldAudioCompleted extends CallAutomationEventBase { - - private HoldAudioCompleted() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HoldAudioCompleted from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HoldAudioCompleted if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the HoldAudioCompleted. - */ - public static HoldAudioCompleted fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final HoldAudioCompleted event = new HoldAudioCompleted(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioPaused.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioPaused.java deleted file mode 100644 index 23497dde03f4..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioPaused.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import java.io.IOException; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -/** The HoldAudioPaused model. */ -@Immutable -public final class HoldAudioPaused extends CallAutomationEventBase { - - private HoldAudioPaused() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HoldAudioPaused from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HoldAudioPaused if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the HoldAudioPaused. - */ - public static HoldAudioPaused fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final HoldAudioPaused event = new HoldAudioPaused(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioResumed.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioResumed.java deleted file mode 100644 index 86b80a6924e6..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioResumed.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import java.io.IOException; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -/** The HoldAudioResumed model. */ -@Immutable -public final class HoldAudioResumed extends CallAutomationEventBase { - - private HoldAudioResumed() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HoldAudioResumed from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HoldAudioResumed if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the HoldAudioResumed. - */ - public static HoldAudioResumed fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final HoldAudioResumed event = new HoldAudioResumed(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioStarted.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioStarted.java deleted file mode 100644 index 0a4aaf3ea8d3..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/HoldAudioStarted.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import java.io.IOException; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -/** The HoldAudioStarted model. */ -@Immutable -public final class HoldAudioStarted extends CallAutomationEventBase { - - private HoldAudioStarted() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HoldAudioStarted from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HoldAudioStarted if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the HoldAudioStarted. - */ - public static HoldAudioStarted fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final HoldAudioStarted event = new HoldAudioStarted(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/IncomingCall.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/IncomingCall.java deleted file mode 100644 index 8ee03d2beed9..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/IncomingCall.java +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import java.io.IOException; - -import com.azure.communication.common.CommunicationIdentifier; -import com.azure.communication.callautomation.models.CustomCallingContext; -import com.azure.communication.callautomation.implementation.models.CommunicationIdentifierModel; -import com.azure.communication.callautomation.implementation.converters.CommunicationIdentifierConverter; -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -/** The IncomingCall model. */ -@Immutable -public final class IncomingCall extends CallAutomationEventBase { - private CommunicationIdentifier to; - private CommunicationIdentifier from; - private String callerDisplayName; - private CustomCallingContext customContext; - private String incomingCallContext; - private CommunicationIdentifier onBehalfOfCallee; - - private IncomingCall() { - } - - private IncomingCall(CommunicationIdentifier to, CommunicationIdentifier from, String callerDisplayName, - CustomCallingContext customContext, String incomingCallContext, CommunicationIdentifier onBehalfOfCallee) { - this.to = to; - this.from = from; - this.callerDisplayName = callerDisplayName; - this.customContext = customContext; - this.incomingCallContext = incomingCallContext; - this.onBehalfOfCallee = onBehalfOfCallee; - } - - /** - * Get the to property: The communication identifier of the target user. - * - * @return the to value. - */ - public CommunicationIdentifier getTo() { - return this.to; - } - - /** - * Get the from property: The communication identifier of the user who initiated the call. - * - * @return the from value. - */ - public CommunicationIdentifier getFrom() { - return this.from; - } - - /** - * Get the callerDisplayName property: Display name of caller. - * - * @return the callerDisplayName value. - */ - public String getCallerDisplayName() { - return this.callerDisplayName; - } - - /** - * Get the customContext property: Custom Context of Incoming Call. - * - * @return the customContext value - */ - public CustomCallingContext getCustomContext() { - return this.customContext; - } - - /** - * Get the incomingCallContext property: Incoming call context. - * - * @return the incomingCallContext value. - */ - public String getIncomingCallContext() { - return this.incomingCallContext; - } - - /** - * Get the onBehalfOfCallee property: The communication identifier of the user who is being called on behalf of. - * - * @return the onBehalfOfCallee value. - */ - public CommunicationIdentifier getOnBehalfOfCallee() { - return this.onBehalfOfCallee; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("to", CommunicationIdentifierConverter.convert(to)); - jsonWriter.writeJsonField("from", CommunicationIdentifierConverter.convert(from)); - jsonWriter.writeStringField("callerDisplayName", callerDisplayName); - jsonWriter.writeJsonField("customContext", customContext); - jsonWriter.writeStringField("incomingCallContext", incomingCallContext); - jsonWriter.writeJsonField("onBehalfOfCallee", CommunicationIdentifierConverter.convert(onBehalfOfCallee)); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of IncomingCall from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of IncomingCall if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the IncomingCall. - */ - public static IncomingCall fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final IncomingCall event = new IncomingCall(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("to".equals(fieldName)) { - event.to = CommunicationIdentifierConverter.convert(CommunicationIdentifierModel.fromJson(reader)); - } else if ("from".equals(fieldName)) { - event.from - = CommunicationIdentifierConverter.convert(CommunicationIdentifierModel.fromJson(reader)); - } else if ("callerDisplayName".equals(fieldName)) { - event.callerDisplayName = reader.getString(); - } else if ("customContext".equals(fieldName)) { - event.customContext = CustomCallingContext.fromJson(reader); - } else if ("incomingCallContext".equals(fieldName)) { - event.incomingCallContext = reader.getString(); - } else if ("onBehalfOfCallee".equals(fieldName)) { - event.onBehalfOfCallee - = CommunicationIdentifierConverter.convert(CommunicationIdentifierModel.fromJson(reader)); - } else { - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/PlayPaused.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/PlayPaused.java deleted file mode 100644 index d9db803df0a2..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/PlayPaused.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import java.io.IOException; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -/** The PlayPaused model. */ -@Immutable -public final class PlayPaused extends CallAutomationEventBase { - - private PlayPaused() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of PlayPaused from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of PlayPaused if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the PlayPaused. - */ - public static PlayPaused fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final PlayPaused event = new PlayPaused(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/PlayResumed.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/PlayResumed.java deleted file mode 100644 index 4e336c05d3bd..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/PlayResumed.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models.events; - -import java.io.IOException; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -/** The PlayResumed model. */ -@Immutable -public final class PlayResumed extends CallAutomationEventBase { - - private PlayResumed() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of PlayResumed from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of PlayPaused if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the PlayResumed. - */ - public static PlayResumed fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final PlayResumed event = new PlayResumed(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/StartRecordingFailed.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/StartRecordingFailed.java deleted file mode 100644 index 39616d313e21..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/StartRecordingFailed.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.azure.communication.callautomation.models.events; - -import java.io.IOException; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; - -/** - * The StartRecordingFailed model. - */ -@Immutable -public final class StartRecordingFailed extends CallAutomationEventBase { - - private StartRecordingFailed() { - - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - super.writeFields(jsonWriter); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of StartRecordingFailed from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of StartRecordingFailed if the JsonReader was pointing to an - * instance of it, or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the StartRecordingFailed. - */ - public static StartRecordingFailed fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - final StartRecordingFailed event = new StartRecordingFailed(); - while (jsonReader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if (!event.readField(fieldName, reader)) { - reader.skipChildren(); - } - } - return event; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/module-info.java b/sdk/communication/azure-communication-callautomation/src/main/java/module-info.java index bda469a80dd0..b8a1cc7c42ea 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/module-info.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/module-info.java @@ -9,7 +9,6 @@ exports com.azure.communication.callautomation; exports com.azure.communication.callautomation.models; exports com.azure.communication.callautomation.models.events; - exports com.azure.communication.callautomation.implementation.eventprocessor; // exporting some packages specifically for azure-core opens com.azure.communication.callautomation.implementation.models to com.azure.core; diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationAsyncClientAutomatedLiveTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationAsyncClientAutomatedLiveTests.java index 7b5c107f1c2d..d32417718c58 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationAsyncClientAutomatedLiveTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationAsyncClientAutomatedLiveTests.java @@ -213,121 +213,6 @@ public void createVOIPCallAndRejectAutomatedTest(HttpClient httpClient) { } } - @ParameterizedTest - @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @DisabledIfEnvironmentVariable( - named = "SKIP_LIVE_TEST", - matches = "(?i)(true)", - disabledReason = "Requires environment to be set up") - public void createVOIPCallAndAnswerWithCustomContextThenHangupAutomatedTest(HttpClient httpClient) { - /* Test case: ACS to ACS call - * 1. create a CallAutomationClient. - * 2. create a call from source to one ACS target. - * 3. get updated call properties and check for the connected state. - * 4. hang up the call. - * 5. once call is hung up, verify disconnected event - */ - - CommunicationIdentityAsyncClient identityAsyncClient - = getCommunicationIdentityClientUsingConnectionString(httpClient).addPolicy( - (context, next) -> logHeaders("createVOIPCallAndAnswerWithCustomContextThenHangupAutomatedTest", next)) - .buildAsyncClient(); - - List callDestructors = new ArrayList<>(); - - try { - // create caller and receiver - CommunicationUserIdentifier caller = identityAsyncClient.createUser().block(); - CommunicationIdentifier target = identityAsyncClient.createUser().block(); - - // Create call automation client and use source as the caller. - CallAutomationAsyncClient callerAsyncClient = getCallAutomationClientUsingConnectionString(httpClient) - .addPolicy((context, - next) -> logHeaders("createVOIPCallAndAnswerWithCustomContextThenHangupAutomatedTest", next)) - .sourceIdentity(caller) - .buildAsyncClient(); - // Create call automation client for receivers. - CallAutomationAsyncClient receiverAsyncClient = getCallAutomationClientUsingConnectionString(httpClient) - .addPolicy((context, - next) -> logHeaders("createVOIPCallAndAnswerWithCustomContextThenHangupAutomatedTest", next)) - .buildAsyncClient(); - - String uniqueId = serviceBusWithNewCall(caller, target); - - // create a call - List targets = new ArrayList<>(Collections.singletonList(target)); - CreateGroupCallOptions createCallOptions - = new CreateGroupCallOptions(targets, DISPATCHER_CALLBACK + String.format("?q=%s", uniqueId)); - Response createCallResultResponse - = callerAsyncClient.createGroupCallWithResponse(createCallOptions).block(); - - assertNotNull(createCallResultResponse); - CreateCallResult createCallResult = createCallResultResponse.getValue(); - assertNotNull(createCallResult); - assertNotNull(createCallResult.getCallConnectionProperties()); - String callerConnectionId = createCallResult.getCallConnectionProperties().getCallConnectionId(); - assertNotNull(callerConnectionId); - - // wait for the incomingCallContext - String incomingCallContext = waitForIncomingCallContext(uniqueId, Duration.ofSeconds(10)); - assertNotNull(incomingCallContext); - - // answer the call - AnswerCallOptions answerCallOptions - = new AnswerCallOptions(incomingCallContext, DISPATCHER_CALLBACK + String.format("?q=%s", uniqueId)); - answerCallOptions.getCustomCallingContext().addSipUui("OBOuuivalue"); - answerCallOptions.getCustomCallingContext().addSipX("XheaderOBO", "value"); - - AnswerCallResult answerCallResult - = Objects.requireNonNull(receiverAsyncClient.answerCallWithResponse(answerCallOptions).block()) - .getValue(); - assertNotNull(answerCallResult); - assertNotNull(answerCallResult.getCallConnectionAsync()); - assertNotNull(answerCallResult.getCallConnectionProperties()); - String receiverConnectionId = answerCallResult.getCallConnectionProperties().getCallConnectionId(); - callDestructors.add(answerCallResult.getCallConnectionAsync()); - - // check events to caller side - CallConnected callerCallConnected - = waitForEvent(CallConnected.class, callerConnectionId, Duration.ofSeconds(10)); - ParticipantsUpdated callerParticipantUpdatedEvent - = waitForEvent(ParticipantsUpdated.class, callerConnectionId, Duration.ofSeconds(10)); - assertNotNull(callerCallConnected); - assertNotNull(callerParticipantUpdatedEvent); - - // check events to receiver side - CallConnected receiverCallConnected - = waitForEvent(CallConnected.class, receiverConnectionId, Duration.ofSeconds(10)); - ParticipantsUpdated receiverParticipantUpdatedEvent - = waitForEvent(ParticipantsUpdated.class, callerConnectionId, Duration.ofSeconds(10)); - assertNotNull(receiverCallConnected); - assertNotNull(receiverParticipantUpdatedEvent); - - // hang up the call. - answerCallResult.getCallConnectionAsync().hangUp(true).block(); - - // check if both parties had the call terminated. - CallDisconnected callerCallDisconnected - = waitForEvent(CallDisconnected.class, receiverConnectionId, Duration.ofSeconds(10)); - CallDisconnected receiverCallDisconnected - = waitForEvent(CallDisconnected.class, callerConnectionId, Duration.ofSeconds(10)); - assertNotNull(callerCallDisconnected); - assertNotNull(receiverCallDisconnected); - - } catch (Exception ex) { - fail("Unexpected exception received", ex); - } finally { - if (!callDestructors.isEmpty()) { - try { - callDestructors.forEach(callConnection -> callConnection.hangUpWithResponse(true).block()); - } catch (Exception ignored) { - // Some call might have been terminated during the test, and it will cause exceptions here. - // Do nothing and iterate to next call connection. - } - } - } - } - @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") @DisabledIfEnvironmentVariable( diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationAsyncClientUnitTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationAsyncClientUnitTests.java index b3148f6c8baa..b44f72d2f7a1 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationAsyncClientUnitTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationAsyncClientUnitTests.java @@ -112,25 +112,6 @@ public void answerCall() { assertNotNull(answerCallResult); } - @Test - public void answerCallWithResponseAndCustomContext() { - CallAutomationAsyncClient callAutomationAsyncClient = getCallAutomationAsyncClient(new ArrayList<>( - Collections.singletonList(new AbstractMap.SimpleEntry<>(generateCallProperties(CALL_CONNECTION_ID, - CALL_SERVER_CALL_ID, CALL_CALLER_ID, CALL_CALLER_DISPLAY_NAME, CALL_TARGET_ID, CALL_CONNECTION_STATE, - CALL_SUBJECT, CALL_CALLBACK_URL, null, null), 200)))); - - AnswerCallOptions answerCallOptions = new AnswerCallOptions(CALL_INCOMING_CALL_CONTEXT, CALL_CALLBACK_URL); - answerCallOptions.getCustomCallingContext().addSipUui("OBOuuivalue"); - answerCallOptions.getCustomCallingContext().addSipX("XheaderOBO", "value"); - - Response answerCallResult - = callAutomationAsyncClient.answerCallWithResponse(answerCallOptions).block(); - - assertNotNull(answerCallResult); - assertEquals(200, answerCallResult.getStatusCode()); - assertNotNull(answerCallResult.getValue()); - } - @Test public void answerCallWithResponse() { CallAutomationAsyncClient callAutomationAsyncClient = getCallAutomationAsyncClient(new ArrayList<>( diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationEventParserAndProcessorUnitTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationEventParserAndProcessorUnitTests.java deleted file mode 100644 index dad2eb6fe612..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationEventParserAndProcessorUnitTests.java +++ /dev/null @@ -1,1442 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation; - -import com.azure.communication.callautomation.models.ChoiceResult; -import com.azure.communication.callautomation.models.CustomCallingContext; -import com.azure.communication.callautomation.models.DtmfResult; -import com.azure.communication.callautomation.models.RecognizeResult; -import com.azure.communication.callautomation.models.RecordingState; -import com.azure.communication.callautomation.models.events.AnswerFailed; -import com.azure.communication.callautomation.models.events.CallAutomationEventBase; -import com.azure.communication.callautomation.models.events.CallConnected; -import com.azure.communication.callautomation.models.events.CallTransferAccepted; -import com.azure.communication.callautomation.models.events.CancelAddParticipantFailed; -import com.azure.communication.callautomation.models.events.CancelAddParticipantSucceeded; -import com.azure.communication.callautomation.models.events.ContinuousDtmfRecognitionStopped; -import com.azure.communication.callautomation.models.events.ContinuousDtmfRecognitionToneFailed; -import com.azure.communication.callautomation.models.events.ContinuousDtmfRecognitionToneReceived; -import com.azure.communication.callautomation.models.events.CreateCallFailed; -import com.azure.communication.callautomation.models.events.DialogCompleted; -import com.azure.communication.callautomation.models.events.DialogConsent; -import com.azure.communication.callautomation.models.events.DialogFailed; -import com.azure.communication.callautomation.models.events.DialogHangup; -import com.azure.communication.callautomation.models.events.DialogLanguageChange; -import com.azure.communication.callautomation.models.events.DialogSensitivityUpdate; -import com.azure.communication.callautomation.models.events.DialogStarted; -import com.azure.communication.callautomation.models.events.DialogTransfer; -import com.azure.communication.callautomation.models.events.HoldAudioCompleted; -import com.azure.communication.callautomation.models.events.HoldAudioPaused; -import com.azure.communication.callautomation.models.events.HoldAudioResumed; -import com.azure.communication.callautomation.models.events.HoldAudioStarted; -import com.azure.communication.callautomation.models.events.HoldFailed; -import com.azure.communication.callautomation.models.events.ParticipantsUpdated; -import com.azure.communication.callautomation.models.events.PlayCanceled; -import com.azure.communication.callautomation.models.events.PlayCompleted; -import com.azure.communication.callautomation.models.events.PlayPaused; -import com.azure.communication.callautomation.models.events.PlayResumed; -import com.azure.communication.callautomation.models.events.PlayFailed; -import com.azure.communication.callautomation.models.events.ReasonCode; -import com.azure.communication.callautomation.models.events.ReasonCode.Recognize; -import com.azure.communication.callautomation.models.events.RecognizeCanceled; -import com.azure.communication.callautomation.models.events.RecognizeCompleted; -import com.azure.communication.callautomation.models.events.RecognizeFailed; -import com.azure.communication.callautomation.models.events.RecordingStateChanged; -import com.azure.communication.callautomation.models.events.RemoveParticipantFailed; -import com.azure.communication.callautomation.models.events.RemoveParticipantSucceeded; -import com.azure.communication.callautomation.models.events.SendDtmfTonesCompleted; -import com.azure.communication.callautomation.models.events.SendDtmfTonesFailed; -import com.azure.communication.callautomation.models.events.TranscriptionFailed; -import com.azure.communication.callautomation.models.events.TranscriptionResumed; -import com.azure.communication.callautomation.models.events.TranscriptionStarted; -import com.azure.communication.callautomation.models.events.TranscriptionStatus; -import com.azure.communication.callautomation.models.events.TranscriptionStatusDetails; -import com.azure.communication.callautomation.models.events.TranscriptionStopped; -import com.azure.communication.callautomation.models.events.TranscriptionUpdated; -import com.azure.communication.common.CommunicationIdentifier; -import com.azure.communication.common.PhoneNumberIdentifier; -import com.azure.communication.callautomation.models.events.MediaStreamingStarted; -import com.azure.communication.callautomation.models.events.MediaStreamingStopped; -import com.azure.communication.callautomation.models.events.MediaStreamingFailed; -import com.azure.communication.callautomation.models.events.MediaStreamingStatus; -import com.azure.communication.callautomation.models.events.MediaStreamingStatusDetails; -import com.azure.communication.callautomation.models.events.IncomingCall; -import org.junit.jupiter.api.Test; - -import java.util.List; -import java.util.Objects; -import java.util.Optional; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertInstanceOf; -import static org.junit.jupiter.api.Assertions.assertNotNull; - -public class CallAutomationEventParserAndProcessorUnitTests { - static final String EVENT_PARTICIPANT_UPDATED - = "{\"id\":\"61069ef9-5ca9-457f-ac36-e2bb5e8400ca\",\"source\":\"calling/callConnections/401f3500-62bd-46a9-8c09-9e1b06caca01/ParticipantsUpdated\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\": {\"rawId\":\"8:acs:816df1ca-971b-44d7-b8b1-8fba90748500_00000013-2ff6-dd51-54b7-a43a0d001998\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"8:acs:816df1ca-971b-44d7-b8b1-8fba90748500_00000013-2ff6-dd51-54b7-a43a0d001998\"}}, \"isMuted\": false, \"isOnHold\": false},{\"identifier\": {\"rawId\":\"8:acs:816df1ca-971b-44d7-b8b1-8fba90748500_00000013-2ff7-1579-99bf-a43a0d0010bc\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"8:acs:816df1ca-971b-44d7-b8b1-8fba90748500_00000013-2ff7-1579-99bf-a43a0d0010bc\"}}, \"isMuted\": false, \"isOnHold\": false}],\"type\":\"participantsUpdated\",\"callConnectionId\":\"401f3500-62bd-46a9-8c09-9e1b06caca01\",\"correlationId\":\"ebd8bf1f-0794-494f-bdda-913042c06ef7\"},\"time\":\"2022-08-12T03:35:07.9129474+00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/401f3500-62bd-46a9-8c09-9e1b06caca01/ParticipantsUpdated\"}"; - static final String EVENT_CALL_CONNECTED - = "{\"id\":\"46116fb7-27e0-4a99-9478-a659c8fd4815\",\"source\":\"calling/callConnections/401f3500-62bd-46a9-8c09-9e1b06caca01/CallConnected\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"type\":\"callConnected\",\"callConnectionId\":\"401f3500-62bd-46a9-8c09-9e1b06caca01\",\"correlationId\":\"ebd8bf1f-0794-494f-bdda-913042c06ef7\"},\"time\":\"2022-08-12T03:35:07.8174402+00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/401f3500-62bd-46a9-8c09-9e1b06caca01/CallConnected\"}"; - static final String EVENT_RECOGNIZE_DTMF - = "[{\"id\":\"ac2cb537-2d62-48bf-909e-cc93534c4258\",\"source\":\"calling/callConnections/401f7000-c1c0-41e2-962d-85d0dc1d6f01\",\"type\":\"Microsoft.Communication.RecognizeCompleted\",\"data\":{\"eventSource\":\"calling/callConnections/401f7000-c1c0-41e2-962d-85d0dc1d6f01\",\"operationContext\":\"OperationalContextValue-1118-1049\",\"resultInformation\":{\"code\":200,\"subCode\":8533,\"message\":\"Action completed, DTMF option matched.\"},\"recognitionType\":\"dtmf\",\"dtmfResult\":{\"tones\":[\"five\", \"six\", \"pound\"]},\"choiceResult\":{\"label\":\"Marketing\"},\"callConnectionId\":\"401f7000-c1c0-41e2-962d-85d0dc1d6f01\",\"serverCallId\":\"serverCallId\",\"correlationId\":\"d4f4c1be-59d8-4850-b9bf-ee564c15839d\"},\"time\":\"2022-11-22T01:41:44.5582769+00:00\",\"specversion\":\"1.0\",\"subject\":\"calling/callConnections/401f7000-c1c0-41e2-962d-85d0dc1d6f01\"}]"; - static final String EVENT_RECOGNIZE_CHOICE - = "[{\"id\":\"e25b99ef-3632-45bb-96d1-d9191547ff33\",\"source\":\"calling/callConnections/401f7000-c1c0-41e2-962d-85d0dc1d6f01\",\"type\":\"Microsoft.Communication.RecognizeCompleted\",\"data\":{\"eventSource\":\"calling/callConnections/401f7000-c1c0-41e2-962d-85d0dc1d6f01\",\"operationContext\":\"OperationalContextValue-1118-1049\",\"resultInformation\":{\"code\":200,\"subCode\":8545,\"message\":\"Action completed, Recognized phrase matches a valid option.\"},\"recognitionType\":\"choices\",\"choiceResult\":{\"label\":\"Support\",\"recognizedPhrase\":\"customer help\"},\"callConnectionId\":\"401f7000-c1c0-41e2-962d-85d0dc1d6f01\",\"serverCallId\":\"serverCallId\",\"correlationId\":\"d4f4c1be-59d8-4850-b9bf-ee564c15839d\"},\"time\":\"2022-11-22T01:41:00.1967145+00:00\",\"specversion\":\"1.0\",\"subject\":\"calling/callConnections/401f7000-c1c0-41e2-962d-85d0dc1d6f01\"}]"; - - @Test - public void parseEvent() { - CallAutomationEventBase callAutomationEvent - = CallAutomationEventParser.parseEvents(EVENT_PARTICIPANT_UPDATED).get(0); - - assertNotNull(callAutomationEvent); - assertEquals(callAutomationEvent.getClass(), ParticipantsUpdated.class); - ParticipantsUpdated participantsUpdated = (ParticipantsUpdated) callAutomationEvent; - assertNotNull((participantsUpdated).getParticipants()); - participantsUpdated.getParticipants().forEach(participant -> { - assertNotNull(participant); - assertNotNull(participant.getIdentifier()); - assertNotNull(participant.isMuted()); - assertNotNull(participant.isOnHold()); - }); - } - - @Test - public void parseEventList() { - List callAutomationEventList - = CallAutomationEventParser.parseEvents("[" + EVENT_CALL_CONNECTED + "," + EVENT_PARTICIPANT_UPDATED + "]"); - - assertNotNull(callAutomationEventList); - assertEquals(callAutomationEventList.get(0).getClass(), CallConnected.class); - assertEquals(callAutomationEventList.get(1).getClass(), ParticipantsUpdated.class); - assertNotNull(callAutomationEventList.get(0).getCallConnectionId()); - } - - @Test - public void parseRecordingStateChangedEvent() { - String receivedEvent = "[\n" + " {\n" + " \"id\": \"bf59843a-888f-47ca-8d1c-885c1f5e71dc\",\n" - + " \"source\": \"calling/recordings/serverCallId/recordingId/recordingId/RecordingStateChanged\",\n" - + " \"type\": \"Microsoft.Communication.RecordingStateChanged\",\n" + " \"data\": {\n" - + " \"type\": \"recordingStateChanged\",\n" + " \"recordingId\": \"recordingId\",\n" - + " \"state\": \"active\",\n" - + " \"startDateTime\": \"2022-08-11T23:42:45.4394211+00:00\",\n" - + " \"callConnectionId\": \"callConnectionId\",\n" - + " \"serverCallId\": \"serverCallId\",\n" + " \"correlationId\": \"correlationId\"\n" - + " },\n" + " \"time\": \"2022-08-11T23:42:45.5346632+00:00\",\n" - + " \"specversion\": \"1.0\",\n" + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/recordings/serverCallId/recordingId/recordingId\"\n" + " }\n" + "]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - RecordingStateChanged recordingEvent = (RecordingStateChanged) event; - assertNotNull(recordingEvent); - assertEquals("serverCallId", recordingEvent.getServerCallId()); - assertEquals("recordingId", recordingEvent.getRecordingId()); - assertEquals(RecordingState.ACTIVE, recordingEvent.getRecordingState()); - } - - @Test - public void parsePlayCompletedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + "\"source\": \"calling/callConnections/callConnectionId/PlayCompleted\",\n" - + "\"type\": \"Microsoft.Communication.PlayCompleted\",\n" + "\"data\": {\n" + "\"resultInformation\": {\n" - + "\"code\": 200,\n" + "\"subCode\": 0,\n" + "\"message\": \"Action completed successfully.\"\n" + "},\n" - + "\"type\": \"playCompleted\",\n" + "\"callConnectionId\": \"callConnectionId\",\n" - + "\"serverCallId\": \"serverCallId\",\n" + "\"correlationId\": \"correlationId\"\n" + "},\n" - + "\"time\": \"2022-08-12T03:13:25.0252763+00:00\",\n" + "\"specversion\": \"1.0\",\n" - + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/callConnectionId\"\n" + "}]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - PlayCompleted playCompleted = (PlayCompleted) event; - assertNotNull(playCompleted); - assertEquals("serverCallId", playCompleted.getServerCallId()); - assertEquals(200, playCompleted.getResultInformation().getCode()); - assertEquals(ReasonCode.COMPLETED_SUCCESSFULLY, playCompleted.getReasonCode()); - } - - @Test - public void parsePlayFailedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + "\"source\": \"calling/callConnections/callConnectionId/PlayFailed\",\n" - + "\"type\": \"Microsoft.Communication.PlayFailed\",\n" + "\"data\": {\n" + "\"resultInformation\": {\n" - + "\"code\": 400,\n" + "\"subCode\": 8536,\n" - + "\"message\": \"Action failed, file could not be downloaded.\"\n" + "},\n" + "\"type\": \"playFailed\",\n" - + "\"callConnectionId\": \"callConnectionId\",\n" + "\"serverCallId\": \"serverCallId\",\n" - + "\"correlationId\": \"correlationId\"\n" + "},\n" + "\"time\": \"2022-08-12T03:13:25.0252763+00:00\",\n" - + "\"specversion\": \"1.0\",\n" + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/callConnectionId\"\n" + "}]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - PlayFailed playFailed = (PlayFailed) event; - assertNotNull(playFailed); - assertEquals("serverCallId", playFailed.getServerCallId()); - assertEquals(400, playFailed.getResultInformation().getCode()); - assertEquals(ReasonCode.Play.DOWNLOAD_FAILED, playFailed.getReasonCode()); - } - - @Test - public void parsePlayCanceledEvent() { - String receivedEvent = "[{\n" + "\"id\": \"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + "\"source\": \"calling/callConnections/callConnectionId/PlayCanceled\",\n" - + "\"type\": \"Microsoft.Communication.PlayCanceled\",\n" + "\"data\": {\n" - + "\"type\": \"playCanceled\",\n" + "\"callConnectionId\": \"callConnectionId\",\n" - + "\"serverCallId\": \"serverCallId\",\n" + "\"correlationId\": \"correlationId\"\n" + "},\n" - + "\"time\": \"2022-08-12T03:13:25.0252763+00:00\",\n" + "\"specversion\": \"1.0\",\n" - + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/callConnectionId\"\n" + "}]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - PlayCanceled playCanceled = (PlayCanceled) event; - assertNotNull(playCanceled); - assertEquals("serverCallId", playCanceled.getServerCallId()); - } - - @Test - public void parseRecognizeCompletedWithChoiceEvent() { - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(EVENT_RECOGNIZE_CHOICE).get(0); - assertNotNull(event); - RecognizeCompleted recognizeCompleted = (RecognizeCompleted) event; - assertNotNull(recognizeCompleted); - Optional choiceResult = recognizeCompleted.getRecognizeResult(); - assertInstanceOf(ChoiceResult.class, choiceResult.get()); - assertEquals("serverCallId", recognizeCompleted.getServerCallId()); - assertEquals(200, recognizeCompleted.getResultInformation().getCode()); - assertEquals(Recognize.SPEECH_OPTION_MATCHED, recognizeCompleted.getReasonCode()); - } - - @Test - public void parseRecognizeCompletedWithDtmfEvent() { - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(EVENT_RECOGNIZE_DTMF).get(0); - assertNotNull(event); - RecognizeCompleted recognizeCompleted = (RecognizeCompleted) event; - Optional dtmfResult = recognizeCompleted.getRecognizeResult(); - DtmfResult tonesResult = (DtmfResult) dtmfResult.get(); - assertInstanceOf(DtmfResult.class, dtmfResult.get()); - String tonesInString = tonesResult.convertToString(); - assertEquals(tonesInString, "56#"); - assertNotNull(recognizeCompleted); - assertEquals("serverCallId", recognizeCompleted.getServerCallId()); - assertEquals(200, recognizeCompleted.getResultInformation().getCode()); - assertEquals(Recognize.DMTF_OPTION_MATCHED, recognizeCompleted.getReasonCode()); - } - - @Test - public void parseRecognizeFailedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + "\"source\": \"calling/callConnections/callConnectionId/RecognizeCompleted\",\n" - + "\"type\": \"Microsoft.Communication.RecognizeFailed\",\n" + "\"data\": {\n" - + "\"resultInformation\": {\n" + "\"code\": 400,\n" + "\"subCode\": 8510,\n" - + "\"message\": \"Action failed, initial silence timeout reached.\"\n" + "},\n" - + "\"type\": \"recognizeFailed\",\n" + "\"callConnectionId\": \"callConnectionId\",\n" - + "\"serverCallId\": \"serverCallId\",\n" + "\"correlationId\": \"correlationId\"\n" + "},\n" - + "\"time\": \"2022-08-12T03:13:25.0252763+00:00\",\n" + "\"specversion\": \"1.0\",\n" - + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/callConnectionId\"\n" + "}]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - RecognizeFailed recognizeFailed = (RecognizeFailed) event; - assertNotNull(recognizeFailed); - assertEquals("serverCallId", recognizeFailed.getServerCallId()); - assertEquals(400, recognizeFailed.getResultInformation().getCode()); - assertEquals(ReasonCode.Recognize.INITIAL_SILENCE_TIMEOUT, recognizeFailed.getReasonCode()); - } - - @Test - public void parseRecognizeCanceledEvent() { - String receivedEvent = "[{\n" + "\"id\": \"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + "\"source\": \"calling/callConnections/callConnectionId/RecognizeCanceled\",\n" - + "\"type\": \"Microsoft.Communication.RecognizeCanceled\",\n" + "\"data\": {\n" - + "\"type\": \"recognizeCanceled\",\n" + "\"callConnectionId\": \"callConnectionId\",\n" - + "\"serverCallId\": \"serverCallId\",\n" + "\"correlationId\": \"correlationId\"\n" + "},\n" - + "\"time\": \"2022-08-12T03:13:25.0252763+00:00\",\n" + "\"specversion\": \"1.0\",\n" - + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/callConnectionId\"\n" + "}]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - RecognizeCanceled recognizeCanceled = (RecognizeCanceled) event; - assertNotNull(recognizeCanceled); - assertEquals("serverCallId", recognizeCanceled.getServerCallId()); - } - - @Test - public void parseAndProcessRemoveParticipantSucceededEvent() { - String receivedEvent = "[{\n" + "\"id\": \"c3220fa3-79bd-473e-96a2-3ecb5be7d71f\",\n" - + "\"source\": \"calling/callConnections/421f3500-f5de-4c12-bf61-9e2641433687\",\n" - + "\"type\": \"Microsoft.Communication.RemoveParticipantSucceeded\",\n" + "\"data\": {\n" - + "\"operationContext\": \"context\",\n" + "\"participant\": {\n" + "\"rawId\": \"rawId\",\n" - + "\"phoneNumber\": {\n" + "\"value\": \"value\"\n" + "}\n" + "},\n" - + "\"callConnectionId\": \"callConnectionId\",\n" + "\"serverCallId\": \"serverCallId\",\n" - + "\"correlationId\": \"b880bd5a-1916-470a-b43d-aabf3caff91c\"\n" + "},\n" - + "\"time\": \"2023-03-22T16:57:09.287755+00:00\",\n" + "\"specversion\": \"1.0\",\n" - + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/421f3500-f5de-4c12-bf61-9e2641433687\"\n" + "}]"; - - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - - RemoveParticipantSucceeded removeParticipantSucceeded = (RemoveParticipantSucceeded) event; - - assertNotNull(removeParticipantSucceeded); - assertEquals("serverCallId", removeParticipantSucceeded.getServerCallId()); - assertEquals("callConnectionId", removeParticipantSucceeded.getCallConnectionId()); - assertEquals("rawId", removeParticipantSucceeded.getParticipant().getRawId()); - - CallAutomationEventProcessor callAutomationEventProcessor = new CallAutomationEventProcessor(); - callAutomationEventProcessor.processEvents(receivedEvent); - RemoveParticipantSucceeded eventFromProcessor - = callAutomationEventProcessor.waitForEventProcessor(removeParticipantSucceeded.getCallConnectionId(), - removeParticipantSucceeded.getOperationContext(), RemoveParticipantSucceeded.class); - assertEquals("serverCallId", eventFromProcessor.getServerCallId()); - assertEquals("callConnectionId", eventFromProcessor.getCallConnectionId()); - assertEquals("rawId", eventFromProcessor.getParticipant().getRawId()); - } - - @Test - public void parseAndProcessRemoveParticipantFailedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"c3220fa3-79bd-473e-96a2-3ecb5be7d71f\",\n" - + "\"source\": \"calling/callConnections/421f3500-f5de-4c12-bf61-9e2641433687\",\n" - + "\"type\": \"Microsoft.Communication.RemoveParticipantFailed\",\n" + "\"data\": {\n" - + "\"operationContext\": \"context\",\n" + "\"participant\": {\n" + "\"rawId\": \"rawId\",\n" - + "\"phoneNumber\": {\n" + "\"value\": \"value\"\n" + "}\n" + "},\n" - + "\"callConnectionId\": \"callConnectionId\",\n" + "\"serverCallId\": \"serverCallId\",\n" - + "\"correlationId\": \"b880bd5a-1916-470a-b43d-aabf3caff91c\"\n" + "},\n" - + "\"time\": \"2023-03-22T16:57:09.287755+00:00\",\n" + "\"specversion\": \"1.0\",\n" - + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/421f3500-f5de-4c12-bf61-9e2641433687\"\n" + "}]"; - - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - - RemoveParticipantFailed removeParticipantFailed = (RemoveParticipantFailed) event; - - assertNotNull(removeParticipantFailed); - assertEquals("serverCallId", removeParticipantFailed.getServerCallId()); - assertEquals("callConnectionId", removeParticipantFailed.getCallConnectionId()); - assertEquals("rawId", removeParticipantFailed.getParticipant().getRawId()); - - CallAutomationEventProcessor callAutomationEventProcessor = new CallAutomationEventProcessor(); - callAutomationEventProcessor - .waitForEventProcessorAsync(removeParticipantFailed.getCallConnectionId(), - removeParticipantFailed.getOperationContext(), RemoveParticipantFailed.class) - .subscribe(eventFromProcessor -> { - assertEquals("serverCallId", eventFromProcessor.getServerCallId()); - assertEquals("callConnectionId", eventFromProcessor.getCallConnectionId()); - assertEquals("rawId", eventFromProcessor.getParticipant().getRawId()); - }); - callAutomationEventProcessor.processEvents(receivedEvent); - } - - @Test - public void parseContinuousDtmfRecognitionToneReceivedEvent() { - - String receivedEvent = "[\n" + " {\n" + " \"id\":\"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + " \"source\":\"calling/callConnections/callConnectionId/ContinuousDtmfRecognitionToneReceived\",\n" - + " \"type\":\"Microsoft.Communication.ContinuousDtmfRecognitionToneReceived\",\n" - + " \"specversion\":\"1.0\",\n" + " \"data\":{\n" - + " \"eventSource\":\"calling/callConnections/callConnectionId/ContinuousDtmfRecognitionToneReceived\",\n" - + " \"resultInformation\":{\n" + " \"code\":200,\n" + " \"subCode\":0,\n" - + " \"message\":\"DTMF tone received successfully.\"\n" + " },\n" - + " \"type\":\"ContinuousDtmfRecognitionToneReceived\",\n" + " \"sequenceId\":1,\n" - + " \"tone\":\"eight\",\n" + " \"callConnectionId\":\"callConnectionId\",\n" - + " \"serverCallId\":\"serverCallId\",\n" + " \"correlationId\":\"correlationId\",\n" - + " \"operationContext\":\"context\",\n" - + " \"time\":\"2022-08-12T03:13:25.0252763+00:00\",\n" + " \"specversion\":\"1.0\",\n" - + " \"datacontenttype\":\"application/json\",\n" - + " \"subject\":\"calling/callConnections/callConnectionId/ContinuousDtmfRecognitionToneReceived\"\n" - + " }\n" + " }\n" + "]"; - - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - - ContinuousDtmfRecognitionToneReceived continuousDtmfRecognitionToneReceived - = (ContinuousDtmfRecognitionToneReceived) event; - - assertNotNull(continuousDtmfRecognitionToneReceived); - assertEquals("serverCallId", continuousDtmfRecognitionToneReceived.getServerCallId()); - assertEquals("callConnectionId", continuousDtmfRecognitionToneReceived.getCallConnectionId()); - assertEquals("eight", continuousDtmfRecognitionToneReceived.getTone().toString()); - assertEquals(1, continuousDtmfRecognitionToneReceived.getSequenceId()); - assertEquals("correlationId", continuousDtmfRecognitionToneReceived.getCorrelationId()); - assertEquals(200, continuousDtmfRecognitionToneReceived.getResultInformation().getCode()); - assertEquals(0, continuousDtmfRecognitionToneReceived.getResultInformation().getSubCode()); - assertEquals("context", continuousDtmfRecognitionToneReceived.getOperationContext()); - assertEquals("DTMF tone received successfully.", - continuousDtmfRecognitionToneReceived.getResultInformation().getMessage()); - } - - @Test - public void parseContinuousDtmfRecognitionToneFailedEvent() { - - String receivedEvent = "[\n" + " {\n" + " \"id\":\"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + " \"source\":\"calling/callConnections/callConnectionId/ContinuousDtmfRecognitionToneFailed\",\n" - + " \"type\":\"Microsoft.Communication.ContinuousDtmfRecognitionToneFailed\",\n" - + " \"specversion\":\"1.0\",\n" + " \"data\":{\n" - + " \"eventSource\":\"calling/callConnections/callConnectionId/ContinuousDtmfRecognitionToneFailed\",\n" - + " \"resultInformation\":{\n" + " \"code\":400,\n" + " \"subCode\":12323,\n" - + " \"message\":\"Continuous DTMF tone Couldn't be received successfully.\"\n" + " },\n" - + " \"type\":\"ContinuousDtmfRecognitionToneFailed\",\n" - + " \"callConnectionId\":\"callConnectionId\",\n" + " \"serverCallId\":\"serverCallId\",\n" - + " \"correlationId\":\"correlationId\",\n" + " \"operationContext\":\"context\",\n" - + " \"time\":\"2022-08-12T03:13:25.0252763+00:00\",\n" + " \"specversion\":\"1.0\",\n" - + " \"datacontenttype\":\"application/json\",\n" - + " \"subject\":\"calling/callConnections/callConnectionId/ContinuousDtmfRecognitionToneFailed\"\n" - + " }\n" + " }\n" + "]"; - - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - - ContinuousDtmfRecognitionToneFailed continuousDtmfRecognitionToneFailed - = (ContinuousDtmfRecognitionToneFailed) event; - - assertNotNull(continuousDtmfRecognitionToneFailed); - assertEquals("serverCallId", continuousDtmfRecognitionToneFailed.getServerCallId()); - assertEquals("callConnectionId", continuousDtmfRecognitionToneFailed.getCallConnectionId()); - assertEquals("correlationId", continuousDtmfRecognitionToneFailed.getCorrelationId()); - assertEquals(400, continuousDtmfRecognitionToneFailed.getResultInformation().getCode()); - assertEquals(12323, continuousDtmfRecognitionToneFailed.getResultInformation().getSubCode()); - assertEquals("context", continuousDtmfRecognitionToneFailed.getOperationContext()); - assertEquals("Continuous DTMF tone Couldn't be received successfully.", - continuousDtmfRecognitionToneFailed.getResultInformation().getMessage()); - } - - @Test - public void parseContinuousDtmfRecognitionStoppedEvent() { - - String receivedEvent = "[\n" + " {\n" + " \"id\":\"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + " \"source\":\"calling/callConnections/callConnectionId/ContinuousDtmfRecognitionStopped\",\n" - + " \"type\":\"Microsoft.Communication.ContinuousDtmfRecognitionStopped\",\n" - + " \"specversion\":\"1.0\",\n" + " \"data\":{\n" - + " \"eventSource\":\"calling/callConnections/callConnectionId/ContinuousDtmfRecognitionStopped\",\n" - + " \"resultInformation\":{\n" + " \"code\":200,\n" + " \"subCode\":0,\n" - + " \"message\":\"Continuous DTMF Recognition stopped successfully.\"\n" + " },\n" - + " \"type\":\"ContinuousDtmfRecognitionStopped\",\n" - + " \"callConnectionId\":\"callConnectionId\",\n" + " \"serverCallId\":\"serverCallId\",\n" - + " \"correlationId\":\"correlationId\",\n" + " \"operationContext\":\"context\",\n" - + " \"time\":\"2022-08-12T03:13:25.0252763+00:00\",\n" + " \"specversion\":\"1.0\",\n" - + " \"datacontenttype\":\"application/json\",\n" - + " \"subject\":\"calling/callConnections/callConnectionId/ContinuousDtmfRecognitionStopped\"\n" - + " }\n" + " }\n" + "]"; - - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - - ContinuousDtmfRecognitionStopped continuousDtmfRecognitionStopped = (ContinuousDtmfRecognitionStopped) event; - - assertNotNull(continuousDtmfRecognitionStopped); - assertEquals("serverCallId", continuousDtmfRecognitionStopped.getServerCallId()); - assertEquals("callConnectionId", continuousDtmfRecognitionStopped.getCallConnectionId()); - assertEquals("correlationId", continuousDtmfRecognitionStopped.getCorrelationId()); - assertEquals(200, continuousDtmfRecognitionStopped.getResultInformation().getCode()); - assertEquals(0, continuousDtmfRecognitionStopped.getResultInformation().getSubCode()); - assertEquals("context", continuousDtmfRecognitionStopped.getOperationContext()); - assertEquals("Continuous DTMF Recognition stopped successfully.", - continuousDtmfRecognitionStopped.getResultInformation().getMessage()); - } - - @Test - public void parseSendDtmfTonesCompletedEvent() { - - String receivedEvent = "[\n" + " {\n" + " \"id\":\"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + " \"source\":\"calling/callConnections/callConnectionId/SendDtmfTonesCompleted\",\n" - + " \"type\":\"Microsoft.Communication.SendDtmfTonesCompleted\",\n" - + " \"specversion\":\"1.0\",\n" + " \"data\":{\n" - + " \"eventSource\":\"calling/callConnections/callConnectionId/SendDtmfTonesCompleted\",\n" - + " \"resultInformation\":{\n" + " \"code\":200,\n" + " \"subCode\":0,\n" - + " \"message\":\"Send DTMF completed successfully.\"\n" + " },\n" - + " \"type\":\"SendDtmfTonesCompleted\",\n" - + " \"callConnectionId\":\"callConnectionId\",\n" + " \"serverCallId\":\"serverCallId\",\n" - + " \"correlationId\":\"correlationId\",\n" + " \"operationContext\":\"context\",\n" - + " \"time\":\"2022-08-12T03:13:25.0252763+00:00\",\n" + " \"specversion\":\"1.0\",\n" - + " \"datacontenttype\":\"application/json\",\n" - + " \"subject\":\"calling/callConnections/callConnectionId/SendDtmfTonesCompleted\"\n" + " }\n" - + " }\n" + "]"; - - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - - SendDtmfTonesCompleted sendDtmfTonesCompleted = (SendDtmfTonesCompleted) event; - - assertNotNull(sendDtmfTonesCompleted); - assertEquals("serverCallId", sendDtmfTonesCompleted.getServerCallId()); - assertEquals("callConnectionId", sendDtmfTonesCompleted.getCallConnectionId()); - assertEquals("correlationId", sendDtmfTonesCompleted.getCorrelationId()); - assertEquals(200, sendDtmfTonesCompleted.getResultInformation().getCode()); - assertEquals(0, sendDtmfTonesCompleted.getResultInformation().getSubCode()); - assertEquals("context", sendDtmfTonesCompleted.getOperationContext()); - assertEquals("Send DTMF completed successfully.", sendDtmfTonesCompleted.getResultInformation().getMessage()); - } - - @Test - public void parseSendDtmfTonesFailedEvent() { - - String receivedEvent = "[\n" + " {\n" + " \"id\":\"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + " \"source\":\"calling/callConnections/callConnectionId/SendDtmfTonesFailed\",\n" - + " \"type\":\"Microsoft.Communication.SendDtmfTonesFailed\",\n" + " \"specversion\":\"1.0\",\n" - + " \"data\":{\n" - + " \"eventSource\":\"calling/callConnections/callConnectionId/SendDtmfTonesFailed\",\n" - + " \"resultInformation\":{\n" + " \"code\":200,\n" + " \"subCode\":0,\n" - + " \"message\":\"Send DTMF couldn't be completed successfully.\"\n" + " },\n" - + " \"type\":\"SendDtmfTonesFailed\",\n" + " \"callConnectionId\":\"callConnectionId\",\n" - + " \"serverCallId\":\"serverCallId\",\n" + " \"correlationId\":\"correlationId\",\n" - + " \"operationContext\":\"context\",\n" - + " \"time\":\"2022-08-12T03:13:25.0252763+00:00\",\n" + " \"specversion\":\"1.0\",\n" - + " \"datacontenttype\":\"application/json\",\n" - + " \"subject\":\"calling/callConnections/callConnectionId/SendDtmfTonesFailed\"\n" + " }\n" - + " }\n" + "]"; - - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - - SendDtmfTonesFailed sendDtmfTonesFailed = (SendDtmfTonesFailed) event; - - assertNotNull(sendDtmfTonesFailed); - assertEquals("serverCallId", sendDtmfTonesFailed.getServerCallId()); - assertEquals("callConnectionId", sendDtmfTonesFailed.getCallConnectionId()); - assertEquals("correlationId", sendDtmfTonesFailed.getCorrelationId()); - assertEquals(200, sendDtmfTonesFailed.getResultInformation().getCode()); - assertEquals(0, sendDtmfTonesFailed.getResultInformation().getSubCode()); - assertEquals("context", sendDtmfTonesFailed.getOperationContext()); - assertEquals("Send DTMF couldn't be completed successfully.", - sendDtmfTonesFailed.getResultInformation().getMessage()); - } - - @Test - public void parseTransferAccptedEvent() { - String receivedEvent = "[\n" + " {\n" + " \"id\": \"91f8b34b-383c-431d-9fa5-79d39fad9300\",\n" - + " \"source\": \"calling/callConnections/411f0b00-dc73-4528-a9e6-968ba983d2a1\",\n" - + " \"type\": \"Microsoft.Communication.CallTransferAccepted\",\n" + " \"data\": {\n" - + " \"resultInformation\": {\n" + " \"code\": 200,\n" - + " \"subCode\": 7015,\n" - + " \"message\": \"The transfer operation completed successfully.\"\n" + " },\n" - + " \"transferTarget\": {\n" - + " \"rawId\": \"8:acs:3afbe310-c6d9-4b6f-a11e-c2aeb352f207_0000001a-0f2f-2234-655d-573a0d00443e\",\n" - + " \"kind\": \"communicationUser\",\n" + " \"communicationUser\": {\n" - + " \"id\": \"8:acs:3afbe310-c6d9-4b6f-a11e-c2aeb352f207_0000001a-0f2f-2234-655d-573a0d00443e\"\n" - + " }\n" + " },\n" + " \"transferee\": {\n" - + " \"rawId\": \"8:acs:3afbe310-c6d9-4b6f-a11e-c2aeb352f207_0000001a-0f2e-e2b4-655d-573a0d004434\",\n" - + " \"kind\": \"communicationUser\",\n" + " \"communicationUser\": {\n" - + " \"id\": \"8:acs:3afbe310-c6d9-4b6f-a11e-c2aeb352f207_0000001a-0f2e-e2b4-655d-573a0d004434\"\n" - + " }\n" + " },\n" - + " \"callConnectionId\": \"411f0b00-dc73-4528-a9e6-968ba983d2a1\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEuY29udi5za3lwZS5jb20vY29udi8yZWtNYmJRN3VVbUY1RDJERFdITWJnP2k9MTUmZT02MzgyNTMwMzY2ODQ5NzkwMDI=\",\n" - + " \"correlationId\": \"be43dd55-38e9-4de8-9d75-e20b6b32744f\"\n" + " },\n" - + " \"time\": \"2023-07-19T18:31:16.6795146+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/411f0b00-dc73-4528-a9e6-968ba983d2a1\"\n" + " }\n" - + "]"; - CallTransferAccepted event = (CallTransferAccepted) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEuY29udi5za3lwZS5jb20vY29udi8yZWtNYmJRN3VVbUY1RDJERFdITWJnP2k9MTUmZT02MzgyNTMwMzY2ODQ5NzkwMDI=", - event.getServerCallId()); - assertEquals("411f0b00-dc73-4528-a9e6-968ba983d2a1", event.getCallConnectionId()); - assertEquals("be43dd55-38e9-4de8-9d75-e20b6b32744f", event.getCorrelationId()); - assertEquals("The transfer operation completed successfully.", event.getResultInformation().getMessage()); - assertEquals("8:acs:3afbe310-c6d9-4b6f-a11e-c2aeb352f207_0000001a-0f2f-2234-655d-573a0d00443e", - event.getTransferTarget().getRawId()); - assertEquals("8:acs:3afbe310-c6d9-4b6f-a11e-c2aeb352f207_0000001a-0f2e-e2b4-655d-573a0d004434", - event.getTransferee().getRawId()); - - CallAutomationEventProcessor callAutomationEventProcessor = new CallAutomationEventProcessor(); - callAutomationEventProcessor.processEvents(receivedEvent); - CallAutomationEventBase eventComing = callAutomationEventProcessor.waitForEventProcessor( - eventFromProcessor -> Objects.equals(event.getServerCallId(), eventFromProcessor.getServerCallId()) - && Objects.equals(event.getCallConnectionId(), eventFromProcessor.getCallConnectionId())); - - assertNotNull(eventComing); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEuY29udi5za3lwZS5jb20vY29udi8yZWtNYmJRN3VVbUY1RDJERFdITWJnP2k9MTUmZT02MzgyNTMwMzY2ODQ5NzkwMDI=", - eventComing.getServerCallId()); - assertEquals("411f0b00-dc73-4528-a9e6-968ba983d2a1", eventComing.getCallConnectionId()); - assertEquals("be43dd55-38e9-4de8-9d75-e20b6b32744f", eventComing.getCorrelationId()); - assertEquals("The transfer operation completed successfully.", - ((CallTransferAccepted) eventComing).getResultInformation().getMessage()); - assertEquals("8:acs:3afbe310-c6d9-4b6f-a11e-c2aeb352f207_0000001a-0f2f-2234-655d-573a0d00443e", - ((CallTransferAccepted) eventComing).getTransferTarget().getRawId()); - assertEquals("8:acs:3afbe310-c6d9-4b6f-a11e-c2aeb352f207_0000001a-0f2e-e2b4-655d-573a0d004434", - ((CallTransferAccepted) eventComing).getTransferee().getRawId()); - } - - @Test - public void parseCancelAddParticipantSucceededEvent() { - String receivedEvent = "[{\n" + "\"id\": \"c3220fa3-79bd-473e-96a2-3ecb5be7d71f\",\n" - + "\"source\": \"calling/callConnections/421f3500-f5de-4c12-bf61-9e2641433687\",\n" - + "\"type\": \"Microsoft.Communication.CancelAddParticipantSucceeded\",\n" + "\"data\": {\n" - + "\"operationContext\": \"context\",\n" + "\"callConnectionId\": \"callConnectionId\",\n" - + "\"serverCallId\": \"serverCallId\",\n" + "\"invitationId\": \"b880bd5a-1916-470a-b43d-aabf3caff91c\",\n" - + "\"correlationId\": \"b880bd5a-1916-470a-b43d-aabf3caff91c\"\n" + "},\n" - + "\"time\": \"2023-03-22T16:57:09.287755+00:00\",\n" + "\"specversion\": \"1.0\",\n" - + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/421f3500-f5de-4c12-bf61-9e2641433687\"\n" + "}]"; - - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - - CancelAddParticipantSucceeded cancelAddParticipantSucceeded = (CancelAddParticipantSucceeded) event; - - assertNotNull(cancelAddParticipantSucceeded); - assertEquals("serverCallId", cancelAddParticipantSucceeded.getServerCallId()); - assertEquals("callConnectionId", cancelAddParticipantSucceeded.getCallConnectionId()); - assertEquals("b880bd5a-1916-470a-b43d-aabf3caff91c", cancelAddParticipantSucceeded.getInvitationId()); - } - - @Test - public void parseCancelAddParticipantFailedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"c3220fa3-79bd-473e-96a2-3ecb5be7d71f\",\n" - + "\"source\": \"calling/callConnections/421f3500-f5de-4c12-bf61-9e2641433687\",\n" - + "\"type\": \"Microsoft.Communication.CancelAddParticipantFailed\",\n" + "\"data\": {\n" - + "\"operationContext\": \"context\",\n" + "\"callConnectionId\": \"callConnectionId\",\n" - + "\"serverCallId\": \"serverCallId\",\n" + "\"invitationId\": \"b880bd5a-1916-470a-b43d-aabf3caff91c\",\n" - + "\"correlationId\": \"b880bd5a-1916-470a-b43d-aabf3caff91c\"\n" + "},\n" - + "\"time\": \"2023-03-22T16:57:09.287755+00:00\",\n" + "\"specversion\": \"1.0\",\n" - + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/421f3500-f5de-4c12-bf61-9e2641433687\"\n" + "}]"; - - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - - CancelAddParticipantFailed cancelAddParticipantFailed = (CancelAddParticipantFailed) event; - - assertNotNull(cancelAddParticipantFailed); - assertEquals("serverCallId", cancelAddParticipantFailed.getServerCallId()); - assertEquals("callConnectionId", cancelAddParticipantFailed.getCallConnectionId()); - assertEquals("b880bd5a-1916-470a-b43d-aabf3caff91c", cancelAddParticipantFailed.getInvitationId()); - - CallAutomationEventProcessor callAutomationEventProcessor = new CallAutomationEventProcessor(); - callAutomationEventProcessor.attachOngoingEventProcessor(cancelAddParticipantFailed.getCallConnectionId(), - eventToHandle -> { - assertEquals("serverCallId", eventToHandle.getServerCallId()); - assertEquals("callConnectionId", eventToHandle.getCallConnectionId()); - assertEquals("b880bd5a-1916-470a-b43d-aabf3caff91c", eventToHandle.getInvitationId()); - }, CancelAddParticipantFailed.class); - callAutomationEventProcessor.processEvents(receivedEvent); - callAutomationEventProcessor.detachOngoingEventProcessor(cancelAddParticipantFailed.getCallConnectionId(), - CancelAddParticipantFailed.class); - } - - @Test - public void parseDialogCompletedEvent() { - String receivedEvent = "\n" + " {\n" + " \"id\": \"91f8b34b-383c-431d-9fa5-79d39fad9300\",\n" - + " \"source\": \"calling/callConnections/441fbf00-5b21-4beb-bd4d-fd665ca4b65f\",\n" - + " \"type\": \"Microsoft.Communication.DialogCompleted\",\n" + " \"data\": {\n" - + " \"operationContext\": \"context\",\n" + " \"resultInformation\": {\n" - + " \"code\": 200,\n" + " \"subCode\": 0,\n" - + " \"message\": \"Success Result\"\n" + " },\n" - + " \"dialogInputType\": \"powerVirtualAgents\",\n" - + " \"dialogId\": \"92e08834-b6ee-4ede-8956-9fefa27a691c\",\n" - + " \"callConnectionId\": \"441fbf00-5b21-4beb-bd4d-fd665ca4b65f\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDkuY29udi5za3lwZS5jb20vY29udi9ubUpvbG9wMUhrdWhDVllYNUlxTTZnP2k9OCZlPTYzODI1NjEzMTYxNDIwOTA2MQ==\",\n" - + " \"correlationId\": \"fb2d738b-d9cb-496c-8be6-416aeecd4d96\"\n" + " },\n" - + " \"time\": \"2023-07-27T07:48:56.0766803+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/441fbf00-5b21-4beb-bd4d-fd665ca4b65f\"\n" + " }]"; - DialogCompleted event = (DialogCompleted) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDkuY29udi5za3lwZS5jb20vY29udi9ubUpvbG9wMUhrdWhDVllYNUlxTTZnP2k9OCZlPTYzODI1NjEzMTYxNDIwOTA2MQ==", - event.getServerCallId()); - assertEquals("441fbf00-5b21-4beb-bd4d-fd665ca4b65f", event.getCallConnectionId()); - assertEquals("fb2d738b-d9cb-496c-8be6-416aeecd4d96", event.getCorrelationId()); - assertEquals("Success Result", event.getResultInformation().getMessage()); - assertEquals("92e08834-b6ee-4ede-8956-9fefa27a691c", event.getDialogId()); - assertEquals("powerVirtualAgents", event.getDialogInputType().toString()); - } - - @Test - public void parseDialogStartedEvent() { - String receivedEvent = "[{\n" + " \"id\": \"91f8b34b-383c-431d-9fa5-79d39fad9300\",\n" - + " \"source\": \"calling/callConnections/441fbf00-5b21-4beb-bd4d-fd665ca4b65f\",\n" - + " \"type\": \"Microsoft.Communication.DialogStarted\",\n" + " \"data\": {\n" - + " \"operationContext\": \"context\",\n" + " \"resultInformation\": {\n" - + " \"code\": 200,\n" + " \"subCode\": 0,\n" - + " \"message\": \"Success Result\"\n" + " },\n" - + " \"dialogInputType\": \"powerVirtualAgents\",\n" - + " \"dialogId\": \"92e08834-b6ee-4ede-8956-9fefa27a691c\",\n" - + " \"callConnectionId\": \"441fbf00-5b21-4beb-bd4d-fd665ca4b65f\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDkuY29udi5za3lwZS5jb20vY29udi9ubUpvbG9wMUhrdWhDVllYNUlxTTZnP2k9OCZlPTYzODI1NjEzMTYxNDIwOTA2MQ==\",\n" - + " \"correlationId\": \"fb2d738b-d9cb-496c-8be6-416aeecd4d96\"\n" + " },\n" - + " \"time\": \"2023-07-27T07:48:55.2765079+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/441fbf00-5b21-4beb-bd4d-fd665ca4b65f\"\n" + "}]"; - DialogStarted event = (DialogStarted) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDkuY29udi5za3lwZS5jb20vY29udi9ubUpvbG9wMUhrdWhDVllYNUlxTTZnP2k9OCZlPTYzODI1NjEzMTYxNDIwOTA2MQ==", - event.getServerCallId()); - assertEquals("441fbf00-5b21-4beb-bd4d-fd665ca4b65f", event.getCallConnectionId()); - assertEquals("fb2d738b-d9cb-496c-8be6-416aeecd4d96", event.getCorrelationId()); - assertEquals("Success Result", event.getResultInformation().getMessage()); - assertEquals("92e08834-b6ee-4ede-8956-9fefa27a691c", event.getDialogId()); - assertEquals("powerVirtualAgents", event.getDialogInputType().toString()); - } - - @Test - public void parseDialogFailedEvent() { - String receivedEvent = "[" + " {\n" + " \"id\": \"91f8b34b-383c-431d-9fa5-79d39fad9300\",\n" - + " \"source\": \"calling/callConnections/441fbf00-5b21-4beb-bd4d-fd665ca4b65f\",\n" - + " \"type\": \"Microsoft.Communication.DialogFailed\",\n" + " \"data\": {\n" - + " \"operationContext\": \"context\",\n" + " \"resultInformation\": {\n" - + " \"code\": 200,\n" + " \"subCode\": 0,\n" - + " \"message\": \"Operation Failed\"\n" + " },\n" - + " \"dialogInputType\": \"powerVirtualAgents\",\n" - + " \"dialogId\": \"92e08834-b6ee-4ede-8956-9fefa27a691c\",\n" - + " \"callConnectionId\": \"441fbf00-5b21-4beb-bd4d-fd665ca4b65f\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDkuY29udi5za3lwZS5jb20vY29udi9ubUpvbG9wMUhrdWhDVllYNUlxTTZnP2k9OCZlPTYzODI1NjEzMTYxNDIwOTA2MQ==\",\n" - + " \"correlationId\": \"fb2d738b-d9cb-496c-8be6-416aeecd4d96\"\n" + " },\n" - + " \"time\": \"2023-07-27T07:48:55.5109544+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/441fbf00-5b21-4beb-bd4d-fd665ca4b65f\"\n" + "}]"; - DialogFailed event = (DialogFailed) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDkuY29udi5za3lwZS5jb20vY29udi9ubUpvbG9wMUhrdWhDVllYNUlxTTZnP2k9OCZlPTYzODI1NjEzMTYxNDIwOTA2MQ==", - event.getServerCallId()); - assertEquals("441fbf00-5b21-4beb-bd4d-fd665ca4b65f", event.getCallConnectionId()); - assertEquals("fb2d738b-d9cb-496c-8be6-416aeecd4d96", event.getCorrelationId()); - assertEquals("Operation Failed", event.getResultInformation().getMessage()); - assertEquals("92e08834-b6ee-4ede-8956-9fefa27a691c", event.getDialogId()); - assertEquals("powerVirtualAgents", event.getDialogInputType().toString()); - } - - @Test - public void parseDialogLanguageChangeEvent() { - String receivedEvent = "[" + " {\n" + " \"id\": \"Sanitized\",\n" - + " \"source\": \"calling/callConnections/441fbf00-5b21-4beb-bd4d-fd665ca4b65f\",\n" - + " \"type\": \"Microsoft.Communication.DialogLanguageChange\",\n" + " \"data\": {\n" - + " \"selectedLanguage\": \"eng-USA\",\n" + " \"operationContext\": \"context\",\n" - + " \"resultInformation\": {\n" + " \"code\": 200,\n" + " \"subCode\": 0,\n" - + " \"message\": \"Success Result\"\n" + " },\n" - + " \"dialogInputType\": \"powerVirtualAgents\",\n" - + " \"dialogId\": \"92e08834-b6ee-4ede-8956-9fefa27a691c\",\n" - + " \"ivrContext\": \"Sanitized\",\n" - + " \"callConnectionId\": \"441fbf00-5b21-4beb-bd4d-fd665ca4b65f\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDkuY29udi5za3lwZS5jb20vY29udi9ubUpvbG9wMUhrdWhDVllYNUlxTTZnP2k9OCZlPTYzODI1NjEzMTYxNDIwOTA2MQ==\",\n" - + " \"correlationId\": \"fb2d738b-d9cb-496c-8be6-416aeecd4d96\"\n" + " },\n" - + " \"time\": \"2023-07-27T07:48:55.5109544+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/441fbf00-5b21-4beb-bd4d-fd665ca4b65f\"\n" + "}]"; - - DialogLanguageChange event = (DialogLanguageChange) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDkuY29udi5za3lwZS5jb20vY29udi9ubUpvbG9wMUhrdWhDVllYNUlxTTZnP2k9OCZlPTYzODI1NjEzMTYxNDIwOTA2MQ==", - event.getServerCallId()); - assertEquals("441fbf00-5b21-4beb-bd4d-fd665ca4b65f", event.getCallConnectionId()); - assertEquals("fb2d738b-d9cb-496c-8be6-416aeecd4d96", event.getCorrelationId()); - assertEquals("Success Result", event.getResultInformation().getMessage()); - assertEquals("92e08834-b6ee-4ede-8956-9fefa27a691c", event.getDialogId()); - assertEquals("powerVirtualAgents", event.getDialogInputType().toString()); - assertEquals("Sanitized", event.getIvrContext()); - } - - @Test - public void parseDialogSensitivityUpdateEvent() { - String receivedEvent = "[" + " {\n" + " \"id\": \"Sanitized\",\n" - + " \"source\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"type\": \"Microsoft.Communication.DialogSensitivityUpdate\",\n" + " \"data\": {\n" - + " \"sensitiveMask\": false,\n" + " \"operationContext\": \"context\",\n" - + " \"resultInformation\": {\n" + " \"code\": 200,\n" + " \"subCode\": 0,\n" - + " \"message\": \"Success Result\"\n" + " },\n" - + " \"dialogInputType\": \"powerVirtualAgents\",\n" - + " \"dialogId\": \"92e08834-b6ee-4ede-8956-9fefa27a691c\",\n" - + " \"callConnectionId\": \"491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==\",\n" - + " \"correlationId\": \"ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\"\n" + " },\n" - + " \"time\": \"2023-08-02T08:44:58.9826643+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\"\n" + "}]"; - DialogSensitivityUpdate event - = (DialogSensitivityUpdate) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==", - event.getServerCallId()); - assertEquals("491f1300-0c70-4f8c-97b4-94474f2a371b", event.getCallConnectionId()); - assertEquals("ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", event.getCorrelationId()); - assertEquals("Success Result", event.getResultInformation().getMessage()); - assertEquals("92e08834-b6ee-4ede-8956-9fefa27a691c", event.getDialogId()); - assertEquals("powerVirtualAgents", event.getDialogInputType().toString()); - } - - @Test - public void parseDialogConsentEvent() { - String receivedEvent = "[" + " {\n" + " \"id\": \"Sanitized\",\n" - + " \"source\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"type\": \"Microsoft.Communication.DialogConsent\",\n" + " \"data\": {\n" - + " \"sensitiveMask\": false,\n" + " \"operationContext\": \"context\",\n" - + " \"resultInformation\": {\n" + " \"code\": 200,\n" + " \"subCode\": 0,\n" - + " \"message\": \"Success Result\"\n" + " },\n" - + " \"dialogInputType\": \"powerVirtualAgents\",\n" - + " \"dialogId\": \"92e08834-b6ee-4ede-8956-9fefa27a691c\",\n" - + " \"callConnectionId\": \"491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==\",\n" - + " \"correlationId\": \"ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\"\n" + " },\n" - + " \"time\": \"2023-08-02T08:44:58.9826643+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\"\n" + "}]"; - DialogConsent event = (DialogConsent) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==", - event.getServerCallId()); - assertEquals("491f1300-0c70-4f8c-97b4-94474f2a371b", event.getCallConnectionId()); - assertEquals("ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", event.getCorrelationId()); - assertEquals("Success Result", event.getResultInformation().getMessage()); - assertEquals("92e08834-b6ee-4ede-8956-9fefa27a691c", event.getDialogId()); - assertEquals("powerVirtualAgents", event.getDialogInputType().toString()); - } - - @Test - public void parseDialogHangupEvent() { - String receivedEvent = "[" + " {\n" + " \"id\": \"Sanitized\",\n" - + " \"source\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"type\": \"Microsoft.Communication.DialogHangup\",\n" + " \"data\": {\n" - + " \"sensitiveMask\": false,\n" + " \"operationContext\": \"context\",\n" - + " \"resultInformation\": {\n" + " \"code\": 200,\n" + " \"subCode\": 0,\n" - + " \"message\": \"Success Result\"\n" + " },\n" - + " \"dialogInputType\": \"powerVirtualAgents\",\n" - + " \"dialogId\": \"92e08834-b6ee-4ede-8956-9fefa27a691c\",\n" - + " \"callConnectionId\": \"491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==\",\n" - + " \"correlationId\": \"ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\"\n" + " },\n" - + " \"time\": \"2023-08-02T08:44:58.9826643+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\"\n" + "}]"; - DialogHangup event = (DialogHangup) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==", - event.getServerCallId()); - assertEquals("491f1300-0c70-4f8c-97b4-94474f2a371b", event.getCallConnectionId()); - assertEquals("ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", event.getCorrelationId()); - assertEquals("Success Result", event.getResultInformation().getMessage()); - assertEquals("92e08834-b6ee-4ede-8956-9fefa27a691c", event.getDialogId()); - assertEquals("powerVirtualAgents", event.getDialogInputType().toString()); - } - - @Test - public void parseDialogTransferEvent() { - String receivedEvent = "[" + " {\n" + " \"id\": \"Sanitized\",\n" - + " \"source\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"type\": \"Microsoft.Communication.DialogTransfer\",\n" + " \"data\": {\n" - + " \"sensitiveMask\": false,\n" + " \"operationContext\": \"context\",\n" - + " \"resultInformation\": {\n" + " \"code\": 200,\n" + " \"subCode\": 0,\n" - + " \"message\": \"Success Result\"\n" + " },\n" - + " \"dialogInputType\": \"powerVirtualAgents\",\n" - + " \"dialogId\": \"92e08834-b6ee-4ede-8956-9fefa27a691c\",\n" - + " \"callConnectionId\": \"491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==\",\n" - + " \"correlationId\": \"ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\"\n" + " },\n" - + " \"time\": \"2023-08-02T08:44:58.9826643+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\"\n" + "}]"; - DialogTransfer event = (DialogTransfer) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==", - event.getServerCallId()); - assertEquals("491f1300-0c70-4f8c-97b4-94474f2a371b", event.getCallConnectionId()); - assertEquals("ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", event.getCorrelationId()); - assertEquals("Success Result", event.getResultInformation().getMessage()); - assertEquals("92e08834-b6ee-4ede-8956-9fefa27a691c", event.getDialogId()); - assertEquals("powerVirtualAgents", event.getDialogInputType().toString()); - } - - @Test - public void parseTranscriptionStartedEvent() { - String receivedEvent = "[" + " {\n" + " \"id\": \"Sanitized\",\n" - + " \"source\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"type\": \"Microsoft.Communication.TranscriptionStarted\",\n" + " \"data\": {\n" - + " \"resultInformation\": {\n" + " \"code\": 200,\n" + " \"subCode\": 0,\n" - + " \"message\": \"Transcription started successfully.\"\n" + " },\n" - + " \"transcriptionUpdate\": {\n" - + " \"transcriptionStatus\": \"transcriptionStarted\",\n" - + " \"transcriptionStatusDetails\": \"subscriptionStarted\"\n" + " },\n" - + " \"version\": \"2023-01-15-preview\",\n" - + " \"dialogId\": \"92e08834-b6ee-4ede-8956-9fefa27a691c\",\n" - + " \"callConnectionId\": \"491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==\",\n" - + " \"correlationId\": \"ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\",\n" - + " \"publicEventType\": \"Microsoft.Communication.TranscriptionStarted\"\n" + " },\n" - + " \"time\": \"2023-08-02T08:44:58.9826643+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\"\n" + "}]"; - - TranscriptionStarted event = (TranscriptionStarted) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==", - event.getServerCallId()); - assertEquals("491f1300-0c70-4f8c-97b4-94474f2a371b", event.getCallConnectionId()); - assertEquals("ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", event.getCorrelationId()); - assertEquals("Transcription started successfully.", event.getResultInformation().getMessage()); - - assertNotNull(event.getTranscriptionUpdateResult()); - assertEquals(TranscriptionStatus.TRANSCRIPTION_STARTED, - event.getTranscriptionUpdateResult().getTranscriptionStatus()); - assertEquals(TranscriptionStatusDetails.SUBSCRIPTION_STARTED, - event.getTranscriptionUpdateResult().getTranscriptionStatusDetails()); - } - - @Test - public void parseTranscriptionResumedEvent() { - String receivedEvent = "[" + " {\n" + " \"id\": \"Sanitized\",\n" - + " \"source\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"type\": \"Microsoft.Communication.TranscriptionResumed\",\n" + " \"data\": {\n" - + " \"resultInformation\": {\n" + " \"code\": 200,\n" + " \"subCode\": 0,\n" - + " \"message\": \"Transcription resumed.\"\n" + " },\n" - + " \"transcriptionUpdate\": {\n" - + " \"transcriptionStatus\": \"transcriptionResumed\",\n" - + " \"transcriptionStatusDetails\": \"streamConnectionReestablished\"\n" + " },\n" - + " \"version\": \"2023-01-15-preview\",\n" - + " \"dialogId\": \"92e08834-b6ee-4ede-8956-9fefa27a691c\",\n" - + " \"callConnectionId\": \"491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==\",\n" - + " \"correlationId\": \"ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\",\n" - + " \"publicEventType\": \"icrosoft.Communication.TranscriptionResumed\"\n" + " },\n" - + " \"time\": \"2023-08-02T08:44:58.9826643+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\"\n" + "}]"; - - TranscriptionResumed event = (TranscriptionResumed) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==", - event.getServerCallId()); - assertEquals("491f1300-0c70-4f8c-97b4-94474f2a371b", event.getCallConnectionId()); - assertEquals("ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", event.getCorrelationId()); - assertEquals("Transcription resumed.", event.getResultInformation().getMessage()); - - assertNotNull(event.getTranscriptionUpdateResult()); - assertEquals(TranscriptionStatus.TRANSCRIPTION_RESUMED, - event.getTranscriptionUpdateResult().getTranscriptionStatus()); - assertEquals(TranscriptionStatusDetails.STREAM_CONNECTION_REESTABLISHED, - event.getTranscriptionUpdateResult().getTranscriptionStatusDetails()); - } - - @Test - public void parseTranscriptionStoppedEvent() { - String receivedEvent = "[" + " {\n" + " \"id\": \"Sanitized\",\n" - + " \"source\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"type\": \"Microsoft.Communication.TranscriptionStopped\",\n" + " \"data\": {\n" - + " \"resultInformation\": {\n" + " \"code\": 200,\n" + " \"subCode\": 0,\n" - + " \"message\": \"Transcription stopped.\"\n" + " },\n" - + " \"transcriptionUpdate\": {\n" - + " \"transcriptionStatus\": \"transcriptionStopped\",\n" - + " \"transcriptionStatusDetails\": \"subscriptionStopped\"\n" + " },\n" - + " \"version\": \"2023-01-15-preview\",\n" - + " \"dialogId\": \"92e08834-b6ee-4ede-8956-9fefa27a691c\",\n" - + " \"callConnectionId\": \"491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==\",\n" - + " \"correlationId\": \"ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\",\n" - + " \"publicEventType\": \"icrosoft.Communication.TranscriptionStopped\"\n" + " },\n" - + " \"time\": \"2023-08-02T08:44:58.9826643+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\"\n" + "}]"; - - TranscriptionStopped event = (TranscriptionStopped) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==", - event.getServerCallId()); - assertEquals("491f1300-0c70-4f8c-97b4-94474f2a371b", event.getCallConnectionId()); - assertEquals("ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", event.getCorrelationId()); - assertEquals("Transcription stopped.", event.getResultInformation().getMessage()); - - assertNotNull(event.getTranscriptionUpdateResult()); - assertEquals(TranscriptionStatus.TRANSCRIPTION_STOPPED, - event.getTranscriptionUpdateResult().getTranscriptionStatus()); - assertEquals(TranscriptionStatusDetails.SUBSCRIPTION_STOPPED, - event.getTranscriptionUpdateResult().getTranscriptionStatusDetails()); - } - - @Test - public void parseTranscriptionFailedEvent() { - String receivedEvent = "[" + " {\n" + " \"id\": \"Sanitized\",\n" - + " \"source\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"type\": \"Microsoft.Communication.TranscriptionFailed\",\n" + " \"data\": {\n" - + " \"resultInformation\": {\n" + " \"code\": 500,\n" + " \"subCode\": 9999,\n" - + " \"message\": \"Unknown internal server error.\"\n" + " },\n" - + " \"transcriptionUpdate\": {\n" + " \"transcriptionStatus\": \"transcriptionFailed\",\n" - + " \"transcriptionStatusDetails\": \"unspecifiedError\"\n" + " },\n" - + " \"version\": \"2023-01-15-preview\",\n" - + " \"dialogId\": \"92e08834-b6ee-4ede-8956-9fefa27a691c\",\n" - + " \"callConnectionId\": \"491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==\",\n" - + " \"correlationId\": \"ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\",\n" - + " \"publicEventType\": \"icrosoft.Communication.TranscriptionFailed\"\n" + " },\n" - + " \"time\": \"2023-08-02T08:44:58.9826643+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\"\n" + "}]"; - - TranscriptionFailed event = (TranscriptionFailed) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==", - event.getServerCallId()); - assertEquals("491f1300-0c70-4f8c-97b4-94474f2a371b", event.getCallConnectionId()); - assertEquals("ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", event.getCorrelationId()); - assertEquals("Unknown internal server error.", event.getResultInformation().getMessage()); - - assertNotNull(event.getTranscriptionUpdateResult()); - assertEquals(TranscriptionStatus.TRANSCRIPTION_FAILED, - event.getTranscriptionUpdateResult().getTranscriptionStatus()); - assertEquals(TranscriptionStatusDetails.UNSPECIFIED_ERROR, - event.getTranscriptionUpdateResult().getTranscriptionStatusDetails()); - } - - @Test - public void parseTranscriptionUpdatedEvent() { - String receivedEvent = "[" + " {\n" + " \"id\": \"Sanitized\",\n" - + " \"source\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"type\": \"Microsoft.Communication.TranscriptionUpdated\",\n" + " \"data\": {\n" - + " \"resultInformation\": {\n" + " \"code\": 200,\n" + " \"subCode\": 0,\n" - + " \"message\": \"Transcription updated.\"\n" + " },\n" - + " \"transcriptionUpdate\": {\n" - + " \"transcriptionStatus\": \"transcriptionLocaleUpdated\",\n" - + " \"transcriptionStatusDetails\": \"subscriptionStarted\"\n" + " },\n" - + " \"version\": \"2023-01-15-preview\",\n" - + " \"dialogId\": \"92e08834-b6ee-4ede-8956-9fefa27a691c\",\n" - + " \"callConnectionId\": \"491f1300-0c70-4f8c-97b4-94474f2a371b\",\n" - + " \"serverCallId\": \"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==\",\n" - + " \"correlationId\": \"ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\",\n" - + " \"publicEventType\": \"Microsoft.Communication.TranscriptionUpdated\"\n" + " },\n" - + " \"time\": \"2023-08-02T08:44:58.9826643+00:00\",\n" + " \"specversion\": \"1.0\",\n" - + " \"datacontenttype\": \"application/json\",\n" - + " \"subject\": \"calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\"\n" + "}]"; - - TranscriptionUpdated event = (TranscriptionUpdated) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx==", - event.getServerCallId()); - assertEquals("491f1300-0c70-4f8c-97b4-94474f2a371b", event.getCallConnectionId()); - assertEquals("ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", event.getCorrelationId()); - assertEquals("Transcription updated.", event.getResultInformation().getMessage()); - - assertNotNull(event.getTranscriptionUpdateResult()); - assertEquals(TranscriptionStatus.TRANSCRIPTION_LOCALE_UPDATED, - event.getTranscriptionUpdateResult().getTranscriptionStatus()); - assertEquals(TranscriptionStatusDetails.SUBSCRIPTION_STARTED, - event.getTranscriptionUpdateResult().getTranscriptionStatusDetails()); - } - - @Test - public void parseAnswerFailedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"c3220fa3-79bd-473e-96a2-3ecb5be7d71f\",\n" - + "\"source\": \"calling/callConnections/421f3500-f5de-4c12-bf61-9e2641433687\",\n" - + "\"type\": \"Microsoft.Communication.AnswerFailed\",\n" + "\"data\": {\n" - + "\"operationContext\": \"context\",\n" + "\"callConnectionId\": \"callConnectionId\",\n" - + "\"serverCallId\": \"serverCallId\",\n" + "\"correlationId\": \"b880bd5a-1916-470a-b43d-aabf3caff91c\"\n" - + "},\n" + "\"time\": \"2023-03-22T16:57:09.287755+00:00\",\n" + "\"specversion\": \"1.0\",\n" - + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/421f3500-f5de-4c12-bf61-9e2641433687\"\n" + "}]"; - - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - - AnswerFailed answerFailed = (AnswerFailed) event; - - assertNotNull(answerFailed); - assertEquals("serverCallId", answerFailed.getServerCallId()); - assertEquals("callConnectionId", answerFailed.getCallConnectionId()); - - CallAutomationEventProcessor callAutomationEventProcessor = new CallAutomationEventProcessor(); - callAutomationEventProcessor.attachOngoingEventProcessor(answerFailed.getCallConnectionId(), eventToHandle -> { - assertEquals("serverCallId", eventToHandle.getServerCallId()); - assertEquals("callConnectionId", eventToHandle.getCallConnectionId()); - }, AnswerFailed.class); - callAutomationEventProcessor.processEvents(receivedEvent); - callAutomationEventProcessor.detachOngoingEventProcessor(answerFailed.getCallConnectionId(), - AnswerFailed.class); - } - - @Test - public void parseCreateCallFailedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"c3220fa3-79bd-473e-96a2-3ecb5be7d71f\",\n" - + "\"source\": \"calling/callConnections/421f3500-f5de-4c12-bf61-9e2641433687\",\n" - + "\"type\": \"Microsoft.Communication.CreateCallFailed\",\n" + "\"data\": {\n" - + "\"operationContext\": \"context\",\n" + "\"callConnectionId\": \"callConnectionId\",\n" - + "\"serverCallId\": \"serverCallId\",\n" + "\"correlationId\": \"b880bd5a-1916-470a-b43d-aabf3caff91c\"\n" - + "},\n" + "\"time\": \"2023-03-22T16:57:09.287755+00:00\",\n" + "\"specversion\": \"1.0\",\n" - + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/421f3500-f5de-4c12-bf61-9e2641433687\"\n" + "}]"; - - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - - assertNotNull(event); - - CreateCallFailed createCallFailed = (CreateCallFailed) event; - - assertNotNull(createCallFailed); - assertEquals("serverCallId", createCallFailed.getServerCallId()); - assertEquals("callConnectionId", createCallFailed.getCallConnectionId()); - - CallAutomationEventProcessor callAutomationEventProcessor = new CallAutomationEventProcessor(); - callAutomationEventProcessor.attachOngoingEventProcessor(createCallFailed.getCallConnectionId(), - eventToHandle -> { - assertEquals("serverCallId", eventToHandle.getServerCallId()); - assertEquals("callConnectionId", eventToHandle.getCallConnectionId()); - }, CreateCallFailed.class); - callAutomationEventProcessor.processEvents(receivedEvent); - callAutomationEventProcessor.detachOngoingEventProcessor(createCallFailed.getCallConnectionId(), - CreateCallFailed.class); - } - - @Test - public void parseHoldFailedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + "\"source\": \"calling/callConnections/callConnectionId/HoldFailed\",\n" - + "\"type\": \"Microsoft.Communication.HoldFailed\",\n" + "\"data\": {\n" + "\"resultInformation\": {\n" - + "\"code\": 400,\n" + "\"subCode\": 8536,\n" - + "\"message\": \"Action failed, file could not be downloaded.\"\n" + "},\n" + "\"type\": \"HoldFailed\",\n" - + "\"callConnectionId\": \"callConnectionId\",\n" + "\"serverCallId\": \"serverCallId\",\n" - + "\"correlationId\": \"correlationId\"\n" + "},\n" + "\"time\": \"2022-08-12T03:13:25.0252763+00:00\",\n" - + "\"specversion\": \"1.0\",\n" + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/callConnectionId\"\n" + "}]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - HoldFailed holdFailed = (HoldFailed) event; - assertNotNull(holdFailed); - assertEquals("correlationId", holdFailed.getCorrelationId()); - assertEquals("serverCallId", holdFailed.getServerCallId()); - assertEquals(400, holdFailed.getResultInformation().getCode()); - assertEquals(ReasonCode.Play.DOWNLOAD_FAILED, holdFailed.getReasonCode()); - } - - @Test - public void parseMediaStreamingStartedEvent() { - String receivedEvent = "[{\n" + "\"id\":\"d13c62c5-721e-44b9-a680-9866c33db7e7\",\n" - + "\"source\":\"calling/callConnections/4c1f5600-a9c6-4343-8979-b638a98de98f\",\n" - + "\"type\":\"Microsoft.Communication.MediaStreamingStarted\",\n" - + "\"data\":{\"eventSource\":\"calling/callConnections/4c1f5600-a9c6-4343-8979-b638a98de98f\",\n" - + "\"operationContext\":\"startMediaStreamingContext\",\n" - + "\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\n" - + "\"mediaStreamingUpdate\":{\"contentType\":\"Audio\",\n" - + "\"mediaStreamingStatus\":\"mediaStreamingStarted\",\n" - + "\"mediaStreamingStatusDetails\":\"subscriptionStarted\"},\n" + "\"version\":\"2024-06-15-preview\",\n" - + "\"callConnectionId\":\"4c1f5600-a9c6-4343-8979-b638a98de98f\",\n" - + "\"serverCallId\":\"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LW1hc28tMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTTQteUZBUmhVYXN3T1RqbklPSXZnP2k9MTAtMTI4LTk1LTUyJmU9NjM4NTAwMTgzOTYwNzY2MzQ0\",\n" - + "\"correlationId\":\"30f0ad34-d615-4bf3-8476-5630ae7fc3db\",\n" - + "\"publicEventType\":\"Microsoft.Communication.MediaStreamingStarted\"},\n" - + "\"time\":\"2024-05-02T11:20:42.9110236+00:00\",\n" + "\"specversion\":\"1.0\",\n" - + "\"datacontenttype\":\"application/json\",\n" - + "\"subject\":\"calling/callConnections/4c1f5600-a9c6-4343-8979-b638a98de98f\"}]"; - - MediaStreamingStarted event - = (MediaStreamingStarted) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LW1hc28tMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTTQteUZBUmhVYXN3T1RqbklPSXZnP2k9MTAtMTI4LTk1LTUyJmU9NjM4NTAwMTgzOTYwNzY2MzQ0", - event.getServerCallId()); - assertEquals("4c1f5600-a9c6-4343-8979-b638a98de98f", event.getCallConnectionId()); - assertEquals("30f0ad34-d615-4bf3-8476-5630ae7fc3db", event.getCorrelationId()); - assertEquals("Action completed successfully.", event.getResultInformation().getMessage()); - - assertNotNull(event.getMediaStreamingUpdateResult()); - assertEquals(MediaStreamingStatus.MEDIA_STREAMING_STARTED, - event.getMediaStreamingUpdateResult().getMediaStreamingStatus()); - assertEquals(MediaStreamingStatusDetails.SUBSCRIPTION_STARTED, - event.getMediaStreamingUpdateResult().getMediaStreamingStatusDetails()); - } - - @Test - public void parseMediaStreamingStoppedEvent() { - String receivedEvent = "[{\n" + "\"id\":\"41039554-9475-491a-875b-08d23c5d0e75\",\n" - + "\"source\":\"calling/callConnections/4c1f5600-a9c6-4343-8979-b638a98de98f\",\n" - + "\"type\":\"Microsoft.Communication.MediaStreamingStopped\",\n" - + "\"data\":{\"eventSource\":\"calling/callConnections/4c1f5600-a9c6-4343-8979-b638a98de98f\",\n" - + "\"operationContext\":\"startMediaStreamingContext\",\n" - + "\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\n" - + "\"mediaStreamingUpdate\":{\"contentType\":\"Audio\",\"mediaStreamingStatus\":\"mediaStreamingStopped\",\n" - + "\"mediaStreamingStatusDetails\":\"subscriptionStopped\"},\n" - + "\"version\":\"2024-06-15-preview\",\"callConnectionId\":\"4c1f5600-a9c6-4343-8979-b638a98de98f\",\n" - + "\"serverCallId\":\"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LW1hc28tMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTTQteUZBUmhVYXN3T1RqbklPSXZnP2k9MTAtMTI4LTk1LTUyJmU9NjM4NTAwMTgzOTYwNzY2MzQ0\",\n" - + "\"correlationId\":\"30f0ad34-d615-4bf3-8476-5630ae7fc3db\",\n" - + "\"publicEventType\":\"Microsoft.Communication.MediaStreamingStopped\"},\n" - + "\"time\":\"2024-05-02T11:21:10.0261068+00:00\",\"specversion\":\"1.0\",\n" - + "\"datacontenttype\":\"application/json\",\n" - + "\"subject\":\"calling/callConnections/4c1f5600-a9c6-4343-8979-b638a98de98f\"}]"; - - MediaStreamingStopped event - = (MediaStreamingStopped) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LW1hc28tMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTTQteUZBUmhVYXN3T1RqbklPSXZnP2k9MTAtMTI4LTk1LTUyJmU9NjM4NTAwMTgzOTYwNzY2MzQ0", - event.getServerCallId()); - assertEquals("4c1f5600-a9c6-4343-8979-b638a98de98f", event.getCallConnectionId()); - assertEquals("30f0ad34-d615-4bf3-8476-5630ae7fc3db", event.getCorrelationId()); - assertEquals("Action completed successfully.", event.getResultInformation().getMessage()); - - assertNotNull(event.getMediaStreamingUpdateResult()); - assertEquals(MediaStreamingStatus.MEDIA_STREAMING_STOPPED, - event.getMediaStreamingUpdateResult().getMediaStreamingStatus()); - assertEquals(MediaStreamingStatusDetails.SUBSCRIPTION_STOPPED, - event.getMediaStreamingUpdateResult().getMediaStreamingStatusDetails()); - } - - @Test - public void parseMediaStreamingFailedEvent() { - String receivedEvent = "[{\n" + "\"id\":\"a9bb7545-8f87-42aa-85d0-d7120dbe2414\",\n" - + "\"source\":\"calling/callConnections/761f5600-43ab-48a0-bbad-ecc5ad5b15bb\",\n" - + "\"type\":\"Microsoft.Communication.MediaStreamingFailed\",\n" - + "\"data\":{\"eventSource\":\"calling/callConnections/761f5600-43ab-48a0-bbad-ecc5ad5b15bb\",\n" - + "\"operationContext\":\"startMediaStreamingContext\",\n" - + "\"resultInformation\":{\"code\":500,\"subCode\":8603,\n" - + "\"message\":\"Action failed, not able to establish websocket connection.\"},\n" - + "\"mediaStreamingUpdate\":{\"contentType\":\"Audio\",\n" - + "\"mediaStreamingStatus\":\"mediaStreamingFailed\",\n" - + "\"mediaStreamingStatusDetails\":\"streamConnectionUnsuccessful\"},\n" - + "\"version\":\"2024-06-15-preview\",\"callConnectionId\":\"761f5600-43ab-48a0-bbad-ecc5ad5b15bb\",\n" - + "\"serverCallId\":\"aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LW1hc28tMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi94MVdMX0p3NnlVaW1aOEkzVi1MN3hnP2k9MTAtMTI4LTg0LTE3MSZlPTYzODQ5NzU2ODQ3MzUxNzU3Mg==\",\n" - + "\"correlationId\":\"6032c474-201d-4ad1-8900-f92a595a6d94\",\n" - + "\"publicEventType\":\"Microsoft.Communication.MediaStreamingFailed\"},\n" - + "\"time\":\"2024-05-02T12:38:31.242039+00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\n" - + "\"subject\":\"calling/callConnections/761f5600-43ab-48a0-bbad-ecc5ad5b15bb\"}]"; - - MediaStreamingFailed event = (MediaStreamingFailed) CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - assertEquals( - "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LW1hc28tMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi94MVdMX0p3NnlVaW1aOEkzVi1MN3hnP2k9MTAtMTI4LTg0LTE3MSZlPTYzODQ5NzU2ODQ3MzUxNzU3Mg==", - event.getServerCallId()); - assertEquals("761f5600-43ab-48a0-bbad-ecc5ad5b15bb", event.getCallConnectionId()); - assertEquals("6032c474-201d-4ad1-8900-f92a595a6d94", event.getCorrelationId()); - assertEquals("Action failed, not able to establish websocket connection.", - event.getResultInformation().getMessage()); - - assertNotNull(event.getMediaStreamingUpdateResult()); - assertEquals(MediaStreamingStatus.MEDIA_STREAMING_FAILED, - event.getMediaStreamingUpdateResult().getMediaStreamingStatus()); - assertEquals(MediaStreamingStatusDetails.STREAM_CONNECTION_UNSUCCESSFUL, - event.getMediaStreamingUpdateResult().getMediaStreamingStatusDetails()); - } - - @Test - public void parsePlayPausedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + "\"source\": \"calling/callConnections/callConnectionId/PlayPaused\",\n" - + "\"type\": \"Microsoft.Communication.PlayPaused\",\n" + "\"data\": {\n" + "\"resultInformation\": {\n" - + "\"code\": 200,\n" + "\"subCode\": 0,\n" + "\"message\": \"Action completed successfully.\"\n" + "},\n" - + "\"type\": \"PlayPaused\",\n" + "\"callConnectionId\": \"callConnectionId\",\n" - + "\"serverCallId\": \"serverCallId\",\n" + "\"correlationId\": \"correlationId\"\n" + "},\n" - + "\"time\": \"2022-08-12T03:13:25.0252763+00:00\",\n" + "\"specversion\": \"1.0\",\n" - + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/callConnectionId\"\n" + "}]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - PlayPaused playPaused = (PlayPaused) event; - assertNotNull(playPaused); - assertEquals("serverCallId", playPaused.getServerCallId()); - assertEquals(200, playPaused.getResultInformation().getCode()); - } - - @Test - public void parsePlayResumedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + "\"source\": \"calling/callConnections/callConnectionId/PlayResumed\",\n" - + "\"type\": \"Microsoft.Communication.PlayResumed\",\n" + "\"data\": {\n" + "\"resultInformation\": {\n" - + "\"code\": 200,\n" + "\"subCode\": 0,\n" + "\"message\": \"Action completed successfully.\"\n" + "},\n" - + "\"type\": \"PlayResumed\",\n" + "\"callConnectionId\": \"callConnectionId\",\n" - + "\"serverCallId\": \"serverCallId\",\n" + "\"correlationId\": \"correlationId\"\n" + "},\n" - + "\"time\": \"2022-08-12T03:13:25.0252763+00:00\",\n" + "\"specversion\": \"1.0\",\n" - + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/callConnectionId\"\n" + "}]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - PlayResumed playResumed = (PlayResumed) event; - assertNotNull(playResumed); - assertEquals("serverCallId", playResumed.getServerCallId()); - assertEquals(200, playResumed.getResultInformation().getCode()); - } - - @Test - public void parseHoldAudioCompletedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + "\"source\": \"calling/callConnections/callConnectionId/HoldAudioCompleted\",\n" - + "\"type\": \"Microsoft.Communication.HoldAudioCompleted\",\n" + "\"data\": {\n" - + "\"resultInformation\": {\n" + "\"code\": 200,\n" + "\"subCode\": 0,\n" - + "\"message\": \"Action completed successfully.\"\n" + "},\n" + "\"type\": \"HoldAudioCompleted\",\n" - + "\"callConnectionId\": \"callConnectionId\",\n" + "\"serverCallId\": \"serverCallId\",\n" - + "\"correlationId\": \"correlationId\"\n" + "},\n" + "\"time\": \"2022-08-12T03:13:25.0252763+00:00\",\n" - + "\"specversion\": \"1.0\",\n" + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/callConnectionId\"\n" + "}]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - HoldAudioCompleted holdAudioCompleted = (HoldAudioCompleted) event; - assertNotNull(holdAudioCompleted); - assertEquals("serverCallId", holdAudioCompleted.getServerCallId()); - assertEquals(200, holdAudioCompleted.getResultInformation().getCode()); - } - - @Test - public void parseHoldAudioStartedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + "\"source\": \"calling/callConnections/callConnectionId/HoldAudioStarted\",\n" - + "\"type\": \"Microsoft.Communication.HoldAudioStarted\",\n" + "\"data\": {\n" - + "\"resultInformation\": {\n" + "\"code\": 200,\n" + "\"subCode\": 0,\n" - + "\"message\": \"Action completed successfully.\"\n" + "},\n" + "\"type\": \"HoldAudioStarted\",\n" - + "\"callConnectionId\": \"callConnectionId\",\n" + "\"serverCallId\": \"serverCallId\",\n" - + "\"correlationId\": \"correlationId\"\n" + "},\n" + "\"time\": \"2022-08-12T03:13:25.0252763+00:00\",\n" - + "\"specversion\": \"1.0\",\n" + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/callConnectionId\"\n" + "}]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - HoldAudioStarted holdAudioStarted = (HoldAudioStarted) event; - assertNotNull(holdAudioStarted); - assertEquals("serverCallId", holdAudioStarted.getServerCallId()); - assertEquals(200, holdAudioStarted.getResultInformation().getCode()); - } - - @Test - public void parseHoldAudioPausedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + "\"source\": \"calling/callConnections/callConnectionId/HoldAudioPaused\",\n" - + "\"type\": \"Microsoft.Communication.HoldAudioPaused\",\n" + "\"data\": {\n" - + "\"resultInformation\": {\n" + "\"code\": 200,\n" + "\"subCode\": 0,\n" - + "\"message\": \"Action completed successfully.\"\n" + "},\n" + "\"type\": \"HoldAudioPaused\",\n" - + "\"callConnectionId\": \"callConnectionId\",\n" + "\"serverCallId\": \"serverCallId\",\n" - + "\"correlationId\": \"correlationId\"\n" + "},\n" + "\"time\": \"2022-08-12T03:13:25.0252763+00:00\",\n" - + "\"specversion\": \"1.0\",\n" + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/callConnectionId\"\n" + "}]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - HoldAudioPaused holdAudioPaused = (HoldAudioPaused) event; - assertNotNull(holdAudioPaused); - assertEquals("serverCallId", holdAudioPaused.getServerCallId()); - assertEquals(200, holdAudioPaused.getResultInformation().getCode()); - } - - @Test - public void parseHoldAudioResumedEvent() { - String receivedEvent = "[{\n" + "\"id\": \"704a7a96-4d74-4ebe-9cd0-b7cc39c3d7b1\",\n" - + "\"source\": \"calling/callConnections/callConnectionId/HoldAudioResumed\",\n" - + "\"type\": \"Microsoft.Communication.HoldAudioResumed\",\n" + "\"data\": {\n" - + "\"resultInformation\": {\n" + "\"code\": 200,\n" + "\"subCode\": 0,\n" - + "\"message\": \"Action completed successfully.\"\n" + "},\n" + "\"type\": \"HoldAudioResumed\",\n" - + "\"callConnectionId\": \"callConnectionId\",\n" + "\"serverCallId\": \"serverCallId\",\n" - + "\"correlationId\": \"correlationId\"\n" + "},\n" + "\"time\": \"2022-08-12T03:13:25.0252763+00:00\",\n" - + "\"specversion\": \"1.0\",\n" + "\"datacontenttype\": \"application/json\",\n" - + "\"subject\": \"calling/callConnections/callConnectionId\"\n" + "}]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - HoldAudioResumed holdAudioResumed = (HoldAudioResumed) event; - assertNotNull(holdAudioResumed); - assertEquals("serverCallId", holdAudioResumed.getServerCallId()); - assertEquals(200, holdAudioResumed.getResultInformation().getCode()); - } - - @Test - public void incomingCallEventParsedXMSHeaderTest() { - String serverCallId = "serverCallId"; - String correlationId = "correlationId"; - CommunicationIdentifier to = new PhoneNumberIdentifier("+11234567890"); - CommunicationIdentifier from = new PhoneNumberIdentifier("+1098754321"); - String callerDisplayName = "callerDisplayName"; - String incomingCallContext = "incomingCallContext"; - CommunicationIdentifier onBehalfofCallee = from; - - CustomCallingContext customCallingContext = new CustomCallingContext(); - customCallingContext.addSipX("Test-SIP-Header", "TestSIPValue", CustomCallingContext.SipHeaderPrefix.XMSCustom); - customCallingContext.addVoip("Test-VoIP-Header", "TestVoIPValue"); - System.out.println("Added sip and voip headers successfully."); - String receivedEvent = "[{\n" + " \"id\": \"91cdb8e2-c4c2-4888-bc60-3003f09245b3\",\n" - + " \"source\": \"calling/callConnections/callConnectionId/IncomingCall\",\n" - + " \"type\": \"Microsoft.Communication.IncomingCall\",\n" + " \"data\": {\n" - + " \"to\": { \"rawId\": \"" + to.getRawId() + "\" },\n" + " \"from\": { \"rawId\": \"" - + from.getRawId() + "\" },\n" + " \"callerDisplayName\": \"" + callerDisplayName + "\",\n" - + " \"serverCallId\": \"" + serverCallId + "\",\n" + " \"customContext\": {\n" - + " \"sipHeaders\": {\n" + " \"" - + customCallingContext.getSipHeaders().keySet().iterator().next() + "\": \"" - + customCallingContext.getSipHeaders().values().iterator().next() + "\"\n" + " },\n" - + " \"voipHeaders\": {\n" + " \"" - + customCallingContext.getVoipHeaders().keySet().iterator().next() + "\": \"" - + customCallingContext.getVoipHeaders().values().iterator().next() + "\"\n" + " }\n" + " },\n" - + " \"incomingCallContext\": \"" + incomingCallContext + "\",\n" - + " \"onBehalfOfCallee\": { \"rawId\": \"" + onBehalfofCallee.getRawId() + "\" },\n" - + " \"correlationId\": \"" + correlationId + "\"\n" + " }\n" + "}]"; - - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - IncomingCall incomingCall = (IncomingCall) event; - assertNotNull(incomingCall); - assertEquals("serverCallId", incomingCall.getServerCallId()); - assertEquals("correlationId", incomingCall.getCorrelationId()); - assertEquals(to.getRawId(), incomingCall.getTo().getRawId()); - assertEquals(from.getRawId(), incomingCall.getFrom().getRawId()); - assertEquals(callerDisplayName, incomingCall.getCallerDisplayName()); - assertEquals(incomingCallContext, incomingCall.getIncomingCallContext()); - assertEquals(onBehalfofCallee.getRawId(), incomingCall.getOnBehalfOfCallee().getRawId()); - assertEquals(customCallingContext.getSipHeaders().keySet().iterator().next(), - incomingCall.getCustomContext().getSipHeaders().keySet().iterator().next()); - assertEquals(customCallingContext.getVoipHeaders().values().iterator().next(), - incomingCall.getCustomContext().getVoipHeaders().values().iterator().next()); - - } - - @Test - public void incomingCallEventParsedXHeaderTest() { - String serverCallId = "serverCallId"; - String correlationId = "correlationId"; - CommunicationIdentifier to = new PhoneNumberIdentifier("+11234567890"); - CommunicationIdentifier from = new PhoneNumberIdentifier("+1098754321"); - String callerDisplayName = "callerDisplayName"; - String incomingCallContext = "incomingCallContext"; - CommunicationIdentifier onBehalfofCallee = from; - CustomCallingContext customCallingContext = new CustomCallingContext(); - customCallingContext.addSipX("Test-SIP-Header", "TestSIPValue", CustomCallingContext.SipHeaderPrefix.X); - customCallingContext.addVoip("Test-VoIP-Header", "TestVoIPValue"); - System.out.println("Added sip and voip headers successfully."); - String receivedEvent = "[{\n" + " \"id\": \"91cdb8e2-c4c2-4888-bc60-3003f09245b3\",\n" - + " \"source\": \"calling/callConnections/callConnectionId/IncomingCall\",\n" - + " \"type\": \"Microsoft.Communication.IncomingCall\",\n" + " \"data\": {\n" - + " \"to\": { \"rawId\": \"" + to.getRawId() + "\" },\n" + " \"from\": { \"rawId\": \"" - + from.getRawId() + "\" },\n" + " \"callerDisplayName\": \"" + callerDisplayName + "\",\n" - + " \"serverCallId\": \"" + serverCallId + "\",\n" + " \"customContext\": {\n" - + " \"sipHeaders\": {\n" + " \"" - + customCallingContext.getSipHeaders().keySet().iterator().next() + "\": \"" - + customCallingContext.getSipHeaders().values().iterator().next() + "\"\n" + " },\n" - + " \"voipHeaders\": {\n" + " \"" - + customCallingContext.getVoipHeaders().keySet().iterator().next() + "\": \"" - + customCallingContext.getVoipHeaders().values().iterator().next() + "\"\n" + " }\n" + " },\n" - + " \"incomingCallContext\": \"" + incomingCallContext + "\",\n" - + " \"onBehalfOfCallee\": { \"rawId\": \"" + onBehalfofCallee.getRawId() + "\" },\n" - + " \"correlationId\": \"" + correlationId + "\"\n" + " }\n" + "}]"; - CallAutomationEventBase event = CallAutomationEventParser.parseEvents(receivedEvent).get(0); - assertNotNull(event); - IncomingCall incomingCall = (IncomingCall) event; - assertNotNull(incomingCall); - assertEquals("serverCallId", incomingCall.getServerCallId()); - assertEquals("correlationId", incomingCall.getCorrelationId()); - assertEquals(to.getRawId(), incomingCall.getTo().getRawId()); - assertEquals(from.getRawId(), incomingCall.getFrom().getRawId()); - assertEquals(callerDisplayName, incomingCall.getCallerDisplayName()); - assertEquals(incomingCallContext, incomingCall.getIncomingCallContext()); - assertEquals(onBehalfofCallee.getRawId(), incomingCall.getOnBehalfOfCallee().getRawId()); - assertEquals(customCallingContext.getSipHeaders().keySet().iterator().next(), - incomingCall.getCustomContext().getSipHeaders().keySet().iterator().next()); - assertEquals(customCallingContext.getVoipHeaders().values().iterator().next(), - incomingCall.getCustomContext().getVoipHeaders().values().iterator().next()); - - } - -} diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java index 0bb706866c1c..44909bb61c51 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java @@ -81,8 +81,6 @@ public static String generateCallProperties(String callConnectionId, String serv .setServerCallId(serverCallId) .setCallbackUri(callbackUri) .setCallConnectionState(CallConnectionStateModelInternal.fromString(connectionState)) - .setMediaSubscriptionId(mediaSubscriptionId) - .setDataSubscriptionId(dataSubscriptionId) .setSourceDisplayName(callerDisplayName) .setTargets( new ArrayList<>(Collections.singletonList(ModelGenerator.generateUserIdentifierModel(targetId)))); diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallDialogAsyncAutomatedLiveTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallDialogAsyncAutomatedLiveTests.java deleted file mode 100644 index 4b93ca460a69..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallDialogAsyncAutomatedLiveTests.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation; - -import com.azure.communication.callautomation.models.*; -import com.azure.communication.callautomation.models.events.CallConnected; -import com.azure.communication.callautomation.models.events.DialogCompleted; -import com.azure.communication.callautomation.models.events.DialogStarted; -import com.azure.communication.common.CommunicationIdentifier; -import com.azure.communication.common.CommunicationUserIdentifier; -import com.azure.communication.identity.CommunicationIdentityAsyncClient; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.Response; -import com.azure.core.test.annotation.DoNotRecord; - -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.MethodSource; - -import java.time.Duration; -import java.util.*; - -import static org.junit.jupiter.api.Assertions.*; - -public class CallDialogAsyncAutomatedLiveTests extends CallAutomationAutomatedLiveTestBase { - - @DoNotRecord(skipInPlayback = true) - @ParameterizedTest - @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @DisabledIfEnvironmentVariable( - named = "SKIP_LIVE_TEST", - matches = "(?i)(true)", - disabledReason = "Requires environment to be set up") - @Disabled("Disabling this for now as there is service issue with this test case") - public void dialogActionInACallAutomatedTest(HttpClient httpClient) { - /* Test case:Start and Stop Dialog on ACS to ACS call - * 1. create a CallAutomationClient. - * 2. create a call from source to one ACS target. - * 3. get updated call properties and check for the connected state. - * 4. Start dialog, expect no failure(exception) - * 5. Stop dialog, expect DialogCompletedEvent - * 6. hang up the call. - */ - - CommunicationIdentityAsyncClient identityAsyncClient - = getCommunicationIdentityClientUsingConnectionString(httpClient) - .addPolicy((context, next) -> logHeaders("dialogActionInACallAutomatedTest", next)) - .buildAsyncClient(); - - List callDestructors = new ArrayList<>(); - - try { - // create caller and receiver - CommunicationUserIdentifier caller = identityAsyncClient.createUser().block(); - CommunicationUserIdentifier receiver = identityAsyncClient.createUser().block(); - - CallAutomationAsyncClient callerAsyncClient = getCallAutomationClientUsingConnectionString(httpClient) - .addPolicy((context, next) -> logHeaders("dialogActionInACallAutomatedTest", next)) - .sourceIdentity(caller) - .buildAsyncClient(); - - // Create call automation client for receivers. - CallAutomationAsyncClient receiverAsyncClient = getCallAutomationClientUsingConnectionString(httpClient) - .addPolicy((context, next) -> logHeaders("dialogActionInACallAutomatedTest", next)) - .buildAsyncClient(); - - String uniqueId = serviceBusWithNewCall(caller, receiver); - - // create a call - List targets = Collections.singletonList(receiver); - CreateGroupCallOptions createCallOptions - = new CreateGroupCallOptions(targets, DISPATCHER_CALLBACK + String.format("?q=%s", uniqueId)); - Response createCallResultResponse - = callerAsyncClient.createGroupCallWithResponse(createCallOptions).block(); - - assertNotNull(createCallResultResponse); - CreateCallResult createCallResult = createCallResultResponse.getValue(); - assertNotNull(createCallResult); - assertNotNull(createCallResult.getCallConnectionProperties()); - String callerConnectionId = createCallResult.getCallConnectionProperties().getCallConnectionId(); - assertNotNull(callerConnectionId); - - // wait for the incomingCallContext - String incomingCallContext = waitForIncomingCallContext(uniqueId, Duration.ofSeconds(10)); - assertNotNull(incomingCallContext); - - // answer the call - AnswerCallOptions answerCallOptions - = new AnswerCallOptions(incomingCallContext, DISPATCHER_CALLBACK + String.format("?q=%s", uniqueId)); - AnswerCallResult answerCallResult - = Objects.requireNonNull(receiverAsyncClient.answerCallWithResponse(answerCallOptions).block()) - .getValue(); - String receiverConnectionId = answerCallResult.getCallConnectionProperties().getCallConnectionId(); - assertNotNull(answerCallResult); - assertNotNull(answerCallResult.getCallConnectionAsync()); - assertNotNull(answerCallResult.getCallConnectionProperties()); - callDestructors.add(answerCallResult.getCallConnectionAsync()); - - // wait for callConnected - CallConnected callConnected = waitForEvent(CallConnected.class, callerConnectionId, Duration.ofSeconds(10)); - assertNotNull(callConnected); - - // start dialog - String dialogId = "92e08834-b6ee-4ede-8956-9fefa27a691c"; - Map dialogContext = new HashMap<>(); - StartDialogOptions options - = new StartDialogOptions(dialogId, DialogInputType.POWER_VIRTUAL_AGENTS, dialogContext); - options.setBotId(BOT_APP_ID); - - CallDialogAsync callDialogAsync = answerCallResult.getCallConnectionAsync().getCallDialogAsync(); - Response dialogStateResultResponse - = callDialogAsync.startDialogWithResponse(options).block(); - assertNotNull(dialogStateResultResponse); - assertEquals(201, dialogStateResultResponse.getStatusCode()); - DialogStateResult dialogStateResult = dialogStateResultResponse.getValue(); - assertNotNull(dialogStateResult); - assertEquals(dialogId, dialogStateResult.getDialogId()); - DialogStarted dialogStarted - = waitForEvent(DialogStarted.class, receiverConnectionId, Duration.ofSeconds(20)); - assertNotNull(dialogStarted); - - // stop dialog - callDialogAsync.stopDialog(dialogId).block(); - DialogCompleted dialogCompleted - = waitForEvent(DialogCompleted.class, receiverConnectionId, Duration.ofSeconds(20)); - assertNotNull(dialogCompleted); - } catch (Exception ex) { - fail("Unexpected exception received", ex); - } finally { - if (!callDestructors.isEmpty()) { - try { - callDestructors.forEach(callConnection -> callConnection.hangUpWithResponse(true).block()); - } catch (Exception ignored) { - // Some call might have been terminated during the test, and it will cause exceptions here. - // Do nothing and iterate to next call connection. - } - } - } - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallDialogAsyncUnitTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallDialogAsyncUnitTests.java deleted file mode 100644 index 92f010017ac9..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallDialogAsyncUnitTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation; - -import com.azure.communication.callautomation.models.DialogInputType; -import com.azure.communication.callautomation.models.DialogStateResult; -import com.azure.communication.callautomation.models.StartDialogOptions; -import com.azure.core.http.rest.Response; -import org.junit.jupiter.api.Test; - -import java.util.*; - -import static com.azure.communication.callautomation.CallAutomationUnitTestBase.*; -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNotNull; - -public class CallDialogAsyncUnitTests { - - private CallDialogAsync callDialogAsync; - - @Test - public void startDialogWithResponseTest() { - // override callDialog to mock 201 response code - CallConnectionAsync callConnectionAsync = CallAutomationUnitTestBase.getCallConnectionAsync(new ArrayList<>( - Collections.singletonList(new AbstractMap.SimpleEntry<>(generateDialogStateResponse(), 201)))); - callDialogAsync = callConnectionAsync.getCallDialogAsync(); - - Map dialogContext = new HashMap<>(); - StartDialogOptions options = new StartDialogOptions(DialogInputType.POWER_VIRTUAL_AGENTS, dialogContext); - - options.setOperationContext("operationContext"); - options.setBotId(BOT_APP_ID); - - Response response = callDialogAsync.startDialogWithResponse(options).block(); - - assertNotNull(response); - assertEquals(response.getStatusCode(), 201); - } - - @Test - public void stopDialogWithResponseTest() { - // override callDialog to mock 204 response code - CallConnectionAsync callConnectionAsync = CallAutomationUnitTestBase - .getCallConnectionAsync(new ArrayList<>(Collections.singletonList(new AbstractMap.SimpleEntry<>("", 204)))); - callDialogAsync = callConnectionAsync.getCallDialogAsync(); - - Response response = callDialogAsync.stopDialogWithResponse(DIALOG_ID).block(); - - assertEquals(response.getStatusCode(), 204); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallDialogUnitTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallDialogUnitTests.java deleted file mode 100644 index 1e509c3fe988..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallDialogUnitTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation; - -import com.azure.communication.callautomation.models.DialogInputType; -import com.azure.communication.callautomation.models.DialogStateResult; -import com.azure.communication.callautomation.models.StartDialogOptions; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import org.junit.jupiter.api.Test; - -import java.util.*; - -import static com.azure.communication.callautomation.CallAutomationUnitTestBase.*; -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNotNull; - -public class CallDialogUnitTests { - - private CallDialog callDialog; - - @Test - public void startDialogTest() { - // override callDialog to mock 201 response code - CallConnection callConnection = CallAutomationUnitTestBase.getCallConnection(new ArrayList<>( - Collections.singletonList(new AbstractMap.SimpleEntry<>(generateDialogStateResponse(), 201)))); - callDialog = callConnection.getCallDialog(); - - Map dialogContext = new HashMap<>(); - StartDialogOptions options - = new StartDialogOptions(DIALOG_ID, DialogInputType.POWER_VIRTUAL_AGENTS, dialogContext); - - DialogStateResult response = callDialog.startDialog(options); - - assertNotNull(response); - assertEquals(response.getDialogId(), DIALOG_ID); - } - - @Test - public void startDialogWithResponseTest() { - // override callDialog to mock 201 response code - CallConnection callConnection = CallAutomationUnitTestBase.getCallConnection(new ArrayList<>( - Collections.singletonList(new AbstractMap.SimpleEntry<>(generateDialogStateResponse(), 201)))); - callDialog = callConnection.getCallDialog(); - - Map dialogContext = new HashMap<>(); - StartDialogOptions options = new StartDialogOptions(DialogInputType.AZURE_OPEN_AI, dialogContext); - - options.setOperationContext("operationContext"); - options.setBotId(BOT_APP_ID); - - Response response = callDialog.startDialogWithResponse(options, Context.NONE); - - assertNotNull(response); - assertEquals(response.getStatusCode(), 201); - } - - @Test - public void stopDialogWithResponseTest() { - // override callDialog to mock 204 response code - CallConnection callConnection = CallAutomationUnitTestBase - .getCallConnection(new ArrayList<>(Collections.singletonList(new AbstractMap.SimpleEntry<>("", 204)))); - callDialog = callConnection.getCallDialog(); - - Response response = callDialog.stopDialogWithResponse(DIALOG_ID, Context.NONE); - - assertEquals(response.getStatusCode(), 204); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java index 013bc0aa6260..6b8bb85c7a80 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java @@ -63,11 +63,6 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import com.azure.communication.callautomation.models.events.HoldAudioResumed; -import com.azure.communication.callautomation.models.events.HoldAudioCompleted; -import com.azure.communication.callautomation.models.events.HoldAudioPaused; -import com.azure.communication.callautomation.models.events.HoldAudioStarted; - public class CallMediaAsyncAutomatedLiveTests extends CallAutomationAutomatedLiveTestBase { @ParameterizedTest @@ -1213,247 +1208,4 @@ public void playMultipleCombinedSourcesWithPlayMediaAllTest(HttpClient httpClien } } } - - @ParameterizedTest - @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @DisabledIfEnvironmentVariable( - named = "SKIP_LIVE_TEST", - matches = "(?i)(true)", - disabledReason = "Requires environment to be set up") - public void interruptAudioAndAnnounceToholdParticipantInACallTest(HttpClient httpClient) { - /* Test case: ACS to ACS call - * 1. create a CallAutomationClient. - * 2. create a call from source to one ACS target. - * 3. get updated call properties and check for the connected state. - * 4. hold the participant - * 5. interrupt audio and announce. - * 6. unhold the participant - * 7. hang up the call. - */ - - CommunicationIdentityAsyncClient identityAsyncClient - = getCommunicationIdentityClientUsingConnectionString(httpClient) - .addPolicy((context, next) -> logHeaders("interruptAudioAndAnnounceToholdParticipantInACallTest", next)) - .buildAsyncClient(); - - List callDestructors = new ArrayList<>(); - - try { - // create caller and receiver - CommunicationUserIdentifier caller = identityAsyncClient.createUser().block(); - CommunicationUserIdentifier receiver = identityAsyncClient.createUser().block(); - - CallAutomationAsyncClient callerAsyncClient = getCallAutomationClientUsingConnectionString(httpClient) - .addPolicy((context, next) -> logHeaders("interruptAudioAndAnnounceToholdParticipantInACallTest", next)) - .sourceIdentity(caller) - .buildAsyncClient(); - - // Create call automation client for receivers. - CallAutomationAsyncClient receiverAsyncClient = getCallAutomationClientUsingConnectionString(httpClient) - .addPolicy((context, next) -> logHeaders("interruptAudioAndAnnounceToholdParticipantInACallTest", next)) - .buildAsyncClient(); - - String uniqueId = serviceBusWithNewCall(caller, receiver); - - // create a call - List targets = Collections.singletonList(receiver); - CreateGroupCallOptions createCallOptions - = new CreateGroupCallOptions(targets, DISPATCHER_CALLBACK + String.format("?q=%s", uniqueId)); - Response createCallResultResponse - = callerAsyncClient.createGroupCallWithResponse(createCallOptions).block(); - assertNotNull(createCallResultResponse); - CreateCallResult createCallResult = createCallResultResponse.getValue(); - assertNotNull(createCallResult); - assertNotNull(createCallResult.getCallConnectionProperties()); - String callerConnectionId = createCallResult.getCallConnectionProperties().getCallConnectionId(); - assertNotNull(callerConnectionId); - - // wait for the incomingCallContext - String incomingCallContext = waitForIncomingCallContext(uniqueId, Duration.ofSeconds(10)); - assertNotNull(incomingCallContext); - - // answer the call - AnswerCallOptions answerCallOptions - = new AnswerCallOptions(incomingCallContext, DISPATCHER_CALLBACK + String.format("?q=%s", uniqueId)); - AnswerCallResult answerCallResult - = Objects.requireNonNull(receiverAsyncClient.answerCallWithResponse(answerCallOptions).block()) - .getValue(); - assertNotNull(answerCallResult); - assertNotNull(answerCallResult.getCallConnectionAsync()); - assertNotNull(answerCallResult.getCallConnectionProperties()); - callDestructors.add(answerCallResult.getCallConnectionAsync()); - - // wait for callConnected - CallConnected callConnected = waitForEvent(CallConnected.class, callerConnectionId, Duration.ofSeconds(10)); - assertNotNull(callConnected); - System.out.println("CALL CONNECTED: " + callConnected); - - // hold the participant - CallMediaAsync callMediaAsync = createCallResult.getCallConnectionAsync().getCallMediaAsync(); - callMediaAsync.hold(receiver).block(); - - sleepIfRunningAgainstService(3000); - CallConnectionAsync callConnectionAsync = callerAsyncClient.getCallConnectionAsync(callerConnectionId); - - CallParticipant participantResult = callConnectionAsync.getParticipant(receiver).block(); - assertNotNull(participantResult); - assertTrue(participantResult.isOnHold()); - - callMediaAsync.interruptAudioAndAnnounce(new FileSource().setUrl(MEDIA_SOURCE), receiver).block(); - - sleepIfRunningAgainstService(3000); - - // unhold the participant - callMediaAsync.unhold(receiver).block(); - - sleepIfRunningAgainstService(3000); - participantResult = callConnectionAsync.getParticipant(receiver).block(); - assertNotNull(participantResult); - assertFalse(participantResult.isOnHold()); - } catch (Exception ex) { - fail("Unexpected exception received", ex); - } finally { - if (!callDestructors.isEmpty()) { - try { - callDestructors.forEach(callConnection -> callConnection.hangUpWithResponse(true).block()); - } catch (Exception ignored) { - // Some call might have been terminated during the test, and it will cause exceptions here. - // Do nothing and iterate to next call connection. - } - } - } - } - - @ParameterizedTest - @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @DisabledIfEnvironmentVariable( - named = "SKIP_LIVE_TEST", - matches = "(?i)(true)", - disabledReason = "Requires environment to be set up") - public void playMultipleFileSourcesWhenParticipantOnHoldTest(HttpClient httpClient) { - /* Test case: ACS to ACS call - * 1. create a CallAutomationClient. - * 2. create a call from source to one ACS target. - * 3. get updated call properties and check for the connected state. - * 4. hold the participant - * 5. play a media to target participant with mutiple file prompts - * 6. unhold the participant - * 7. hang up the call. - */ - - CommunicationIdentityAsyncClient identityAsyncClient - = getCommunicationIdentityClientUsingConnectionString(httpClient) - .addPolicy((context, next) -> logHeaders("playMultipleFileSourcesWhenParticipantOnHoldTest", next)) - .buildAsyncClient(); - - List callDestructors = new ArrayList<>(); - - try { - // create caller and receiver - CommunicationUserIdentifier caller = identityAsyncClient.createUser().block(); - CommunicationIdentifier receiver = identityAsyncClient.createUser().block(); - - CallAutomationAsyncClient callerAsyncClient = getCallAutomationClientUsingConnectionString(httpClient) - .addPolicy((context, next) -> logHeaders("playMultipleFileSourcesWhenParticipantOnHoldTest", next)) - .sourceIdentity(caller) - .buildAsyncClient(); - - // Create call automation client for receivers. - CallAutomationAsyncClient receiverAsyncClient = getCallAutomationClientUsingConnectionString(httpClient) - .addPolicy((context, next) -> logHeaders("playMultipleFileSourcesWhenParticipantOnHoldTest", next)) - .buildAsyncClient(); - - String uniqueId = serviceBusWithNewCall(caller, receiver); - - // create a call - List targets = Collections.singletonList(receiver); - CreateGroupCallOptions createCallOptions - = new CreateGroupCallOptions(targets, DISPATCHER_CALLBACK + String.format("?q=%s", uniqueId)); - Response createCallResultResponse - = callerAsyncClient.createGroupCallWithResponse(createCallOptions).block(); - assertNotNull(createCallResultResponse); - CreateCallResult createCallResult = createCallResultResponse.getValue(); - assertNotNull(createCallResult); - assertNotNull(createCallResult.getCallConnectionProperties()); - String callerConnectionId = createCallResult.getCallConnectionProperties().getCallConnectionId(); - assertNotNull(callerConnectionId); - - // wait for the incomingCallContext - String incomingCallContext = waitForIncomingCallContext(uniqueId, Duration.ofSeconds(10)); - assertNotNull(incomingCallContext); - - // answer the call - AnswerCallOptions answerCallOptions - = new AnswerCallOptions(incomingCallContext, DISPATCHER_CALLBACK + String.format("?q=%s", uniqueId)); - AnswerCallResult answerCallResult - = Objects.requireNonNull(receiverAsyncClient.answerCallWithResponse(answerCallOptions).block()) - .getValue(); - assertNotNull(answerCallResult); - assertNotNull(answerCallResult.getCallConnectionAsync()); - assertNotNull(answerCallResult.getCallConnectionProperties()); - callDestructors.add(answerCallResult.getCallConnectionAsync()); - - // wait for callConnected - CallConnected callConnected = waitForEvent(CallConnected.class, callerConnectionId, Duration.ofSeconds(10)); - assertNotNull(callConnected); - - // hold the participant - CallMediaAsync callMediaAsync = createCallResult.getCallConnectionAsync().getCallMediaAsync(); - PlaySource holdPlaySource = new FileSource().setUrl(MEDIA_SOURCE); - callMediaAsync.hold(receiver, holdPlaySource).block(); - sleepIfRunningAgainstService(3000); - HoldAudioStarted holdAudioStarted - = waitForEvent(HoldAudioStarted.class, callerConnectionId, Duration.ofSeconds(20)); - assertNotNull(holdAudioStarted); - - CallConnectionAsync callConnectionAsync = callerAsyncClient.getCallConnectionAsync(callerConnectionId); - CallParticipant participantResult = callConnectionAsync.getParticipant(receiver).block(); - assertNotNull(participantResult); - assertTrue(participantResult.isOnHold()); - - // Assert multiple File Sources - List playFileSources = new ArrayList(); - playFileSources.add(new FileSource().setUrl(MEDIA_SOURCE)); - playFileSources.add(new FileSource().setUrl(MEDIA_SOURCE)); - PlayOptions playOptions = new PlayOptions(playFileSources, targets); - playOptions.setInterruptHoldAudio(true); - // Play multiple files sources - callMediaAsync.playWithResponse(playOptions).block(); - HoldAudioPaused holdAudioPaused - = waitForEvent(HoldAudioPaused.class, callerConnectionId, Duration.ofSeconds(20)); - assertNotNull(holdAudioPaused); - - PlayStarted playStarted = waitForEvent(PlayStarted.class, callerConnectionId, Duration.ofSeconds(20)); - assertNotNull(playStarted); - - PlayCompleted playCompleted = waitForEvent(PlayCompleted.class, callerConnectionId, Duration.ofSeconds(20)); - assertNotNull(playCompleted); - - HoldAudioResumed holdAudioResumed - = waitForEvent(HoldAudioResumed.class, callerConnectionId, Duration.ofSeconds(20)); - assertNotNull(holdAudioResumed); - - // unhold the participant - callMediaAsync.unhold(receiver).block(); - HoldAudioCompleted holdAudioCompleted - = waitForEvent(HoldAudioCompleted.class, callerConnectionId, Duration.ofSeconds(20)); - assertNotNull(holdAudioCompleted); - - sleepIfRunningAgainstService(3000); - participantResult = callConnectionAsync.getParticipant(receiver).block(); - assertNotNull(participantResult); - assertFalse(participantResult.isOnHold()); - } catch (Exception ex) { - fail("Unexpected exception received", ex); - } finally { - if (!callDestructors.isEmpty()) { - try { - callDestructors.forEach(callConnection -> callConnection.hangUpWithResponse(true).block()); - } catch (Exception ignored) { - // Some call might have been terminated during the test, and it will cause exceptions here. - // Do nothing and iterate to next call connection. - } - } - } - } } diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncUnitTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncUnitTests.java index 0877974a5d00..4210f03113af 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncUnitTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncUnitTests.java @@ -12,7 +12,6 @@ import com.azure.communication.callautomation.models.DtmfTone; import com.azure.communication.callautomation.models.FileSource; import com.azure.communication.callautomation.models.HoldOptions; -import com.azure.communication.callautomation.models.InterruptAudioAndAnnounceOptions; import com.azure.communication.callautomation.models.PlayOptions; import com.azure.communication.callautomation.models.PlayToAllOptions; import com.azure.communication.callautomation.models.RecognitionChoice; @@ -566,15 +565,4 @@ public void stopMediaStreamingWithResponse() { .consumeNextWith(response -> assertEquals(202, response.getStatusCode())) .verifyComplete(); } - - @Test - public void interruptAudioAndAnnounceWithResponseTest() { - callMedia = getMockCallMedia(202); - InterruptAudioAndAnnounceOptions options - = new InterruptAudioAndAnnounceOptions(playTextSource, new CommunicationUserIdentifier("id")); - options.setOperationContext("operationContext"); - StepVerifier.create(callMedia.interruptAudioAndAnnounceWithResponse(options)) - .consumeNextWith(response -> assertEquals(202, response.getStatusCode())) - .verifyComplete(); - } } diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaUnitTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaUnitTests.java index 14822d09c7b5..c9083ddfa884 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaUnitTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaUnitTests.java @@ -271,13 +271,4 @@ public void stopMediaStremaingWithResponse() { Response response = callMedia.stopMediaStreamingWithResponse(options, Context.NONE); assertEquals(response.getStatusCode(), 202); } - - @Test - public void interruptAudioAndAnnounceWithResponseTest() { - InterruptAudioAndAnnounceOptions options - = new InterruptAudioAndAnnounceOptions(playTextSource, new CommunicationUserIdentifier("id")); - options.setOperationContext("operationContext"); - Response response = callMedia.interruptAudioAndAnnounceWithResponse(options, Context.NONE); - assertEquals(response.getStatusCode(), 202); - } } diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAsyncUnitTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAsyncUnitTests.java index 363bcea85597..90daf237cc3c 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAsyncUnitTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAsyncUnitTests.java @@ -45,25 +45,6 @@ public void recordingOperationsTest() { assertThrows(HttpResponseException.class, () -> callRecording.getState(RECORDING_ID).block()); } - @Test - public void recordingOperationsWithCallConnectionIdTest() { - CallAutomationAsyncClient callingServerClient - = CallAutomationUnitTestBase.getCallAutomationAsyncClient(recordingOperationsResponses); - callRecording = callingServerClient.getCallRecordingAsync(); - - validateRecordingState( - callRecording.start( - new StartRecordingOptions(CALL_CONNECTION_ID).setRecordingStateCallbackUrl("https://localhost/")), - RecordingState.ACTIVE); - - validateOperationWithRecordingState(callRecording.pause(RECORDING_ID), RecordingState.INACTIVE); - - validateOperationWithRecordingState(callRecording.resume(RECORDING_ID), RecordingState.ACTIVE); - - validateOperation(callRecording.stop(RECORDING_ID)); - assertThrows(HttpResponseException.class, () -> callRecording.getState(RECORDING_ID).block()); - } - private void validateRecordingState(Publisher publisher, RecordingState status) { StepVerifier.create(publisher) .consumeNextWith(recordingStateResponse -> validateRecording(recordingStateResponse, status)) diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAutomatedLiveTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAutomatedLiveTests.java index 2bdb35ea314f..79864ecb45f9 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAutomatedLiveTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAutomatedLiveTests.java @@ -215,92 +215,4 @@ public void createACSCallUnmixedAudioAffinityTest(HttpClient httpClient) { fail("Unexpected exception received", ex); } } - - @Disabled("This test is failing in the pipeline, needs to be fixed.") - @ParameterizedTest - @MethodSource("com.azure.core.test.TestBase#getHttpClients") - public void createACSCallAndStartRecordingWithCallConnectionIdTest(HttpClient httpClient) { - /* Test case: ACS to ACS call - * 1. create a CallAutomationClient. - * 2. create a call from source to one ACS target. - * 3. get updated call properties and check for the connected state. - * 4. start recording with callConnectionId and the call without channel affinity - * 5. stop recording the call - * 6. hang up the call. - * 7. once call is hung up, verify disconnected event - */ - CommunicationIdentityClient communicationIdentityClient - = getCommunicationIdentityClientUsingConnectionString(httpClient).buildClient(); - - String callConnectionId = ""; - try { - // Create caller and receiver - CommunicationUserIdentifier source = communicationIdentityClient.createUser(); - CommunicationUserIdentifier target = communicationIdentityClient.createUser(); - - // Create call automation client and use source as the caller. - CallAutomationClient callerClient = getCallAutomationClientUsingConnectionString(httpClient) - .addPolicy((context, next) -> logHeaders("recordingOperations", next)) - .sourceIdentity(source) - .buildClient(); - - // Create call automation client for receivers. - CallAutomationClient receiverClient = getCallAutomationClientUsingConnectionString(httpClient) - .addPolicy((context, next) -> logHeaders("recordingOperations", next)) - .buildClient(); - - // setup service bus - String uniqueId = serviceBusWithNewCall(source, target); - - // create call and assert response - CreateGroupCallOptions createCallOptions = new CreateGroupCallOptions(Arrays.asList(target), - String.format("%s?q=%s", DISPATCHER_CALLBACK, uniqueId)); - CreateCallResult createCallResult - = callerClient.createGroupCallWithResponse(createCallOptions, null).getValue(); - callConnectionId = createCallResult.getCallConnectionProperties().getCallConnectionId(); - assertNotNull(callConnectionId); - - // wait for incoming call context - String incomingCallContext = waitForIncomingCallContext(uniqueId, Duration.ofSeconds(10)); - assertNotNull(incomingCallContext); - - // answer the call - AnswerCallOptions answerCallOptions = new AnswerCallOptions(incomingCallContext, DISPATCHER_CALLBACK); - AnswerCallResult answerCallResult - = receiverClient.answerCallWithResponse(answerCallOptions, null).getValue(); - assertNotNull(answerCallResult); - - // wait for callConnected - CallConnected callConnected = waitForEvent(CallConnected.class, callConnectionId, Duration.ofSeconds(10)); - assertNotNull(callConnected); - - // get properties - CallConnectionProperties callConnectionProperties - = createCallResult.getCallConnection().getCallProperties(); - assertEquals(CallConnectionState.CONNECTED, callConnectionProperties.getCallConnectionState()); - - // start recording - RecordingStateResult recordingStateResult = callerClient.getCallRecording() - .start(new StartRecordingOptions(callConnectionId).setRecordingChannel(RecordingChannel.UNMIXED) - .setRecordingContent(RecordingContent.AUDIO) - .setRecordingFormat(RecordingFormat.WAV) - .setRecordingStateCallbackUrl(DISPATCHER_CALLBACK)); - - assertNotNull(recordingStateResult.getRecordingId()); - - // stop recording - callerClient.getCallRecording().stop(recordingStateResult.getRecordingId()); - - // hangup - if (!callConnectionId.isEmpty()) { - CallConnection callConnection = callerClient.getCallConnection(callConnectionId); - callConnection.hangUp(true); - CallDisconnected callDisconnected - = waitForEvent(CallDisconnected.class, callConnectionId, Duration.ofSeconds(10)); - assertNotNull(callDisconnected); - } - } catch (Exception ex) { - fail("Unexpected exception received", ex); - } - } } diff --git a/sdk/communication/azure-communication-callautomation/swagger/README.md b/sdk/communication/azure-communication-callautomation/swagger/README.md index bc1b9f104b5a..6ba3fdd90494 100644 --- a/sdk/communication/azure-communication-callautomation/swagger/README.md +++ b/sdk/communication/azure-communication-callautomation/swagger/README.md @@ -29,10 +29,10 @@ autorest README.md --java --v4 ### Code generation settings ``` yaml -tag: package-2024-09-01-preview +tag: package-2025-05-15 use: '@autorest/java@4.1.29' require: - - https://github.com/Azure/azure-rest-api-specs/blob/d1bedfa9c084a2e3f9cbeb075c532d691c3c0095/specification/communication/data-plane/CallAutomation/readme.md + - https://github.com/Azure/azure-rest-api-specs/blob/8bf7f264d186b52eccb579accd3f584788511049/specification/communication/data-plane/CallAutomation/readme.md java: true output-folder: ../ license-header: MICROSOFT_MIT_SMALL @@ -157,12 +157,18 @@ directive: - rename-model: from: MediaStreamingOptions to: MediaStreamingOptionsInternal +- rename-model: + from: WebSocketMediaStreamingOptions + to: WebSocketMediaStreamingOptionsInternal - rename-model: from: MediaStreamingSubscription to: MediaStreamingSubscriptionInternal - rename-model: from: TranscriptionSubscription to: TranscriptionSubscriptionInternal +- rename-model: + from: WebSocketTranscriptionOptions + to: WebSocketTranscriptionOptionsInternal - rename-model: from: DtmfOptions to: DtmfOptionsInternal From f5cebcd66d0e2518b989f0fb84a9e1f94342027c Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Tue, 13 May 2025 11:45:27 -0700 Subject: [PATCH 02/31] ga5 api changes --- .../CallAutomationAsyncClient.java | 5 - .../callautomation/models/AudioData.java | 6 +- .../callautomation/models/AudioMetadata.java | 7 +- .../models/CustomCallingContext.java | 97 +------------------ .../models/MediaStreamingSubscription.java | 4 +- .../models/RemoveParticipantEventResult.java | 72 -------------- .../models/TranscriptionData.java | 5 + .../models/TranscriptionMetadata.java | 1 + .../models/TranscriptionSubscription.java | 4 +- .../CallAutomationClientUnitTests.java | 20 ---- .../CallConnectionAsyncUnitTests.java | 79 --------------- .../CallConnectionUnitTests.java | 39 -------- 12 files changed, 26 insertions(+), 313 deletions(-) delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RemoveParticipantEventResult.java diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java index 6725e3f3e487..2314d820c46c 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java @@ -5,13 +5,11 @@ import com.azure.communication.callautomation.implementation.AzureCommunicationCallAutomationServiceImpl; import com.azure.communication.callautomation.implementation.CallConnectionsImpl; -import com.azure.communication.callautomation.implementation.CallDialogsImpl; import com.azure.communication.callautomation.implementation.CallMediasImpl; import com.azure.communication.callautomation.implementation.CallRecordingsImpl; import com.azure.communication.callautomation.implementation.accesshelpers.CallConnectionPropertiesConstructorProxy; import com.azure.communication.callautomation.implementation.converters.CommunicationIdentifierConverter; import com.azure.communication.callautomation.implementation.converters.CommunicationUserIdentifierConverter; -import com.azure.communication.callautomation.implementation.converters.MicrosoftTeamsAppIdentifierConverter; import com.azure.communication.callautomation.implementation.converters.PhoneNumberIdentifierConverter; import com.azure.communication.callautomation.implementation.models.AnswerCallRequestInternal; import com.azure.communication.callautomation.implementation.models.AudioFormatInternal; @@ -23,15 +21,12 @@ import com.azure.communication.callautomation.implementation.models.CommunicationUserIdentifierModel; import com.azure.communication.callautomation.implementation.models.ConnectRequestInternal; import com.azure.communication.callautomation.implementation.models.CreateCallRequestInternal; -import com.azure.communication.callautomation.implementation.models.CustomCallingContext; import com.azure.communication.callautomation.implementation.models.MediaStreamingAudioChannelTypeInternal; import com.azure.communication.callautomation.implementation.models.MediaStreamingContentTypeInternal; import com.azure.communication.callautomation.implementation.models.MediaStreamingOptionsInternal; -import com.azure.communication.callautomation.implementation.models.MediaStreamingTransportTypeInternal; import com.azure.communication.callautomation.implementation.models.RedirectCallRequestInternal; import com.azure.communication.callautomation.implementation.models.RejectCallRequestInternal; import com.azure.communication.callautomation.implementation.models.TranscriptionOptionsInternal; -import com.azure.communication.callautomation.implementation.models.TranscriptionTransportTypeInternal; import com.azure.communication.callautomation.implementation.models.WebSocketMediaStreamingOptionsInternal; import com.azure.communication.callautomation.implementation.models.WebSocketTranscriptionOptionsInternal; import com.azure.communication.callautomation.models.AnswerCallOptions; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java index c671ef5e131f..aaf0ef90d9e8 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java @@ -14,7 +14,7 @@ /** The MediaStreamingAudio model. */ public final class AudioData extends StreamingData { /* - * The audio data, encoded as a base64 string. + * The audio data, encoded as a base64 byte. */ private final byte[] data; @@ -87,6 +87,7 @@ public AudioData() { } /** + * The audio data, encoded as a base64 byte. * Get the data property. * * @return the data value. @@ -96,6 +97,8 @@ public byte[] getData() { } /** + * The timestamp indicating when the media content was received by the bot, or if the bot is sending media, + * the timestamp of when the media was sourced. The format is ISO 8601 (yyyy-mm-ddThh:mm) * Get the timestamp property. * * @return the timestamp value. @@ -105,6 +108,7 @@ public OffsetDateTime getTimestamp() { } /** + * The raw ID of the participant. * Get the participantRawID property. * * @return the participantRawID value. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java index 763c2fa020c6..eb7df620054b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java @@ -33,7 +33,7 @@ public final class AudioMetadata extends StreamingData { private final Channels channels; /* - * The size of the audio data being sent, based on the sample rate and duration. + * The size of the audio data (base64 byte) being sent, based on the sample rate and duration. */ private final Integer length; @@ -72,6 +72,7 @@ public AudioMetadata() { } /** + * A unique identifier for the media subscription. * Get the mediaSubscriptionId property. * * @return the mediaSubscriptionId value. @@ -81,6 +82,7 @@ public String getMediaSubscriptionId() { } /** + * The format used to encode the audio. Currently, only "pcm" (Pulse Code Modulation) is supported. * Get the encoding property. * * @return the encoding value. @@ -90,6 +92,7 @@ public String getEncoding() { } /** + * The number of samples per second in the audio. Supported values are 16kHz or 24kHz. * Get the sampleRate property. * * @return the sampleRate value. @@ -99,6 +102,7 @@ public int getSampleRate() { } /** + * Specifies the number of audio channels in the audio configuration. Currently, only "mono" (single channel) is supported. * Get the channels property. * * @return the channels value. @@ -108,6 +112,7 @@ public Channels getChannels() { } /** + * The size of the audio data (base64 byte) being sent, based on the sample rate and duration. * Get the length property. * * @return the length value. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CustomCallingContext.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CustomCallingContext.java index aa674b761678..1a50447e31ac 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CustomCallingContext.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CustomCallingContext.java @@ -6,33 +6,18 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.HashMap; import java.util.Map; /** * Custom calling context details. */ @Fluent -public final class CustomCallingContext implements JsonSerializable { - private Map sipHeaders; - private Map voipHeaders; +public final class CustomCallingContext { + private final Map sipHeaders; + private final Map voipHeaders; private final ClientLogger logger; - /** - * Creates an instance of CustomCallingContext class. - */ - public CustomCallingContext() { - this.sipHeaders = new HashMap(); - this.voipHeaders = new HashMap(); - this.logger = new ClientLogger(CustomCallingContext.class); - } - /** * Create a CustomCallingContext object with SIP and VOIP headers * @@ -81,44 +66,13 @@ public void addSipUui(String value) { * * @param key custom context sip x header's key. * @param value custom context sip x header's value. - */ - public void addSipX(String key, String value) { - addSipX(key, value, SipHeaderPrefix.XMSCustom); - } - - /** - * Add a custom context sip X header. The provided key is appended to 'X-MS-Custom-' in last. - * - * @param key custom context sip x header's key. - * @param value custom context sip x header's value. - * @param prefix The prefix to use for the header. * @throws IllegalStateException If sipHeaders is null */ - public void addSipX(String key, String value, SipHeaderPrefix prefix) { + public void addSipX(String key, String value) { if (sipHeaders == null) { throw logger.logExceptionAsError(new IllegalStateException("Cannot add sip header, SipHeaders is null.")); } - if (prefix == SipHeaderPrefix.X) { - sipHeaders.put("X-" + key, value); - } else { - sipHeaders.put("X-MS-Custom-" + key, value); - } - } - - /** - * Type for SipHeaderPrefix. - * XMSCustom is the default prefix for custom headers. - */ - public enum SipHeaderPrefix { - /** - * Use the generic "X-" prefix. - */ - X, - - /** - * Use the legacy "X-MS-Custom" prefix. - */ - XMSCustom + sipHeaders.put("X-MS-Custom-" + key, value); } /** @@ -134,45 +88,4 @@ public void addVoip(String key, String value) { } voipHeaders.put(key, value); } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeMapField("voipHeaders", this.voipHeaders, (writer, element) -> writer.writeString(element)); - jsonWriter.writeMapField("sipHeaders", this.sipHeaders, (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of CustomCallingContext from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CustomCallingContext if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IOException If an error occurs while reading the CustomCallingContext. - */ - public static CustomCallingContext fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CustomCallingContext deserializedCustomCallingContext = new CustomCallingContext(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("voipHeaders".equals(fieldName)) { - Map voipHeaders = reader.readMap(reader1 -> reader1.getString()); - deserializedCustomCallingContext.voipHeaders = voipHeaders; - } else if ("sipHeaders".equals(fieldName)) { - Map sipHeaders = reader.readMap(reader1 -> reader1.getString()); - deserializedCustomCallingContext.sipHeaders = sipHeaders; - } else { - reader.skipChildren(); - } - } - - return deserializedCustomCallingContext; - }); - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingSubscription.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingSubscription.java index 6e72f3a21369..6769eb5701d3 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingSubscription.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingSubscription.java @@ -4,7 +4,7 @@ package com.azure.communication.callautomation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.communication.callautomation.implementation.models.MediaStreamingSubscriptionInternal; import com.azure.communication.callautomation.implementation.accesshelpers.MediaStreamingSubscriptionConstructorProxy; import java.util.List; @@ -19,7 +19,7 @@ /** * Media streaming Subscription Object. */ -@Fluent +@Immutable public final class MediaStreamingSubscription implements JsonSerializable { /* * Gets or Sets subscription Id. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RemoveParticipantEventResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RemoveParticipantEventResult.java deleted file mode 100644 index f81123ebf748..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RemoveParticipantEventResult.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.communication.callautomation.models; - -import com.azure.communication.callautomation.models.events.RemoveParticipantFailed; -import com.azure.communication.callautomation.models.events.RemoveParticipantSucceeded; -import com.azure.communication.common.CommunicationIdentifier; -import com.azure.core.annotation.Immutable; - -/** - * The result of a remove participant event. - */ -@Immutable -public final class RemoveParticipantEventResult { - private final boolean isSuccess; - private final RemoveParticipantSucceeded successResult; - private final RemoveParticipantFailed failureResult; - private final CommunicationIdentifier participant; - - /** - * Initializes a new instance of RemoveParticipantEventResult. - * - * @param isSuccess the success status of the remove participant operation. - * @param successResult the remove participant succeeded event. - * @param failureResult the remove participant failed event. - * @param participant the participant. - */ - RemoveParticipantEventResult(boolean isSuccess, RemoveParticipantSucceeded successResult, - RemoveParticipantFailed failureResult, CommunicationIdentifier participant) { - this.isSuccess = isSuccess; - this.successResult = successResult; - this.failureResult = failureResult; - this.participant = participant; - } - - /** - * Gets the success status of the remove participant operation. - * - * @return the success status of the remove participant operation. - */ - public boolean isSuccess() { - return isSuccess; - } - - /** - * Gets the remove participant succeeded event. - * - * @return the remove participant succeeded event. - */ - public RemoveParticipantSucceeded getSuccessResult() { - return successResult; - } - - /** - * Gets the remove participant failed event. - * - * @return the remove participant failed event. - */ - public RemoveParticipantFailed getFailureResult() { - return failureResult; - } - - /** - * Gets the participant. - * - * @return the participant. - */ - public CommunicationIdentifier getParticipant() { - return participant; - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java index f0ede0dfb3f5..6ea91ead16b2 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java @@ -126,6 +126,7 @@ private TextFormat convertToTextFormatEnum(String format) { } /** + * The display form of the recognized word * Get the text property. * * @return the text value. @@ -144,6 +145,7 @@ public TextFormat getFormat() { } /** + * Confidence of recognition of the whole phrase, from 0.0 (no confidence) to 1.0 (full confidence) * Get the confidence property. * * @return the confidence value. @@ -153,6 +155,7 @@ public double getConfidence() { } /** + * The position of this payload * Get the offset property. * * @return the offset value. @@ -162,6 +165,7 @@ public Long getOffset() { } /** + * Duration in ticks. 1 tick = 100 nanoseconds. * Get the duration property. * * @return the duration value. @@ -171,6 +175,7 @@ public Duration getDuration() { } /** + * The result for each word of the phrase * Get the words property. * * @return the words value. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java index 266727614930..d7ff4a73d347 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java @@ -72,6 +72,7 @@ public String getTranscriptionSubscriptionId() { } /** + * The target locale in which the translated text needs to be * Get the locale property. * * @return the locale value. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java index 8ef85b874e4c..f41cdb39cd2b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java @@ -4,7 +4,7 @@ package com.azure.communication.callautomation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.communication.callautomation.implementation.models.TranscriptionSubscriptionInternal; import com.azure.communication.callautomation.implementation.accesshelpers.TranscriptionSubscriptionConstructorProxy; import java.util.List; @@ -19,7 +19,7 @@ /** * Transcription Subscription Object. */ -@Fluent +@Immutable public final class TranscriptionSubscription implements JsonSerializable { /* * Gets or Sets subscription Id. diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationClientUnitTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationClientUnitTests.java index 48f02f12d437..4cb970a910d1 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationClientUnitTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationClientUnitTests.java @@ -66,26 +66,6 @@ public void createCallWithResponse() { assertNotNull(createCallResult.getValue()); } - @Test - public void createTeamsAppCallWithResponse() { - MicrosoftTeamsAppIdentifier caller = new MicrosoftTeamsAppIdentifier(TEAMS_APP_CALL_CALLER_ID); - - CallAutomationClient callAutomationClient = getCallAutomationClient(new ArrayList<>(Collections - .singletonList(new SimpleEntry<>(generateTeamsAppCallProperties(CALL_CONNECTION_ID, CALL_SERVER_CALL_ID, - CALL_TARGET_ID, CALL_CONNECTION_STATE, CALL_CALLBACK_URL, TEAMS_APP_CALL_CALLER_ID), 201)))); - PhoneNumberIdentifier target = new PhoneNumberIdentifier(CALL_TARGET_ID); - - Response createCallResult = callAutomationClient.createCallWithResponse( - new CreateCallOptions(new CallInvite(target, null), CALL_CALLBACK_URL).setTeamsAppSource(caller), - Context.NONE); - - assertNotNull(createCallResult); - assertEquals(201, createCallResult.getStatusCode()); - assertEquals(TEAMS_APP_CALL_CALLER_ID, - ((MicrosoftTeamsAppIdentifier) (createCallResult.getValue().getCallConnectionProperties().getSource())) - .getAppId()); - } - @Test public void answerCall() { CallAutomationClient callAutomationClient = getCallAutomationClient( diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallConnectionAsyncUnitTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallConnectionAsyncUnitTests.java index 94d2bcc504a9..66c46f64d0d0 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallConnectionAsyncUnitTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallConnectionAsyncUnitTests.java @@ -14,7 +14,6 @@ import com.azure.communication.callautomation.models.CallParticipant; import com.azure.communication.callautomation.models.CancelAddParticipantOperationOptions; import com.azure.communication.callautomation.models.CancelAddParticipantOperationResult; -import com.azure.communication.callautomation.models.CustomCallingContext.SipHeaderPrefix; import com.azure.communication.callautomation.models.MuteParticipantOptions; import com.azure.communication.callautomation.models.MuteParticipantResult; import com.azure.communication.callautomation.models.RemoveParticipantOptions; @@ -181,44 +180,6 @@ public void transferToParticipantCallWithResponse() { assertNotNull(transferCallResultResponse.getValue()); } - @Test - public void transferToParticipantCallWithResponsePhoneNumberIdentifierXMSHeader() { - CallConnectionAsync callConnectionAsync - = getCallAutomationAsyncClient(new ArrayList<>(Collections.singletonList(new SimpleEntry<>( - serializeObject(new TransferCallResponseInternal().setOperationContext(CALL_OPERATION_CONTEXT)), 202)))) - .getCallConnectionAsync(CALL_CONNECTION_ID); - - TransferCallToParticipantOptions transferCallToParticipantOptions - = new TransferCallToParticipantOptions(new PhoneNumberIdentifier(CALL_PSTN_TARGET_ID)) - .setOperationContext(CALL_OPERATION_CONTEXT); - transferCallToParticipantOptions.getCustomCallingContext() - .addSipX("Test-Sip-Header", "Test-Sip-Value", SipHeaderPrefix.XMSCustom); - Response transferCallResultResponse - = callConnectionAsync.transferCallToParticipantWithResponse(transferCallToParticipantOptions).block(); - assertNotNull(transferCallResultResponse); - assertEquals(202, transferCallResultResponse.getStatusCode()); - assertNotNull(transferCallResultResponse.getValue()); - } - - @Test - public void transferToParticipantCallWithResponsePhoneNumberIdentifierXHeader() { - CallConnectionAsync callConnectionAsync - = getCallAutomationAsyncClient(new ArrayList<>(Collections.singletonList(new SimpleEntry<>( - serializeObject(new TransferCallResponseInternal().setOperationContext(CALL_OPERATION_CONTEXT)), 202)))) - .getCallConnectionAsync(CALL_CONNECTION_ID); - - TransferCallToParticipantOptions transferCallToParticipantOptions - = new TransferCallToParticipantOptions(new PhoneNumberIdentifier(CALL_PSTN_TARGET_ID)) - .setOperationContext(CALL_OPERATION_CONTEXT); - transferCallToParticipantOptions.getCustomCallingContext() - .addSipX("Test-Sip-Header", "Test-Sip-Value", SipHeaderPrefix.X); - Response transferCallResultResponse - = callConnectionAsync.transferCallToParticipantWithResponse(transferCallToParticipantOptions).block(); - assertNotNull(transferCallResultResponse); - assertEquals(202, transferCallResultResponse.getStatusCode()); - assertNotNull(transferCallResultResponse.getValue()); - } - @Test public void transferToParticipantCallWithResponseWithTransferee() { CallConnectionAsync callConnectionAsync @@ -238,46 +199,6 @@ public void transferToParticipantCallWithResponseWithTransferee() { assertNotNull(transferCallResultResponse.getValue()); } - @Test - public void transferToParticipantCallWithResponsePhoneNumberIdentifierXMSHeaderWithTransferee() { - CallConnectionAsync callConnectionAsync - = getCallAutomationAsyncClient(new ArrayList<>(Collections.singletonList(new SimpleEntry<>( - serializeObject(new TransferCallResponseInternal().setOperationContext(CALL_OPERATION_CONTEXT)), 202)))) - .getCallConnectionAsync(CALL_CONNECTION_ID); - - TransferCallToParticipantOptions transferCallToParticipantOptions - = new TransferCallToParticipantOptions(new PhoneNumberIdentifier(CALL_PSTN_TARGET_ID)) - .setOperationContext(CALL_OPERATION_CONTEXT) - .setTransferee(new CommunicationUserIdentifier(CALL_TRANSFEREE_ID)); - transferCallToParticipantOptions.getCustomCallingContext() - .addSipX("Test-Sip-Header", "Test-Sip-Value", SipHeaderPrefix.XMSCustom); - Response transferCallResultResponse - = callConnectionAsync.transferCallToParticipantWithResponse(transferCallToParticipantOptions).block(); - assertNotNull(transferCallResultResponse); - assertEquals(202, transferCallResultResponse.getStatusCode()); - assertNotNull(transferCallResultResponse.getValue()); - } - - @Test - public void transferToParticipantCallWithResponsePhoneNumberIdentifierXHeaderWithTransferee() { - CallConnectionAsync callConnectionAsync - = getCallAutomationAsyncClient(new ArrayList<>(Collections.singletonList(new SimpleEntry<>( - serializeObject(new TransferCallResponseInternal().setOperationContext(CALL_OPERATION_CONTEXT)), 202)))) - .getCallConnectionAsync(CALL_CONNECTION_ID); - - TransferCallToParticipantOptions transferCallToParticipantOptions - = new TransferCallToParticipantOptions(new PhoneNumberIdentifier(CALL_PSTN_TARGET_ID)) - .setOperationContext(CALL_OPERATION_CONTEXT) - .setTransferee(new CommunicationUserIdentifier(CALL_TRANSFEREE_ID)); - transferCallToParticipantOptions.getCustomCallingContext() - .addSipX("Test-Sip-Header", "Test-Sip-Value", SipHeaderPrefix.X); - Response transferCallResultResponse - = callConnectionAsync.transferCallToParticipantWithResponse(transferCallToParticipantOptions).block(); - assertNotNull(transferCallResultResponse); - assertEquals(202, transferCallResultResponse.getStatusCode()); - assertNotNull(transferCallResultResponse.getValue()); - } - @Test public void addParticipants() { CallConnectionAsync callConnectionAsync = getCallAutomationAsyncClient( diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallConnectionUnitTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallConnectionUnitTests.java index 0a54cd0c34bd..203e29704cf5 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallConnectionUnitTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallConnectionUnitTests.java @@ -20,7 +20,6 @@ import com.azure.communication.callautomation.models.RemoveParticipantResult; import com.azure.communication.callautomation.models.TransferCallResult; import com.azure.communication.callautomation.models.TransferCallToParticipantOptions; -import com.azure.communication.callautomation.models.CustomCallingContext.SipHeaderPrefix; import com.azure.communication.common.CommunicationUserIdentifier; import com.azure.communication.common.PhoneNumberIdentifier; import com.azure.core.http.rest.Response; @@ -181,44 +180,6 @@ public void transferToParticipantCallWithResponse() { assertNotNull(transferCallResultResponse.getValue()); } - @Test - public void transferToParticipantCallWithResponsePhoneNumberIdentifierXMSHeader() { - CallConnection callConnection - = getCallAutomationClient(new ArrayList<>(Collections.singletonList(new SimpleEntry<>( - serializeObject(new TransferCallResponseInternal().setOperationContext(CALL_OPERATION_CONTEXT)), 202)))) - .getCallConnection(CALL_CONNECTION_ID); - TransferCallToParticipantOptions transferCallToParticipantOptions - = new TransferCallToParticipantOptions(new PhoneNumberIdentifier(CALL_PSTN_TARGET_ID)) - .setOperationContext(CALL_OPERATION_CONTEXT); - transferCallToParticipantOptions.getCustomCallingContext() - .addSipX("Test-Sip-Header", "Test-Sip-Value", SipHeaderPrefix.XMSCustom); - Response transferCallResultResponse - = callConnection.transferCallToParticipantWithResponse(transferCallToParticipantOptions, Context.NONE); - - assertNotNull(transferCallResultResponse); - assertEquals(202, transferCallResultResponse.getStatusCode()); - assertNotNull(transferCallResultResponse.getValue()); - } - - @Test - public void transferToParticipantCallWithResponsePhoneNumberIdentifierXHeader() { - CallConnection callConnection - = getCallAutomationClient(new ArrayList<>(Collections.singletonList(new SimpleEntry<>( - serializeObject(new TransferCallResponseInternal().setOperationContext(CALL_OPERATION_CONTEXT)), 202)))) - .getCallConnection(CALL_CONNECTION_ID); - TransferCallToParticipantOptions transferCallToParticipantOptions - = new TransferCallToParticipantOptions(new PhoneNumberIdentifier(CALL_PSTN_TARGET_ID)) - .setOperationContext(CALL_OPERATION_CONTEXT); - transferCallToParticipantOptions.getCustomCallingContext() - .addSipX("Test-Sip-Header", "Test-Sip-Value", SipHeaderPrefix.X); - Response transferCallResultResponse - = callConnection.transferCallToParticipantWithResponse(transferCallToParticipantOptions, Context.NONE); - - assertNotNull(transferCallResultResponse); - assertEquals(202, transferCallResultResponse.getStatusCode()); - assertNotNull(transferCallResultResponse.getValue()); - } - @Test public void addParticipants() { CallConnection callConnection = getCallAutomationClient( From a7a071dfe3174b582f6aa9e04e228f2fed7c183b Mon Sep 17 00:00:00 2001 From: v-pivamshi <155710746+v-pivamshi@users.noreply.github.com> Date: Wed, 21 May 2025 02:48:38 +0530 Subject: [PATCH 03/31] Made GA5 changes and recorded the live tests. (#45409) --- .../assets.json | 2 +- .../callautomation/CallMedia.java | 24 ++--- .../callautomation/CallMediaAsync.java | 36 +++---- .../AudioDataContructorProxy.java | 5 +- .../converters/AudioMetadataConverter.java | 20 +--- .../models/AnswerCallOptions.java | 2 - .../{Channels.java => AudioChannelType.java} | 24 +++-- .../callautomation/models/AudioData.java | 22 ++--- .../callautomation/models/AudioMetadata.java | 25 +---- .../callautomation/models/CallInvite.java | 5 +- .../models/CreateCallOptions.java | 1 - .../models/CreateGroupCallOptions.java | 6 +- .../models/OutStreamingData.java | 7 +- .../callautomation/models/SpeechResult.java | 5 +- .../models/TranscriptionData.java | 4 +- .../models/TranscriptionSubscription.java | 20 ++-- .../TransferCallToParticipantOptions.java | 1 - .../models/UpdateTranscriptionOptions.java | 94 +++++++++++++++++++ .../models/events/MediaStreamingFailed.java | 12 +-- .../models/events/MediaStreamingStarted.java | 12 +-- .../models/events/MediaStreamingStopped.java | 12 +-- ...e.java => MediaStreamingUpdateResult.java} | 18 ++-- .../models/events/TranscriptionFailed.java | 14 +-- .../models/events/TranscriptionResumed.java | 14 +-- .../models/events/TranscriptionStarted.java | 14 +-- .../models/events/TranscriptionStopped.java | 14 +-- ...te.java => TranscriptionUpdateResult.java} | 16 ++-- .../models/events/TranscriptionUpdated.java | 14 +-- .../CallAutomationClientUnitTests.java | 3 - .../CallMediaAsyncAutomatedLiveTests.java | 2 - .../callautomation/CallMediaUnitTests.java | 17 +++- .../CallRecordingAutomatedLiveTests.java | 1 - .../createACSCallAndUnmixedAudioTest.json | 2 +- ...createACSCallUnmixedAudioAffinityTest.json | 2 +- ...articipantFinallyCancelAddParticipant.json | 2 +- ...FinallyRemoveParticipantAutomatedTest.json | 2 +- ...PCallAndAnswerThenHangupAutomatedTest.json | 2 +- .../createVOIPCallAndConnectCallTest.json | 2 +- .../createVOIPCallAndMediaStreamingTest.json | 2 +- .../createVOIPCallAndRejectAutomatedTest.json | 2 +- .../createVOIPCallAndTranscriptionTest.json | 2 +- .../dtmfActionsInACallAutomatedTest.json | 2 +- .../holdUnholdParticipantInACallTest.json | 2 +- .../playMediaInACallAutomatedTest.json | 2 +- ...leCombinedSourcesWithPlayMediaAllTest.json | 2 +- ...tipleCombinedSourcesWithPlayMediaTest.json | 2 +- ...ltipleFileSourcesWithPlayMediaAllTest.json | 2 +- ...yMultipleFileSourcesWithPlayMediaTest.json | 2 +- ...ltipleTextSourcesWithPlayMediaAllTest.json | 2 +- ...yMultipleTextSourcesWithPlayMediaTest.json | 2 +- 50 files changed, 274 insertions(+), 228 deletions(-) rename sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/{Channels.java => AudioChannelType.java} (57%) create mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UpdateTranscriptionOptions.java rename sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/{MediaStreamingUpdate.java => MediaStreamingUpdateResult.java} (87%) rename sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/{TranscriptionUpdate.java => TranscriptionUpdateResult.java} (85%) diff --git a/sdk/communication/azure-communication-callautomation/assets.json b/sdk/communication/azure-communication-callautomation/assets.json index 824ec12c4106..05d7b349d6af 100644 --- a/sdk/communication/azure-communication-callautomation/assets.json +++ b/sdk/communication/azure-communication-callautomation/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/communication/azure-communication-callautomation", - "Tag": "java/communication/azure-communication-callautomation_9339e7fc0c" + "Tag": "java/communication/azure-communication-callautomation_6dc9a150d6" } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java index 77ecdc15e54d..cbcbaa873cae 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java @@ -3,12 +3,14 @@ package com.azure.communication.callautomation; +import java.util.List; + import com.azure.communication.callautomation.models.CallMediaRecognizeOptions; import com.azure.communication.callautomation.models.ContinuousDtmfRecognitionOptions; import com.azure.communication.callautomation.models.DtmfTone; import com.azure.communication.callautomation.models.HoldOptions; -import com.azure.communication.callautomation.models.UnholdOptions; import com.azure.communication.callautomation.models.PlayOptions; +import com.azure.communication.callautomation.models.PlaySource; import com.azure.communication.callautomation.models.PlayToAllOptions; import com.azure.communication.callautomation.models.SendDtmfTonesOptions; import com.azure.communication.callautomation.models.SendDtmfTonesResult; @@ -16,15 +18,14 @@ import com.azure.communication.callautomation.models.StartTranscriptionOptions; import com.azure.communication.callautomation.models.StopMediaStreamingOptions; import com.azure.communication.callautomation.models.StopTranscriptionOptions; -import com.azure.communication.callautomation.models.PlaySource; +import com.azure.communication.callautomation.models.UnholdOptions; +import com.azure.communication.callautomation.models.UpdateTranscriptionOptions; import com.azure.communication.common.CommunicationIdentifier; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.HttpResponseException; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -import com.azure.core.exception.HttpResponseException; - -import java.util.List; /** * CallContent. @@ -331,20 +332,13 @@ public void updateTranscription(String locale, String speechRecognitionModelEndp /** * Updates transcription language in the call. - * - * @param locale Defines new locale for transcription. - * @param speechRecognitionModelEndpointId Defines custom model endpoint. + *@param options Options for the Update Transcription operation. * @param context Context - * @param operationContext operational context. * @return Response for successful update transcription request. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTranscriptionWithResponse(String locale, String speechRecognitionModelEndpointId, - String operationContext, Context context) { - return callMediaAsync - .updateTranscriptionWithResponseInternal(locale, speechRecognitionModelEndpointId, operationContext, - context) - .block(); + public Response updateTranscriptionWithResponse(UpdateTranscriptionOptions options, Context context) { + return callMediaAsync.updateTranscriptionWithResponseInternal(options, context).block(); } /** diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java index e1ca1502f955..371c20a25cb9 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java @@ -57,6 +57,7 @@ import com.azure.communication.callautomation.models.StopTranscriptionOptions; import com.azure.communication.callautomation.models.TextSource; import com.azure.communication.callautomation.models.UnholdOptions; +import com.azure.communication.callautomation.models.UpdateTranscriptionOptions; import com.azure.communication.common.CommunicationIdentifier; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; @@ -887,7 +888,7 @@ Mono> stopTranscriptionWithResponseInternal(StopTranscriptionOpti */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono updateTranscription(String locale) { - return updateTranscriptionWithResponse(locale, null, null).then(); + return updateTranscriptionWithResponse(new UpdateTranscriptionOptions().setLocale(locale)).then(); } /** @@ -899,42 +900,27 @@ public Mono updateTranscription(String locale) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono updateTranscription(String locale, String speechRecognitionModelEndpointId) { - return updateTranscriptionWithResponse(locale, speechRecognitionModelEndpointId, null).then(); + return updateTranscriptionWithResponse(new UpdateTranscriptionOptions().setLocale(locale) + .setSpeechRecognitionModelEndpointId(speechRecognitionModelEndpointId)).then(); } /** * Updates transcription language - * @param speechRecognitionModelEndpointId Defines custom model endpoint. - * @param locale Defines new locale for transcription. - * @param operationContext operational context. + * @param options Options for the Update Transcription operation. * @return Response for successful operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateTranscriptionWithResponse(String locale, String speechRecognitionModelEndpointId, - String operationContext) { - return withContext(context -> updateTranscriptionWithResponseInternal(locale, speechRecognitionModelEndpointId, - operationContext, context)); + public Mono> updateTranscriptionWithResponse(UpdateTranscriptionOptions options) { + return withContext(context -> updateTranscriptionWithResponseInternal(options, context)); } - Mono> updateTranscriptionWithResponseInternal(String locale, Context context) { + Mono> updateTranscriptionWithResponseInternal(UpdateTranscriptionOptions options, Context context) { try { context = context == null ? Context.NONE : context; UpdateTranscriptionRequestInternal request = new UpdateTranscriptionRequestInternal(); - request.setLocale(locale); - return contentsInternal.updateTranscriptionWithResponseAsync(callConnectionId, request, context); - } catch (RuntimeException ex) { - return monoError(logger, ex); - } - } - - Mono> updateTranscriptionWithResponseInternal(String locale, String speechRecognitionModelEndpointId, - String operationContext, Context context) { - try { - context = context == null ? Context.NONE : context; - UpdateTranscriptionRequestInternal request = new UpdateTranscriptionRequestInternal(); - request.setLocale(locale); - request.setSpeechModelEndpointId(speechRecognitionModelEndpointId); - request.setOperationContext(operationContext); + request.setLocale(options.getLocale()); + request.setSpeechModelEndpointId(options.getSpeechRecognitionModelEndpointId()); + request.setOperationContext(options.getOperationContext()); return contentsInternal.updateTranscriptionWithResponseAsync(callConnectionId, request, context); } catch (RuntimeException ex) { return monoError(logger, ex); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioDataContructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioDataContructorProxy.java index 33d881c1d76f..62ec75f50006 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioDataContructorProxy.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioDataContructorProxy.java @@ -5,6 +5,7 @@ import com.azure.communication.callautomation.implementation.converters.AudioDataConverter; import com.azure.communication.callautomation.models.AudioData; +import com.azure.core.util.BinaryData; /** * Helper class to access private values of {@link AudioData} across package boundaries. @@ -35,7 +36,7 @@ public interface AudioDataContructorProxyAccessor { * @param data The internal response. * @return A new instance of {@link AudioData}. */ - AudioData create(byte[] data); + AudioData create(BinaryData data); } /** @@ -72,7 +73,7 @@ public static AudioData create(AudioDataConverter internalResponse) { * @param data The audio data. * @return A new instance of {@link AudioData}. */ - public static AudioData create(byte[] data) { + public static AudioData create(BinaryData data) { // This looks odd but is necessary, it is possible to engage the access helper before anywhere else in the // application accesses AudioData which triggers the accessor to be configured. So, if the accessor // is null this effectively pokes the class to set up the accessor. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/AudioMetadataConverter.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/AudioMetadataConverter.java index d2660fa47a60..bf8a773ce4a8 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/AudioMetadataConverter.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/AudioMetadataConverter.java @@ -3,11 +3,11 @@ package com.azure.communication.callautomation.implementation.converters; +import java.io.IOException; + import com.azure.json.JsonReader; import com.azure.json.JsonToken; -import java.io.IOException; - /** The Audio * MetadataInternal model. */ public final class AudioMetadataConverter { @@ -32,11 +32,6 @@ public final class AudioMetadataConverter { */ private int channels; - /* - * The length. - */ - private int length; - /** * Get the mediaSubscriptionId property. * @@ -73,15 +68,6 @@ public int getChannels() { return channels; } - /** - * Get the length property. - * - * @return the length value. - */ - public int getLength() { - return length; - } - /** * Reads an instance of AudioMetadataConverter from the JsonReader. *

@@ -107,8 +93,6 @@ public static AudioMetadataConverter fromJson(JsonReader jsonReader) throws IOEx converter.sampleRate = reader.getInt(); } else if ("channels".equals(fieldName)) { converter.channels = reader.getInt(); - } else if ("length".equals(fieldName)) { - converter.length = reader.getInt(); } else { reader.skipChildren(); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallOptions.java index 9a90a2e11b3e..e8ab5c0e92fe 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallOptions.java @@ -3,8 +3,6 @@ package com.azure.communication.callautomation.models; -import java.util.HashMap; - import com.azure.core.annotation.Fluent; /** diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/Channels.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioChannelType.java similarity index 57% rename from sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/Channels.java rename to sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioChannelType.java index d86c42b0b93a..fa50aac4dffe 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/Channels.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioChannelType.java @@ -3,17 +3,25 @@ package com.azure.communication.callautomation.models; -import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; +import com.azure.core.util.ExpandableStringEnum; + /** * Specifies the text format of transcription. */ -public final class Channels extends ExpandableStringEnum { +public final class AudioChannelType extends ExpandableStringEnum { + /** + * Display. + * Audio channel type. + */ + public static final AudioChannelType MONO = fromString("mono"); + /** * Display. + * Unknown Audio channel type. */ - public static final Channels MONO = fromString("mono"); + public static final AudioChannelType UNKNOWN = fromString("unknown"); /** * Creates a new instance of Channels value. @@ -21,7 +29,7 @@ public final class Channels extends ExpandableStringEnum { * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated - public Channels() { + public AudioChannelType() { } /** @@ -30,8 +38,8 @@ public Channels() { * @param name a name to look for. * @return the corresponding Channels. */ - public static Channels fromString(String name) { - return fromString(name, Channels.class); + public static AudioChannelType fromString(String name) { + return fromString(name, AudioChannelType.class); } /** @@ -39,7 +47,7 @@ public static Channels fromString(String name) { * * @return known Channels values. */ - public static Collection values() { - return values(Channels.class); + public static Collection values() { + return values(AudioChannelType.class); } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java index aaf0ef90d9e8..ee2c65c77f77 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java @@ -3,20 +3,20 @@ package com.azure.communication.callautomation.models; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; + import com.azure.communication.callautomation.implementation.accesshelpers.AudioDataContructorProxy; import com.azure.communication.callautomation.implementation.converters.AudioDataConverter; import com.azure.communication.common.CommunicationIdentifier; - -import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; -import java.util.Base64; +import com.azure.core.util.BinaryData; /** The MediaStreamingAudio model. */ public final class AudioData extends StreamingData { /* - * The audio data, encoded as a base64 byte. + * The audio data, encoded as a binary data. */ - private final byte[] data; + private final BinaryData data; /* * The timestamp indicating when the media content was received by the bot, or if the bot is sending media, @@ -42,7 +42,7 @@ public AudioData create(AudioDataConverter internalData) { } @Override - public AudioData create(byte[] data) { + public AudioData create(BinaryData data) { return new AudioData(data); } }); @@ -54,7 +54,7 @@ public AudioData create(byte[] data) { * @param internalData The audiodataconvertor */ AudioData(AudioDataConverter internalData) { - this.data = Base64.getDecoder().decode(internalData.getData()); + this.data = BinaryData.fromString(internalData.getData()); this.timestamp = OffsetDateTime.parse(internalData.getTimestamp(), DateTimeFormatter.ISO_OFFSET_DATE_TIME); if (internalData.getParticipantRawID() != null && !internalData.getParticipantRawID().isEmpty()) { this.participant = CommunicationIdentifier.fromRawId(internalData.getParticipantRawID()); @@ -79,7 +79,7 @@ public AudioData() { * * @param data The audio data. */ - AudioData(byte[] data) { + AudioData(BinaryData data) { this.data = data; this.timestamp = null; this.participant = null; @@ -87,12 +87,12 @@ public AudioData() { } /** - * The audio data, encoded as a base64 byte. + * The audio data, encoded as a binary data. * Get the data property. * * @return the data value. */ - public byte[] getData() { + public BinaryData getData() { return data; } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java index eb7df620054b..95637f0c29e0 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java @@ -30,12 +30,7 @@ public final class AudioMetadata extends StreamingData { /* * Specifies the number of audio channels in the audio configuration. Currently, only "mono" (single channel) is supported. */ - private final Channels channels; - - /* - * The size of the audio data (base64 byte) being sent, based on the sample rate and duration. - */ - private final Integer length; + private final AudioChannelType channels; static { AudioMetadataContructorProxy @@ -57,7 +52,6 @@ public AudioMetadata create(AudioMetadataConverter internalData) { this.encoding = internalData.getEncoding(); this.sampleRate = internalData.getSampleRate(); this.channels = convertToChannelsEnum(internalData.getChannels()); - this.length = internalData.getLength(); } /** @@ -68,7 +62,6 @@ public AudioMetadata() { this.encoding = null; this.sampleRate = null; this.channels = null; - this.length = null; } /** @@ -107,28 +100,18 @@ public int getSampleRate() { * * @return the channels value. */ - public Channels getChannels() { + public AudioChannelType getChannels() { return channels; } - /** - * The size of the audio data (base64 byte) being sent, based on the sample rate and duration. - * Get the length property. - * - * @return the length value. - */ - public int getLength() { - return length; - } - /** * Converting the channels int type to enum * @param channels channels id for the audio * @return Channels enum */ - private Channels convertToChannelsEnum(Integer channels) { + private AudioChannelType convertToChannelsEnum(Integer channels) { if (1 == channels) { - return Channels.MONO; + return AudioChannelType.MONO; } else { throw LOGGER.logExceptionAsError(new IllegalArgumentException("Unsupported Channels ")); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallInvite.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallInvite.java index 64bb59af5655..2569b4468f03 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallInvite.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallInvite.java @@ -4,15 +4,14 @@ package com.azure.communication.callautomation.models; +import java.util.HashMap; + import com.azure.communication.common.CommunicationIdentifier; import com.azure.communication.common.CommunicationUserIdentifier; -import com.azure.communication.common.MicrosoftTeamsAppIdentifier; import com.azure.communication.common.MicrosoftTeamsUserIdentifier; import com.azure.communication.common.PhoneNumberIdentifier; import com.azure.core.annotation.Fluent; -import java.util.HashMap; - /** * Call invite details. */ diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallOptions.java index 27e4f245ed3d..fe0f9e8ea87d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallOptions.java @@ -3,7 +3,6 @@ package com.azure.communication.callautomation.models; -import com.azure.communication.common.MicrosoftTeamsAppIdentifier; import com.azure.core.annotation.Fluent; /** diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateGroupCallOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateGroupCallOptions.java index cae84bf0d483..39109119a4c6 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateGroupCallOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateGroupCallOptions.java @@ -3,14 +3,12 @@ package com.azure.communication.callautomation.models; +import java.util.List; + import com.azure.communication.common.CommunicationIdentifier; -import com.azure.communication.common.MicrosoftTeamsAppIdentifier; import com.azure.communication.common.PhoneNumberIdentifier; import com.azure.core.annotation.Fluent; -import java.util.HashMap; -import java.util.List; - /** * The options for creating a group call. */ diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java index 4bf96e64cf25..950f4f284597 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java @@ -9,6 +9,7 @@ import java.util.Base64; import com.azure.core.annotation.Fluent; +import com.azure.core.util.BinaryData; import com.azure.json.JsonProviders; import com.azure.json.JsonWriter; @@ -64,7 +65,7 @@ AudioData getAudioData() { * @param audioData the audioData to set * @return the OutStreamingData object itself. */ - OutStreamingData setAudioData(byte[] audioData) { + OutStreamingData setAudioData(BinaryData audioData) { this.audioData = new AudioData(audioData); return this; } @@ -86,7 +87,7 @@ OutStreamingData setStopAudio() { * @throws IOException when failed to serilize the data * */ - public static String getStreamingDataForOutbound(byte[] audioData) throws IOException { + public static String getStreamingDataForOutbound(BinaryData audioData) throws IOException { OutStreamingData data = new OutStreamingData(MediaKind.AUDIO_DATA); data.setAudioData(audioData); return serializeOutStreamingData(data); @@ -133,7 +134,7 @@ private JsonWriter toJson(JsonWriter jsonWriter) throws IOException { if (this.audioData != null) { jsonWriter.writeFieldName("audioData"); jsonWriter.writeStartObject(); - jsonWriter.writeRawField("data", Base64.getEncoder().encodeToString(this.audioData.getData())); + jsonWriter.writeStringField("data", Base64.getEncoder().encodeToString(this.audioData.getData().toBytes())); jsonWriter.writeNullField("timestamp"); jsonWriter.writeNullField("participant"); jsonWriter.writeBooleanField("isSilent", this.audioData.isSilent()); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/SpeechResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/SpeechResult.java index dc909569d6cd..900865b471bd 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/SpeechResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/SpeechResult.java @@ -3,14 +3,13 @@ package com.azure.communication.callautomation.models; -import com.azure.core.annotation.Fluent; +import java.io.IOException; + import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import java.io.IOException; - /** The continuous speech recognition result. */ @Immutable public final class SpeechResult extends RecognizeResult { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java index 6ea91ead16b2..cb0d9145e64d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java @@ -6,6 +6,7 @@ import com.azure.communication.callautomation.implementation.accesshelpers.TranscriptionDataContructorProxy; import com.azure.communication.callautomation.implementation.converters.TranscriptionDataConverter; import com.azure.communication.common.CommunicationIdentifier; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import java.util.List; @@ -14,6 +15,7 @@ /** * The TranscriptionData model. */ +@Immutable public final class TranscriptionData extends StreamingData { private static final ClientLogger LOGGER = new ClientLogger(TranscriptionData.class); @@ -76,7 +78,7 @@ public TranscriptionData create(TranscriptionDataConverter internalData) { * * @param internalData transcription internal data */ - TranscriptionData(TranscriptionDataConverter internalData) { + protected TranscriptionData(TranscriptionDataConverter internalData) { this.text = internalData.getText(); this.format = convertToTextFormatEnum(internalData.getFormat()); this.confidence = internalData.getConfidence(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java index f41cdb39cd2b..7c654800d844 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java @@ -34,7 +34,7 @@ public final class TranscriptionSubscription implements JsonSerializable subscribedResultTypes; + private List subscribedResultStates; static { TranscriptionSubscriptionConstructorProxy @@ -52,7 +52,7 @@ public TranscriptionSubscription create(TranscriptionSubscriptionInternal intern public TranscriptionSubscription() { id = null; state = null; - subscribedResultTypes = null; + subscribedResultStates = null; } /** @@ -65,7 +65,7 @@ public TranscriptionSubscription() { this.state = transcriptionSubscriptionInternal.getState() != null ? TranscriptionSubscriptionState.fromString(transcriptionSubscriptionInternal.getState().toString()) : null; - this.subscribedResultTypes = transcriptionSubscriptionInternal.getSubscribedResultTypes() != null + this.subscribedResultStates = transcriptionSubscriptionInternal.getSubscribedResultTypes() != null ? transcriptionSubscriptionInternal.getSubscribedResultTypes() .stream() .map(resultType -> TranscriptionResultState.fromString(resultType.toString())) @@ -92,12 +92,12 @@ public TranscriptionSubscriptionState getState() { } /** - * Get the subscribedResultTypes property: Gets or Sets the subscribed transcription result types. + * Get the subscribedResultStates property: Gets or Sets the subscribed transcription result types. * - * @return the subscribedResultTypes value. + * @return the subscribedResultStates value. */ - public List getSubscribedResultTypes() { - return this.subscribedResultTypes; + public List getSubscribedResultStates() { + return this.subscribedResultStates; } @Override @@ -105,7 +105,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", this.id); jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); - jsonWriter.writeArrayField("subscribedResultTypes", this.subscribedResultTypes, + jsonWriter.writeArrayField("subscribedResultStates", this.subscribedResultStates, (writer, element) -> writer.writeString(element == null ? null : element.toString())); return jsonWriter.writeEndObject(); } @@ -130,10 +130,10 @@ public static TranscriptionSubscription fromJson(JsonReader jsonReader) throws I } else if ("state".equals(fieldName)) { deserializedTranscriptionSubscription.state = TranscriptionSubscriptionState.fromString(reader.getString()); - } else if ("subscribedResultTypes".equals(fieldName)) { + } else if ("subscribedResultStates".equals(fieldName)) { List subscribedResultTypes = reader.readArray(reader1 -> TranscriptionResultState.fromString(reader1.getString())); - deserializedTranscriptionSubscription.subscribedResultTypes = subscribedResultTypes; + deserializedTranscriptionSubscription.subscribedResultStates = subscribedResultTypes; } else { reader.skipChildren(); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallToParticipantOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallToParticipantOptions.java index 776b90b89c6b..26237f3482e6 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallToParticipantOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TransferCallToParticipantOptions.java @@ -7,7 +7,6 @@ import com.azure.communication.common.CommunicationIdentifier; import com.azure.communication.common.CommunicationUserIdentifier; -import com.azure.communication.common.MicrosoftTeamsAppIdentifier; import com.azure.communication.common.MicrosoftTeamsUserIdentifier; import com.azure.communication.common.PhoneNumberIdentifier; import com.azure.core.annotation.Fluent; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UpdateTranscriptionOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UpdateTranscriptionOptions.java new file mode 100644 index 000000000000..06cafc4187d7 --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UpdateTranscriptionOptions.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.communication.callautomation.models; + +import com.azure.core.annotation.Fluent; + +/** + * Options for the Update Transcription operation. + */ +@Fluent +public final class UpdateTranscriptionOptions { + + /** + * Defines Locale for the transcription e,g en-US. + */ + private String locale; + + /** + * The value to identify context of the operation. + */ + private String operationContext; + + /** + * Creates an instance of {@link UpdateTranscriptionOptions}. + */ + public UpdateTranscriptionOptions() { + } + + /** + * Endpoint where the custom model was deployed. + */ + private String speechRecognitionModelEndpointId; + + /** + * Get the locale. + * + * @return locale. + */ + public String getLocale() { + return locale; + } + + /** + * Sets the locale. + * + * @param locale the incoming locale + * @return The UpdateTranscriptionOptions object. + */ + public UpdateTranscriptionOptions setLocale(String locale) { + this.locale = locale; + return this; + } + + /** + * Get the operation context. + * + * @return operation context. + */ + public String getOperationContext() { + return operationContext; + } + + /** + * Get the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed. + * + * @return the speechRecognitionModelEndpointId value. + */ + public String getSpeechRecognitionModelEndpointId() { + return this.speechRecognitionModelEndpointId; + } + + /** + * Sets the operation context. + * + * @param operationContext Operation Context + * @return The UpdateTranscriptionOptions object. + */ + public UpdateTranscriptionOptions setOperationContext(String operationContext) { + this.operationContext = operationContext; + return this; + } + + /** + * Set the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed. + * + * @param speechRecognitionModelEndpointId the speechRecognitionModelEndpointId value to set. + * @return the UpdateTranscriptionOptions object itself. + */ + public UpdateTranscriptionOptions setSpeechRecognitionModelEndpointId(String speechRecognitionModelEndpointId) { + this.speechRecognitionModelEndpointId = speechRecognitionModelEndpointId; + return this; + } +} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingFailed.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingFailed.java index 0e6b6378ebaa..9a2fc089d21e 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingFailed.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingFailed.java @@ -3,13 +3,13 @@ package com.azure.communication.callautomation.models.events; +import java.io.IOException; + import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import java.io.IOException; - /** The MediaStreamingFailed model. */ @Fluent public final class MediaStreamingFailed extends CallAutomationEventBase { @@ -18,7 +18,7 @@ public final class MediaStreamingFailed extends CallAutomationEventBase { * Defines the result for audio streaming update with the current status * and the details about the status */ - private MediaStreamingUpdate mediaStreamingUpdateResult; + private MediaStreamingUpdateResult mediaStreamingUpdateResult; /** * Creates an instance of MediaStreamingFailed class. @@ -31,9 +31,9 @@ public MediaStreamingFailed() { * Get the mediaStreamingUpdateResult property: Defines the result for audio streaming update with the current status and * the details about the status. * - * @return the mediaStreamingUpdate value. + * @return the MediaStreamingUpdateResult value. */ - public MediaStreamingUpdate getMediaStreamingUpdateResult() { + public MediaStreamingUpdateResult getMediaStreamingUpdateResult() { return this.mediaStreamingUpdateResult; } @@ -63,7 +63,7 @@ public static MediaStreamingFailed fromJson(JsonReader jsonReader) throws IOExce String fieldName = reader.getFieldName(); reader.nextToken(); if ("mediaStreamingUpdate".equals(fieldName)) { - event.mediaStreamingUpdateResult = MediaStreamingUpdate.fromJson(reader); + event.mediaStreamingUpdateResult = MediaStreamingUpdateResult.fromJson(reader); } else { if (!event.readField(fieldName, reader)) { reader.skipChildren(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStarted.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStarted.java index 8da41bb754ca..24e4d2d92c81 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStarted.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStarted.java @@ -3,13 +3,13 @@ package com.azure.communication.callautomation.models.events; +import java.io.IOException; + import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import java.io.IOException; - /** * The MediaStreamingStarted model. */ @@ -17,9 +17,9 @@ public final class MediaStreamingStarted extends CallAutomationEventBase { /* - * Defines the result for MediaStreamingUpdate with the current status and the details about the status + * Defines the result for MediaStreamingUpdateResult with the current status and the details about the status */ - private MediaStreamingUpdate mediaStreamingUpdateResult; + private MediaStreamingUpdateResult mediaStreamingUpdateResult; /** * Creates an instance of MediaStreamingStarted class. @@ -34,7 +34,7 @@ public MediaStreamingStarted() { * * @return the mediaStreamingUpdateResult value. */ - public MediaStreamingUpdate getMediaStreamingUpdateResult() { + public MediaStreamingUpdateResult getMediaStreamingUpdateResult() { return this.mediaStreamingUpdateResult; } @@ -64,7 +64,7 @@ public static MediaStreamingStarted fromJson(JsonReader jsonReader) throws IOExc String fieldName = reader.getFieldName(); reader.nextToken(); if ("mediaStreamingUpdate".equals(fieldName)) { - event.mediaStreamingUpdateResult = MediaStreamingUpdate.fromJson(reader); + event.mediaStreamingUpdateResult = MediaStreamingUpdateResult.fromJson(reader); } else { if (!event.readField(fieldName, reader)) { reader.skipChildren(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStopped.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStopped.java index 5aabf848e050..e5724a20982a 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStopped.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStopped.java @@ -3,13 +3,13 @@ package com.azure.communication.callautomation.models.events; +import java.io.IOException; + import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import java.io.IOException; - /** The MediaStreamingStopped model. */ @Fluent public final class MediaStreamingStopped extends CallAutomationEventBase { @@ -18,7 +18,7 @@ public final class MediaStreamingStopped extends CallAutomationEventBase { * Defines the result for audio streaming update with the current status * and the details about the status */ - private MediaStreamingUpdate mediaStreamingUpdateResult; + private MediaStreamingUpdateResult mediaStreamingUpdateResult; /** * Creates an instance of MediaStreamingStopped class. @@ -31,9 +31,9 @@ public MediaStreamingStopped() { * Get the getMediaStreamingUpdateResult property: Defines the result for audio streaming update with the current status and * the details about the status. * - * @return the mediaStreamingUpdate value. + * @return the MediaStreamingUpdateResult value. */ - public MediaStreamingUpdate getMediaStreamingUpdateResult() { + public MediaStreamingUpdateResult getMediaStreamingUpdateResult() { return this.mediaStreamingUpdateResult; } @@ -63,7 +63,7 @@ public static MediaStreamingStopped fromJson(JsonReader jsonReader) throws IOExc String fieldName = reader.getFieldName(); reader.nextToken(); if ("mediaStreamingUpdate".equals(fieldName)) { - event.mediaStreamingUpdateResult = MediaStreamingUpdate.fromJson(reader); + event.mediaStreamingUpdateResult = MediaStreamingUpdateResult.fromJson(reader); } else { if (!event.readField(fieldName, reader)) { reader.skipChildren(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingUpdate.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingUpdateResult.java similarity index 87% rename from sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingUpdate.java rename to sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingUpdateResult.java index 48d664b87205..0ae3e52ab104 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingUpdate.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingUpdateResult.java @@ -3,17 +3,17 @@ package com.azure.communication.callautomation.models.events; +import java.io.IOException; + import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import java.io.IOException; - -/** The MediaStreamingUpdate model. */ +/** The MediaStreamingUpdateResult model. */ @Fluent -public final class MediaStreamingUpdate implements JsonSerializable { +public final class MediaStreamingUpdateResult implements JsonSerializable { /* * The contentType property. */ @@ -30,9 +30,9 @@ public final class MediaStreamingUpdate implements JsonSerializable { - final MediaStreamingUpdate event = new MediaStreamingUpdate(); + final MediaStreamingUpdateResult event = new MediaStreamingUpdateResult(); while (jsonReader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionFailed.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionFailed.java index 2e4ffa38f23a..6f9335b2343c 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionFailed.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionFailed.java @@ -3,13 +3,13 @@ package com.azure.communication.callautomation.models.events; +import java.io.IOException; + import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import java.io.IOException; - /** * The TranscriptionFailed model. */ @@ -17,9 +17,9 @@ public final class TranscriptionFailed extends CallAutomationEventBase { /* - * Defines the result for TranscriptionUpdate with the current status and the details about the status + * Defines the result for TranscriptionUpdateResult with the current status and the details about the status */ - private TranscriptionUpdate transcriptionUpdateResult; + private TranscriptionUpdateResult transcriptionUpdateResult; /** * Creates an instance of TranscriptionFailed class. @@ -29,12 +29,12 @@ public TranscriptionFailed() { } /** - * Get the transcriptionUpdateResult property: Defines the result for TranscriptionUpdate with the current status + * Get the transcriptionUpdateResult property: Defines the result for TranscriptionUpdateResult with the current status * and the details about the status. * * @return the transcriptionUpdateResult value. */ - public TranscriptionUpdate getTranscriptionUpdateResult() { + public TranscriptionUpdateResult getTranscriptionUpdateResult() { return this.transcriptionUpdateResult; } @@ -64,7 +64,7 @@ public static TranscriptionFailed fromJson(JsonReader jsonReader) throws IOExcep String fieldName = reader.getFieldName(); reader.nextToken(); if ("transcriptionUpdate".equals(fieldName)) { - event.transcriptionUpdateResult = TranscriptionUpdate.fromJson(reader); + event.transcriptionUpdateResult = TranscriptionUpdateResult.fromJson(reader); } else { if (!event.readField(fieldName, reader)) { reader.skipChildren(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionResumed.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionResumed.java index dfe1d58966e0..646166626ece 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionResumed.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionResumed.java @@ -3,13 +3,13 @@ package com.azure.communication.callautomation.models.events; +import java.io.IOException; + import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import java.io.IOException; - /** * The TranscriptionResumed model. */ @@ -17,9 +17,9 @@ public final class TranscriptionResumed extends CallAutomationEventBase { /* - * Defines the result for TranscriptionUpdate with the current status and the details about the status + * Defines the result for TranscriptionUpdateResult with the current status and the details about the status */ - private TranscriptionUpdate transcriptionUpdateResult; + private TranscriptionUpdateResult transcriptionUpdateResult; /** * Creates an instance of TranscriptionResumed class. @@ -29,12 +29,12 @@ public TranscriptionResumed() { } /** - * Get the transcriptionUpdateResult property: Defines the result for TranscriptionUpdate with the current status + * Get the transcriptionUpdateResult property: Defines the result for TranscriptionUpdateResult with the current status * and the details about the status. * * @return the transcriptionUpdateResult value. */ - public TranscriptionUpdate getTranscriptionUpdateResult() { + public TranscriptionUpdateResult getTranscriptionUpdateResult() { return this.transcriptionUpdateResult; } @@ -64,7 +64,7 @@ public static TranscriptionResumed fromJson(JsonReader jsonReader) throws IOExce String fieldName = reader.getFieldName(); reader.nextToken(); if ("transcriptionUpdate".equals(fieldName)) { - event.transcriptionUpdateResult = TranscriptionUpdate.fromJson(reader); + event.transcriptionUpdateResult = TranscriptionUpdateResult.fromJson(reader); } else { if (!event.readField(fieldName, reader)) { reader.skipChildren(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionStarted.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionStarted.java index 4c147b284dd9..de80f2b19807 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionStarted.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionStarted.java @@ -3,13 +3,13 @@ package com.azure.communication.callautomation.models.events; +import java.io.IOException; + import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import java.io.IOException; - /** * The TranscriptionStarted model. */ @@ -17,9 +17,9 @@ public final class TranscriptionStarted extends CallAutomationEventBase { /* - * Defines the result for TranscriptionUpdate with the current status and the details about the status + * Defines the result for TranscriptionUpdateResult with the current status and the details about the status */ - private TranscriptionUpdate transcriptionUpdateResult; + private TranscriptionUpdateResult transcriptionUpdateResult; /** * Creates an instance of TranscriptionStarted class. @@ -29,12 +29,12 @@ public TranscriptionStarted() { } /** - * Get the transcriptionUpdateResult property: Defines the result for TranscriptionUpdate with the current status + * Get the transcriptionUpdateResult property: Defines the result for TranscriptionUpdateResult with the current status * and the details about the status. * * @return the transcriptionUpdateResult value. */ - public TranscriptionUpdate getTranscriptionUpdateResult() { + public TranscriptionUpdateResult getTranscriptionUpdateResult() { return this.transcriptionUpdateResult; } @@ -64,7 +64,7 @@ public static TranscriptionStarted fromJson(JsonReader jsonReader) throws IOExce String fieldName = reader.getFieldName(); reader.nextToken(); if ("transcriptionUpdate".equals(fieldName)) { - event.transcriptionUpdateResult = TranscriptionUpdate.fromJson(reader); + event.transcriptionUpdateResult = TranscriptionUpdateResult.fromJson(reader); } else { if (!event.readField(fieldName, reader)) { reader.skipChildren(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionStopped.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionStopped.java index 51d915f9653c..8a721f4072a9 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionStopped.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionStopped.java @@ -3,13 +3,13 @@ package com.azure.communication.callautomation.models.events; +import java.io.IOException; + import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import java.io.IOException; - /** * The TranscriptionStopped model. */ @@ -17,9 +17,9 @@ public final class TranscriptionStopped extends CallAutomationEventBase { /* - * Defines the result for TranscriptionUpdate with the current status and the details about the status + * Defines the result for TranscriptionUpdateResult with the current status and the details about the status */ - private TranscriptionUpdate transcriptionUpdateResult; + private TranscriptionUpdateResult transcriptionUpdateResult; /** * Creates an instance of TranscriptionStopped class. @@ -29,12 +29,12 @@ public TranscriptionStopped() { } /** - * Get the transcriptionUpdateResult property: Defines the result for TranscriptionUpdate with the current status + * Get the transcriptionUpdateResult property: Defines the result for TranscriptionUpdateResult with the current status * and the details about the status. * * @return the transcriptionUpdateResult value. */ - public TranscriptionUpdate getTranscriptionUpdateResult() { + public TranscriptionUpdateResult getTranscriptionUpdateResult() { return this.transcriptionUpdateResult; } @@ -64,7 +64,7 @@ public static TranscriptionStopped fromJson(JsonReader jsonReader) throws IOExce String fieldName = reader.getFieldName(); reader.nextToken(); if ("transcriptionUpdate".equals(fieldName)) { - event.transcriptionUpdateResult = TranscriptionUpdate.fromJson(reader); + event.transcriptionUpdateResult = TranscriptionUpdateResult.fromJson(reader); } else { if (!event.readField(fieldName, reader)) { reader.skipChildren(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionUpdate.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionUpdateResult.java similarity index 85% rename from sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionUpdate.java rename to sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionUpdateResult.java index da7eca4a1a76..71bdc06596ac 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionUpdate.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionUpdateResult.java @@ -3,19 +3,19 @@ package com.azure.communication.callautomation.models.events; +import java.io.IOException; + import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import java.io.IOException; - /** - * The TranscriptionUpdate model. + * The TranscriptionUpdateResult model. */ @Fluent -public final class TranscriptionUpdate implements JsonSerializable { +public final class TranscriptionUpdateResult implements JsonSerializable { /* * The transcriptionStatus property. */ @@ -27,9 +27,9 @@ public final class TranscriptionUpdate implements JsonSerializable { - final TranscriptionUpdate event = new TranscriptionUpdate(); + final TranscriptionUpdateResult event = new TranscriptionUpdateResult(); while (jsonReader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionUpdated.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionUpdated.java index 030ce0b46dff..65daf7369ec8 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionUpdated.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/TranscriptionUpdated.java @@ -3,13 +3,13 @@ package com.azure.communication.callautomation.models.events; +import java.io.IOException; + import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import java.io.IOException; - /** * The TranscriptionUpdated model. */ @@ -17,9 +17,9 @@ public final class TranscriptionUpdated extends CallAutomationEventBase { /* - * Defines the result for TranscriptionUpdate with the current status and the details about the status + * Defines the result for TranscriptionUpdateResult with the current status and the details about the status */ - private TranscriptionUpdate transcriptionUpdateResult; + private TranscriptionUpdateResult transcriptionUpdateResult; /** * Creates an instance of TranscriptionUpdated class. @@ -29,12 +29,12 @@ public TranscriptionUpdated() { } /** - * Get the transcriptionUpdateResult property: Defines the result for TranscriptionUpdate with the current status + * Get the transcriptionUpdateResult property: Defines the result for TranscriptionUpdateResult with the current status * and the details about the status. * * @return the transcriptionUpdateResult value. */ - public TranscriptionUpdate getTranscriptionUpdateResult() { + public TranscriptionUpdateResult getTranscriptionUpdateResult() { return this.transcriptionUpdateResult; } @@ -64,7 +64,7 @@ public static TranscriptionUpdated fromJson(JsonReader jsonReader) throws IOExce String fieldName = reader.getFieldName(); reader.nextToken(); if ("transcriptionUpdate".equals(fieldName)) { - event.transcriptionUpdateResult = TranscriptionUpdate.fromJson(reader); + event.transcriptionUpdateResult = TranscriptionUpdateResult.fromJson(reader); } else { if (!event.readField(fieldName, reader)) { reader.skipChildren(); diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationClientUnitTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationClientUnitTests.java index 4cb970a910d1..138902f8c85b 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationClientUnitTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationClientUnitTests.java @@ -7,15 +7,12 @@ import com.azure.communication.callautomation.models.AnswerCallResult; import com.azure.communication.callautomation.models.CallInvite; import com.azure.communication.callautomation.models.CallRejectReason; -import com.azure.communication.callautomation.models.CreateCallOptions; import com.azure.communication.callautomation.models.CreateGroupCallOptions; import com.azure.communication.callautomation.models.CreateCallResult; import com.azure.communication.callautomation.models.RedirectCallOptions; import com.azure.communication.callautomation.models.RejectCallOptions; import com.azure.communication.common.CommunicationIdentifier; import com.azure.communication.common.CommunicationUserIdentifier; -import com.azure.communication.common.MicrosoftTeamsAppIdentifier; -import com.azure.communication.common.PhoneNumberIdentifier; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import org.junit.jupiter.api.Test; diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java index 6b8bb85c7a80..7476ad4af5c5 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java @@ -14,7 +14,6 @@ import com.azure.communication.callautomation.models.events.CallConnected; import com.azure.communication.callautomation.models.events.ContinuousDtmfRecognitionStopped; import com.azure.communication.callautomation.models.events.PlayCompleted; -import com.azure.communication.callautomation.models.events.PlayStarted; import com.azure.communication.callautomation.models.events.SendDtmfTonesCompleted; import com.azure.communication.common.CommunicationIdentifier; import com.azure.communication.common.CommunicationUserIdentifier; @@ -28,7 +27,6 @@ import com.azure.communication.callautomation.models.MediaStreamingContent; import com.azure.communication.callautomation.models.MediaStreamingOptions; import com.azure.communication.callautomation.models.MediaStreamingTransport; -import com.azure.communication.callautomation.models.PlayOptions; import com.azure.communication.callautomation.models.TranscriptionOptions; import com.azure.communication.callautomation.models.StartMediaStreamingOptions; import com.azure.communication.callautomation.models.StopMediaStreamingOptions; diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaUnitTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaUnitTests.java index c9083ddfa884..2068c3f0f444 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaUnitTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaUnitTests.java @@ -237,21 +237,28 @@ public void stopTranscriptionWithResponseTest() { @Test public void updateTranscriptionSpeechModelWithResponseTest() { - Response response - = callMedia.updateTranscriptionWithResponse("en-US", "customEndpoint", null, Context.NONE); + UpdateTranscriptionOptions options = new UpdateTranscriptionOptions(); + options.setLocale("en-US"); + options.setSpeechRecognitionModelEndpointId("customEndpoint"); + Response response = callMedia.updateTranscriptionWithResponse(options, Context.NONE); assertEquals(response.getStatusCode(), 202); } @Test public void updateTranscriptionOperationContextWithResponseTest() { - Response response = callMedia.updateTranscriptionWithResponse("en-US", "customEndpoint", - "unittestoperationcontext", Context.NONE); + UpdateTranscriptionOptions options = new UpdateTranscriptionOptions(); + options.setLocale("en-US"); + options.setSpeechRecognitionModelEndpointId("customEndpoint"); + options.setOperationContext("unittestoperationcontext"); + Response response = callMedia.updateTranscriptionWithResponse(options, Context.NONE); assertEquals(response.getStatusCode(), 202); } @Test public void updateTranscriptionWithResponse() { - Response response = callMedia.updateTranscriptionWithResponse("en-US", null, null, Context.NONE); + UpdateTranscriptionOptions options = new UpdateTranscriptionOptions(); + options.setLocale("en-US"); + Response response = callMedia.updateTranscriptionWithResponse(options, Context.NONE); assertEquals(response.getStatusCode(), 202); } diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAutomatedLiveTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAutomatedLiveTests.java index 79864ecb45f9..7dd21d7fb41b 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAutomatedLiveTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAutomatedLiveTests.java @@ -21,7 +21,6 @@ import com.azure.communication.common.CommunicationUserIdentifier; import com.azure.communication.identity.CommunicationIdentityClient; import com.azure.core.http.HttpClient; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallAndUnmixedAudioTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallAndUnmixedAudioTest.json index c619abbdc48e..0bb5b5dca4ff 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallAndUnmixedAudioTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallAndUnmixedAudioTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"73078c8e-47d1-4614-9a2e-a0fb0314a2aa\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-f7c7-45e9-b142-a3a205f4a8dd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-f7c7-45e9-b142-a3a205f4a8dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"73078c8e-47d1-4614-9a2e-a0fb0314a2aa\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:11:41.6073482\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-f7c7-45e9-b142-a3a205f4a8dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-f7c7-45e9-b142-a3a205f4a8dd\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-f7c7-45e9-b142-a3a205f4a8dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"73078c8e-47d1-4614-9a2e-a0fb0314a2aa\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:11:41.6546675\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-f7c7-45e9-b142-a3a205f4a8dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-f7c7-45e9-b142-a3a205f4a8dd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-f7c7-45e9-b142-a3a205f4a8dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"73078c8e-47d1-4614-9a2e-a0fb0314a2aa\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:11:48.0723857\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-f7c7-45e9-b142-a3a205f4a8dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-f7c7-45e9-b142-a3a205f4a8dd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-f7c7-45e9-b142-a3a205f4a8dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"73078c8e-47d1-4614-9a2e-a0fb0314a2aa\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:11:48.4456209\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-f7c7-45e9-b142-a3a205f4a8dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-f7c7-45e9-b142-a3a205f4a8dd\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"00002680-f7c7-45e9-b142-a3a205f4a8dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"73078c8e-47d1-4614-9a2e-a0fb0314a2aa\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-03-05T05:11:48.496922\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-f7c7-45e9-b142-a3a205f4a8dd\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"d4a4de0e-22bc-447b-956a-bd07392b8d50\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-86ce-4b60-8520-dcf7a51fb423\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d4a4de0e-22bc-447b-956a-bd07392b8d50\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:23.997544\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-86ce-4b60-8520-dcf7a51fb423\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d4a4de0e-22bc-447b-956a-bd07392b8d50\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:08:24.1018019\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-86ce-4b60-8520-dcf7a51fb423\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d4a4de0e-22bc-447b-956a-bd07392b8d50\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:28.763855\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-86ce-4b60-8520-dcf7a51fb423\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d4a4de0e-22bc-447b-956a-bd07392b8d50\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:29.156359\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"02002680-86ce-4b60-8520-dcf7a51fb423\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d4a4de0e-22bc-447b-956a-bd07392b8d50\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:08:29.2196006\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallUnmixedAudioAffinityTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallUnmixedAudioAffinityTest.json index 7ed0bb528f8a..17482e2340cc 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallUnmixedAudioAffinityTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallUnmixedAudioAffinityTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"7d5756d0-129e-4f56-83ef-52bb83957f86\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-367e-4e96-a974-0f74dc9b9665\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-367e-4e96-a974-0f74dc9b9665\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7d5756d0-129e-4f56-83ef-52bb83957f86\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:11:57.8684639\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-367e-4e96-a974-0f74dc9b9665\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-367e-4e96-a974-0f74dc9b9665\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-367e-4e96-a974-0f74dc9b9665\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7d5756d0-129e-4f56-83ef-52bb83957f86\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:11:57.8684639\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-367e-4e96-a974-0f74dc9b9665\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-367e-4e96-a974-0f74dc9b9665\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-367e-4e96-a974-0f74dc9b9665\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7d5756d0-129e-4f56-83ef-52bb83957f86\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:12:01.858633\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-367e-4e96-a974-0f74dc9b9665\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-367e-4e96-a974-0f74dc9b9665\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-367e-4e96-a974-0f74dc9b9665\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7d5756d0-129e-4f56-83ef-52bb83957f86\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:12:02.3131944\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-367e-4e96-a974-0f74dc9b9665\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-367e-4e96-a974-0f74dc9b9665\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"00002680-367e-4e96-a974-0f74dc9b9665\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7d5756d0-129e-4f56-83ef-52bb83957f86\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-03-05T05:12:02.5478732\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-367e-4e96-a974-0f74dc9b9665\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"644549a3-a490-406b-af1b-d37e97015635\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"644549a3-a490-406b-af1b-d37e97015635\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:39.5825132\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"644549a3-a490-406b-af1b-d37e97015635\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:08:39.6916879\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"644549a3-a490-406b-af1b-d37e97015635\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:44.31165\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"644549a3-a490-406b-af1b-d37e97015635\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:44.6575964\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"644549a3-a490-406b-af1b-d37e97015635\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:08:44.6883391\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyCancelAddParticipant.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyCancelAddParticipant.json index c9d2aeac3417..d084f5efff01 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyCancelAddParticipant.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyCancelAddParticipant.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"7ebb1af4-7128-484c-a195-84b7dddcf6a5\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9fe2-4103-a268-f2808d080e57\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-9fe2-4103-a268-f2808d080e57\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7ebb1af4-7128-484c-a195-84b7dddcf6a5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:07:06.6992364\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9fe2-4103-a268-f2808d080e57\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-8f91-42e5-bcbf-8ce44bb54de9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-8f91-42e5-bcbf-8ce44bb54de9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7ebb1af4-7128-484c-a195-84b7dddcf6a5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:07:06.7016009\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-8f91-42e5-bcbf-8ce44bb54de9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9fe2-4103-a268-f2808d080e57\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"09002680-9fe2-4103-a268-f2808d080e57\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7ebb1af4-7128-484c-a195-84b7dddcf6a5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:07:06.7022265\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9fe2-4103-a268-f2808d080e57\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-8f91-42e5-bcbf-8ce44bb54de9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"09002680-8f91-42e5-bcbf-8ce44bb54de9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7ebb1af4-7128-484c-a195-84b7dddcf6a5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:07:06.7716479\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-8f91-42e5-bcbf-8ce44bb54de9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9fe2-4103-a268-f2808d080e57\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-9fe2-4103-a268-f2808d080e57\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7ebb1af4-7128-484c-a195-84b7dddcf6a5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:07:09.2896178\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9fe2-4103-a268-f2808d080e57\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-8f91-42e5-bcbf-8ce44bb54de9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-8f91-42e5-bcbf-8ce44bb54de9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7ebb1af4-7128-484c-a195-84b7dddcf6a5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:07:09.2896178\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-8f91-42e5-bcbf-8ce44bb54de9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-8f91-42e5-bcbf-8ce44bb54de9\",\"type\":\"Microsoft.Communication.CancelAddParticipantSucceeded\",\"data\":{\"invitationId\":\"8067ff1e-2472-4db1-bff8-67a63e6c7ab2\",\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":5300,\"message\":\"addParticipants failed for participant 8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-0494-d3bb-85f4-343a0d0061cb. Underlying reason: The conversation has ended. DiagCode: 0#5300.@\"},\"callConnectionId\":\"09002680-8f91-42e5-bcbf-8ce44bb54de9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7ebb1af4-7128-484c-a195-84b7dddcf6a5\",\"publicEventType\":\"Microsoft.Communication.CancelAddParticipantSucceeded\"},\"time\":\"2025-03-05T05:07:11.4374908\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-8f91-42e5-bcbf-8ce44bb54de9\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-041f-4f89-8c8b-466dd6f1b4a7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-041f-4f89-8c8b-466dd6f1b4a7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:16.7627743\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-041f-4f89-8c8b-466dd6f1b4a7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-4070-4025-b322-1290aa547bb9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:16.7745349\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-041f-4f89-8c8b-466dd6f1b4a7\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-041f-4f89-8c8b-466dd6f1b4a7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:04:16.8577741\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-041f-4f89-8c8b-466dd6f1b4a7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-4070-4025-b322-1290aa547bb9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:04:16.8673266\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-4070-4025-b322-1290aa547bb9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:19.4427645\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-041f-4f89-8c8b-466dd6f1b4a7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-041f-4f89-8c8b-466dd6f1b4a7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:19.4302397\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-041f-4f89-8c8b-466dd6f1b4a7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\",\"type\":\"Microsoft.Communication.CancelAddParticipantSucceeded\",\"data\":{\"invitationId\":\"cb5a01a3-a7a2-4c05-b9b4-60097b3bc2a9\",\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":5300,\"message\":\"addParticipants failed for participant 8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-8d08-2df1-f883-08482200af55. Underlying reason: The conversation has ended. DiagCode: 0#5300.@\"},\"callConnectionId\":\"02002680-4070-4025-b322-1290aa547bb9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.CancelAddParticipantSucceeded\"},\"time\":\"2025-05-20T10:04:21.9352855\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyRemoveParticipantAutomatedTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyRemoveParticipantAutomatedTest.json index ba726c547c31..6d479769ef78 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyRemoveParticipantAutomatedTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyRemoveParticipantAutomatedTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-cb8a-40e5-b225-f5026d191283\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:46.3538501\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-9e6d-44c4-ad76-e627a9bdf093\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:46.3538501\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"09002680-cb8a-40e5-b225-f5026d191283\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:06:46.3850956\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"09002680-9e6d-44c4-ad76-e627a9bdf093\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:06:46.4937384\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-cb8a-40e5-b225-f5026d191283\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:49.3731169\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-9e6d-44c4-ad76-e627a9bdf093\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:49.3731169\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\"}]","{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:06:51.6893582\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\",\"type\":\"Microsoft.Communication.AddParticipantSucceeded\",\"data\":{\"participant\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"09002680-9e6d-44c4-ad76-e627a9bdf093\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.AddParticipantSucceeded\"},\"time\":\"2025-03-05T05:06:51.990545\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:52.0374514\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-9e6d-44c4-ad76-e627a9bdf093\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:51.990545\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:52.425134\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-cb8a-40e5-b225-f5026d191283\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:51.990545\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":7,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:52.8042529\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-cb8a-40e5-b225-f5026d191283\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:52.3675687\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:53.166662\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":9,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:53.5439266\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-9e6d-44c4-ad76-e627a9bdf093\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:52.3517692\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":10,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:53.9278232\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-cb8a-40e5-b225-f5026d191283\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:52.7371451\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-9e6d-44c4-ad76-e627a9bdf093\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:52.7409013\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":11,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:54.2806653\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-cb8a-40e5-b225-f5026d191283\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:53.1194526\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":12,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:54.6576011\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-9e6d-44c4-ad76-e627a9bdf093\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:53.1345043\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":13,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:55.0292462\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-cb8a-40e5-b225-f5026d191283\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:53.5124042\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":14,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:55.3806345\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-9e6d-44c4-ad76-e627a9bdf093\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:53.5124042\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":15,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:55.7417547\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\",\"type\":\"Microsoft.Communication.RemoveParticipantSucceeded\",\"data\":{\"participant\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"09002680-9e6d-44c4-ad76-e627a9bdf093\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.RemoveParticipantSucceeded\"},\"time\":\"2025-03-05T05:06:53.5751461\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":16,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:56.1731107\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":5300,\"message\":\"The conversation has ended. DiagCode: 0#5300.@\"},\"callConnectionId\":\"09002680-cb8a-40e5-b225-f5026d191283\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-03-05T05:06:53.7327175\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-cb8a-40e5-b225-f5026d191283\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":17,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-fa2b-429a-bf56-85418121eea5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:56.6215817\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-fa2b-429a-bf56-85418121eea5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":12,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-9e6d-44c4-ad76-e627a9bdf093\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"54749c24-977a-48ce-baf9-c862bcf657e3\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:53.8942696\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9e6d-44c4-ad76-e627a9bdf093\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:55.0766211\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:55.0766211\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:55.1703179\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:55.2023253\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:59.6119755\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:59.7827164\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:59.8160796\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.AddParticipantSucceeded\",\"data\":{\"participant\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.AddParticipantSucceeded\"},\"time\":\"2025-05-20T10:03:59.7915208\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.1728047\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:59.7889225\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":7,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.5511486\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.1571225\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.9288749\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":7,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.1728047\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":9,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:01.3025324\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.5511486\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":10,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:01.6773838\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":7,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.5668719\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":11,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:02.0463476\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":7,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.9176921\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":12,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:02.4284184\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":7,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.9288749\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:01.2902911\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:01.2765751\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":5300,\"message\":\"The conversation has ended. DiagCode: 0#5300.@\"},\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:04:01.6673183\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.RemoveParticipantSucceeded\",\"data\":{\"participant\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.RemoveParticipantSucceeded\"},\"time\":\"2025-05-20T10:04:01.6673183\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":9,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:01.6844859\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenHangupAutomatedTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenHangupAutomatedTest.json index fd8cb079883c..573bec0ac0df 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenHangupAutomatedTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenHangupAutomatedTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"7358f836-7518-4122-8e1c-a10dae27157d\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-8943-45ff-9f77-0c54434c66fd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-8943-45ff-9f77-0c54434c66fd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7358f836-7518-4122-8e1c-a10dae27157d\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:34.6640995\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-8943-45ff-9f77-0c54434c66fd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-7911-4f79-b1a4-44d873153897\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"09002680-7911-4f79-b1a4-44d873153897\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7358f836-7518-4122-8e1c-a10dae27157d\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:06:34.6640995\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-7911-4f79-b1a4-44d873153897\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-7911-4f79-b1a4-44d873153897\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-7911-4f79-b1a4-44d873153897\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7358f836-7518-4122-8e1c-a10dae27157d\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:34.6640995\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-7911-4f79-b1a4-44d873153897\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-8943-45ff-9f77-0c54434c66fd\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"09002680-8943-45ff-9f77-0c54434c66fd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7358f836-7518-4122-8e1c-a10dae27157d\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:06:34.7115432\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-8943-45ff-9f77-0c54434c66fd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-7911-4f79-b1a4-44d873153897\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"09002680-7911-4f79-b1a4-44d873153897\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7358f836-7518-4122-8e1c-a10dae27157d\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-03-05T05:06:36.7602543\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-7911-4f79-b1a4-44d873153897\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-8943-45ff-9f77-0c54434c66fd\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"09002680-8943-45ff-9f77-0c54434c66fd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7358f836-7518-4122-8e1c-a10dae27157d\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-03-05T05:06:36.9906406\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-8943-45ff-9f77-0c54434c66fd\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6bc6-482c-bffb-8bfb25b9f8ff\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-6bc6-482c-bffb-8bfb25b9f8ff\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:41.6927177\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6bc6-482c-bffb-8bfb25b9f8ff\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-02a9-41d6-84c9-fa900bdba843\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-02a9-41d6-84c9-fa900bdba843\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:41.6927177\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-02a9-41d6-84c9-fa900bdba843\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6bc6-482c-bffb-8bfb25b9f8ff\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-6bc6-482c-bffb-8bfb25b9f8ff\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:41.7771232\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6bc6-482c-bffb-8bfb25b9f8ff\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-02a9-41d6-84c9-fa900bdba843\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-02a9-41d6-84c9-fa900bdba843\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:41.8244268\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-02a9-41d6-84c9-fa900bdba843\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6bc6-482c-bffb-8bfb25b9f8ff\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"02002680-6bc6-482c-bffb-8bfb25b9f8ff\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:03:44.626846\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6bc6-482c-bffb-8bfb25b9f8ff\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-02a9-41d6-84c9-fa900bdba843\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"02002680-02a9-41d6-84c9-fa900bdba843\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:03:44.6427355\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-02a9-41d6-84c9-fa900bdba843\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndConnectCallTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndConnectCallTest.json index 697fd82f3d78..e61640539397 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndConnectCallTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndConnectCallTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"7c6c686b-ba40-421a-8b92-e4e278730789\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-a836-475c-8c1f-58bceffba0a1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-a836-475c-8c1f-58bceffba0a1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7c6c686b-ba40-421a-8b92-e4e278730789\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:03.2180262\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-a836-475c-8c1f-58bceffba0a1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-a836-475c-8c1f-58bceffba0a1\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"09002680-a836-475c-8c1f-58bceffba0a1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7c6c686b-ba40-421a-8b92-e4e278730789\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:06:03.2493338\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-a836-475c-8c1f-58bceffba0a1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-4aad-4475-aef6-174e6efb4ee9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"09002680-4aad-4475-aef6-174e6efb4ee9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7c6c686b-ba40-421a-8b92-e4e278730789\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:06:03.2805992\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-4aad-4475-aef6-174e6efb4ee9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-4aad-4475-aef6-174e6efb4ee9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-4aad-4475-aef6-174e6efb4ee9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7c6c686b-ba40-421a-8b92-e4e278730789\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:03.2805992\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-4aad-4475-aef6-174e6efb4ee9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-777a-432f-bd28-534333d1b7bd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":2,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-777a-432f-bd28-534333d1b7bd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7c6c686b-ba40-421a-8b92-e4e278730789\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:07.3307313\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-777a-432f-bd28-534333d1b7bd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-777a-432f-bd28-534333d1b7bd\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"09002680-777a-432f-bd28-534333d1b7bd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7c6c686b-ba40-421a-8b92-e4e278730789\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:06:07.346421\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-777a-432f-bd28-534333d1b7bd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-777a-432f-bd28-534333d1b7bd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-777a-432f-bd28-534333d1b7bd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7c6c686b-ba40-421a-8b92-e4e278730789\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:06:07.7076641\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-777a-432f-bd28-534333d1b7bd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-777a-432f-bd28-534333d1b7bd\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"09002680-777a-432f-bd28-534333d1b7bd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7c6c686b-ba40-421a-8b92-e4e278730789\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-03-05T05:06:09.2617903\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-777a-432f-bd28-534333d1b7bd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-a836-475c-8c1f-58bceffba0a1\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":5001,\"message\":\"This conversation has ended.. DiagCode: 0#5001.@\"},\"callConnectionId\":\"09002680-a836-475c-8c1f-58bceffba0a1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7c6c686b-ba40-421a-8b92-e4e278730789\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-03-05T05:06:09.2740451\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-a836-475c-8c1f-58bceffba0a1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-4aad-4475-aef6-174e6efb4ee9\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":5001,\"message\":\"This conversation has ended.. DiagCode: 0#5001.@\"},\"callConnectionId\":\"09002680-4aad-4475-aef6-174e6efb4ee9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7c6c686b-ba40-421a-8b92-e4e278730789\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-03-05T05:06:09.4158514\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-4aad-4475-aef6-174e6efb4ee9\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-035d-484a-89af-be94bc479335\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-035d-484a-89af-be94bc479335\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:25.9744848\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-035d-484a-89af-be94bc479335\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c4df-4d04-b232-7c7b601c9b75\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-c4df-4d04-b232-7c7b601c9b75\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:26.0095892\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c4df-4d04-b232-7c7b601c9b75\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-035d-484a-89af-be94bc479335\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-035d-484a-89af-be94bc479335\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:25.8496723\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-035d-484a-89af-be94bc479335\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c4df-4d04-b232-7c7b601c9b75\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-c4df-4d04-b232-7c7b601c9b75\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:25.8496723\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c4df-4d04-b232-7c7b601c9b75\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":2,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:29.9467802\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:29.9624391\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:30.3252383\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:03:31.0188111\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-035d-484a-89af-be94bc479335\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":5001,\"message\":\"This conversation has ended.. DiagCode: 0#5001.@\"},\"callConnectionId\":\"02002680-035d-484a-89af-be94bc479335\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:03:31.0499688\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-035d-484a-89af-be94bc479335\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c4df-4d04-b232-7c7b601c9b75\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":5001,\"message\":\"This conversation has ended.. DiagCode: 0#5001.@\"},\"callConnectionId\":\"02002680-c4df-4d04-b232-7c7b601c9b75\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:03:31.0641605\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c4df-4d04-b232-7c7b601c9b75\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndMediaStreamingTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndMediaStreamingTest.json index 64ad343aa610..a681ced1316e 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndMediaStreamingTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndMediaStreamingTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"a0a4ce36-d74b-4155-8659-3b0e5d2c09b4\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-9f1f-437d-b004-4ea4924fddb5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-9f1f-437d-b004-4ea4924fddb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a0a4ce36-d74b-4155-8659-3b0e5d2c09b4\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:10:53.6079705\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-9f1f-437d-b004-4ea4924fddb5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-fbf3-4b55-ab4c-3caaf7f2a583\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-fbf3-4b55-ab4c-3caaf7f2a583\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a0a4ce36-d74b-4155-8659-3b0e5d2c09b4\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:10:53.6079705\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-fbf3-4b55-ab4c-3caaf7f2a583\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-fbf3-4b55-ab4c-3caaf7f2a583\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-fbf3-4b55-ab4c-3caaf7f2a583\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a0a4ce36-d74b-4155-8659-3b0e5d2c09b4\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:10:53.6079705\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-fbf3-4b55-ab4c-3caaf7f2a583\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-9f1f-437d-b004-4ea4924fddb5\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-9f1f-437d-b004-4ea4924fddb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a0a4ce36-d74b-4155-8659-3b0e5d2c09b4\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:10:53.6870147\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-9f1f-437d-b004-4ea4924fddb5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-9f1f-437d-b004-4ea4924fddb5\",\"type\":\"Microsoft.Communication.MediaStreamingStarted\",\"data\":{\"mediaStreamingUpdate\":{\"contentType\":\"Audio\",\"mediaStreamingStatus\":\"mediaStreamingStarted\",\"mediaStreamingStatusDetails\":\"subscriptionStarted\"},\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-9f1f-437d-b004-4ea4924fddb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a0a4ce36-d74b-4155-8659-3b0e5d2c09b4\",\"publicEventType\":\"Microsoft.Communication.MediaStreamingStarted\"},\"time\":\"2025-03-05T05:10:56.9546699\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-9f1f-437d-b004-4ea4924fddb5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-9f1f-437d-b004-4ea4924fddb5\",\"type\":\"Microsoft.Communication.MediaStreamingStopped\",\"data\":{\"mediaStreamingUpdate\":{\"contentType\":\"Audio\",\"mediaStreamingStatus\":\"mediaStreamingStopped\",\"mediaStreamingStatusDetails\":\"subscriptionStopped\"},\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-9f1f-437d-b004-4ea4924fddb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a0a4ce36-d74b-4155-8659-3b0e5d2c09b4\",\"publicEventType\":\"Microsoft.Communication.MediaStreamingStopped\"},\"time\":\"2025-03-05T05:10:58.1240543\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-9f1f-437d-b004-4ea4924fddb5\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-23e0-4d34-9386-2cea4dbc8c7f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"08002680-23e0-4d34-9386-2cea4dbc8c7f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:11:06.3623237\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-23e0-4d34-9386-2cea4dbc8c7f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"08002680-ef18-4820-8b82-1bb48f622851\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:11:06.3623237\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-23e0-4d34-9386-2cea4dbc8c7f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"08002680-23e0-4d34-9386-2cea4dbc8c7f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:11:06.471634\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-23e0-4d34-9386-2cea4dbc8c7f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"08002680-ef18-4820-8b82-1bb48f622851\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:11:06.503044\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\",\"type\":\"Microsoft.Communication.MediaStreamingStarted\",\"data\":{\"mediaStreamingUpdate\":{\"contentType\":\"Audio\",\"mediaStreamingStatus\":\"mediaStreamingStarted\",\"mediaStreamingStatusDetails\":\"subscriptionStarted\"},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"08002680-ef18-4820-8b82-1bb48f622851\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\",\"publicEventType\":\"Microsoft.Communication.MediaStreamingStarted\"},\"time\":\"2025-05-20T10:11:10.1632668\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\",\"type\":\"Microsoft.Communication.MediaStreamingStopped\",\"data\":{\"mediaStreamingUpdate\":{\"contentType\":\"Audio\",\"mediaStreamingStatus\":\"mediaStreamingStopped\",\"mediaStreamingStatusDetails\":\"subscriptionStopped\"},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"08002680-ef18-4820-8b82-1bb48f622851\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\",\"publicEventType\":\"Microsoft.Communication.MediaStreamingStopped\"},\"time\":\"2025-05-20T10:11:11.3536489\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndRejectAutomatedTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndRejectAutomatedTest.json index beb48d375ded..0c9476b54311 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndRejectAutomatedTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndRejectAutomatedTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"bf80131a-2147-4577-b660-b6908d4f31d7\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-4a25-4c10-b9a4-5341af3c6021\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":603,\"subCode\":0,\"message\":\"Decline. DiagCode: 603#0.@\"},\"callConnectionId\":\"09002680-4a25-4c10-b9a4-5341af3c6021\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bf80131a-2147-4577-b660-b6908d4f31d7\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-03-05T05:05:47.9701737\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-4a25-4c10-b9a4-5341af3c6021\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-4a25-4c10-b9a4-5341af3c6021\",\"type\":\"Microsoft.Communication.CreateCallFailed\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":603,\"subCode\":0,\"message\":\"Decline. DiagCode: 603#0.@\"},\"callConnectionId\":\"09002680-4a25-4c10-b9a4-5341af3c6021\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bf80131a-2147-4577-b660-b6908d4f31d7\",\"publicEventType\":\"Microsoft.Communication.CreateCallFailed\"},\"time\":\"2025-03-05T05:05:47.9701737\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-4a25-4c10-b9a4-5341af3c6021\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"7820b15c-1d71-4110-990e-a24da86c5312\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a5ee-4f80-bdf2-5c33970445fb\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":603,\"subCode\":0,\"message\":\"Decline. DiagCode: 603#0.@\"},\"callConnectionId\":\"02002680-a5ee-4f80-bdf2-5c33970445fb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7820b15c-1d71-4110-990e-a24da86c5312\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:03:14.7800138\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a5ee-4f80-bdf2-5c33970445fb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a5ee-4f80-bdf2-5c33970445fb\",\"type\":\"Microsoft.Communication.CreateCallFailed\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":603,\"subCode\":0,\"message\":\"Decline. DiagCode: 603#0.@\"},\"callConnectionId\":\"02002680-a5ee-4f80-bdf2-5c33970445fb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7820b15c-1d71-4110-990e-a24da86c5312\",\"publicEventType\":\"Microsoft.Communication.CreateCallFailed\"},\"time\":\"2025-05-20T10:03:14.7800138\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a5ee-4f80-bdf2-5c33970445fb\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndTranscriptionTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndTranscriptionTest.json index 8203e86f7498..d7648e28b2cd 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndTranscriptionTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndTranscriptionTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"52a62de0-cc1f-4434-ba2a-ad43bcbfb947\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-2a53-4922-85f3-70195db1d669\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-2a53-4922-85f3-70195db1d669\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"52a62de0-cc1f-4434-ba2a-ad43bcbfb947\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:11:25.7298232\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-2a53-4922-85f3-70195db1d669\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-2a53-4922-85f3-70195db1d669\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-2a53-4922-85f3-70195db1d669\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"52a62de0-cc1f-4434-ba2a-ad43bcbfb947\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:11:25.7773603\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-2a53-4922-85f3-70195db1d669\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-5475-4f84-8842-2222ead9a207\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-5475-4f84-8842-2222ead9a207\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"52a62de0-cc1f-4434-ba2a-ad43bcbfb947\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:11:25.8874441\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-5475-4f84-8842-2222ead9a207\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-5475-4f84-8842-2222ead9a207\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-5475-4f84-8842-2222ead9a207\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"52a62de0-cc1f-4434-ba2a-ad43bcbfb947\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:11:26.2723107\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-5475-4f84-8842-2222ead9a207\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-5475-4f84-8842-2222ead9a207\",\"type\":\"Microsoft.Communication.TranscriptionStarted\",\"data\":{\"transcriptionUpdate\":{\"transcriptionStatus\":\"transcriptionStarted\",\"transcriptionStatusDetails\":\"subscriptionStarted\"},\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-5475-4f84-8842-2222ead9a207\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"52a62de0-cc1f-4434-ba2a-ad43bcbfb947\",\"publicEventType\":\"Microsoft.Communication.TranscriptionStarted\"},\"time\":\"2025-03-05T05:11:29.4717109\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-5475-4f84-8842-2222ead9a207\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-5475-4f84-8842-2222ead9a207\",\"type\":\"Microsoft.Communication.TranscriptionStopped\",\"data\":{\"transcriptionUpdate\":{\"transcriptionStatus\":\"transcriptionStopped\",\"transcriptionStatusDetails\":\"subscriptionStopped\"},\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-5475-4f84-8842-2222ead9a207\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"52a62de0-cc1f-4434-ba2a-ad43bcbfb947\",\"publicEventType\":\"Microsoft.Communication.TranscriptionStopped\"},\"time\":\"2025-03-05T05:11:32.6029876\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-5475-4f84-8842-2222ead9a207\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-5475-4f84-8842-2222ead9a207\",\"type\":\"Microsoft.Communication.TranscriptionStopped\",\"data\":{\"transcriptionUpdate\":{\"transcriptionStatus\":\"transcriptionStopped\",\"transcriptionStatusDetails\":\"streamConnectionInterrupted\"},\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":500,\"subCode\":8579,\"message\":\"Action failed, transcription was canceled.\"},\"callConnectionId\":\"00002680-5475-4f84-8842-2222ead9a207\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"52a62de0-cc1f-4434-ba2a-ad43bcbfb947\",\"publicEventType\":\"Microsoft.Communication.TranscriptionStopped\"},\"time\":\"2025-03-05T05:11:32.6029876\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-5475-4f84-8842-2222ead9a207\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6b4c-45cc-bc30-c8d58aa6f95b\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-6b4c-45cc-bc30-c8d58aa6f95b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:06.3398932\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6b4c-45cc-bc30-c8d58aa6f95b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-c6b8-4691-be54-972b63fb77dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:06.3398932\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6b4c-45cc-bc30-c8d58aa6f95b\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-6b4c-45cc-bc30-c8d58aa6f95b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:08:06.417647\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6b4c-45cc-bc30-c8d58aa6f95b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-c6b8-4691-be54-972b63fb77dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:08:06.4403958\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\",\"type\":\"Microsoft.Communication.TranscriptionStarted\",\"data\":{\"transcriptionUpdate\":{\"transcriptionStatus\":\"transcriptionStarted\",\"transcriptionStatusDetails\":\"subscriptionStarted\"},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-c6b8-4691-be54-972b63fb77dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\",\"publicEventType\":\"Microsoft.Communication.TranscriptionStarted\"},\"time\":\"2025-05-20T10:08:10.4255642\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\",\"type\":\"Microsoft.Communication.TranscriptionStopped\",\"data\":{\"transcriptionUpdate\":{\"transcriptionStatus\":\"transcriptionStopped\",\"transcriptionStatusDetails\":\"subscriptionStopped\"},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-c6b8-4691-be54-972b63fb77dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\",\"publicEventType\":\"Microsoft.Communication.TranscriptionStopped\"},\"time\":\"2025-05-20T10:08:13.5321178\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/dtmfActionsInACallAutomatedTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/dtmfActionsInACallAutomatedTest.json index 6932a6b5e7bf..043b780ab255 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/dtmfActionsInACallAutomatedTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/dtmfActionsInACallAutomatedTest.json @@ -1 +1 @@ -["[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-d9b2-43e0-9e4e-4a44ad7dad4f\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"08002680-d9b2-43e0-9e4e-4a44ad7dad4f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"4500fed7-e1cd-4c1f-9c7f-1ec545843a38\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-03-05T05:06:09.2240574\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-d9b2-43e0-9e4e-4a44ad7dad4f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-a72d-45ec-aa54-d156ae433b95\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":540000,\"message\":\"The conversation has ended\"},\"callConnectionId\":\"08002680-a72d-45ec-aa54-d156ae433b95\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d2b98a7f-e0ce-4405-98ae-1b5b85bb9e10\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-03-05T05:06:09.7269266\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-a72d-45ec-aa54-d156ae433b95\"}]","{\"to\":{\"kind\":\"phoneNumber\",\"rawId\":\"REDACTED\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"from\":{\"kind\":\"phoneNumber\",\"rawId\":\"REDACTED\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"716fb88e-7a5a-4ae1-b953-a1d519595a52\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-b0ee-44ac-be45-b6015074d407\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"phoneNumber\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-b0ee-44ac-be45-b6015074d407\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"4ba75dae-5a1d-4c72-911e-a5d805dedb69\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:08:58.0584334\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-b0ee-44ac-be45-b6015074d407\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-3717-497b-a894-f68c64158883\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-3717-497b-a894-f68c64158883\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"716fb88e-7a5a-4ae1-b953-a1d519595a52\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:08:58.0747348\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-3717-497b-a894-f68c64158883\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-b0ee-44ac-be45-b6015074d407\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-b0ee-44ac-be45-b6015074d407\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"4ba75dae-5a1d-4c72-911e-a5d805dedb69\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:08:58.3583025\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-b0ee-44ac-be45-b6015074d407\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-3717-497b-a894-f68c64158883\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"phoneNumber\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-3717-497b-a894-f68c64158883\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"716fb88e-7a5a-4ae1-b953-a1d519595a52\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:08:58.609263\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-3717-497b-a894-f68c64158883\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-b0ee-44ac-be45-b6015074d407\",\"type\":\"Microsoft.Communication.SendDtmfTonesCompleted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-b0ee-44ac-be45-b6015074d407\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"4ba75dae-5a1d-4c72-911e-a5d805dedb69\",\"publicEventType\":\"Microsoft.Communication.SendDtmfTonesCompleted\"},\"time\":\"2025-03-05T05:09:05.0583303\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-b0ee-44ac-be45-b6015074d407\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-b0ee-44ac-be45-b6015074d407\",\"type\":\"Microsoft.Communication.ContinuousDtmfRecognitionStopped\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"00002680-b0ee-44ac-be45-b6015074d407\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"4ba75dae-5a1d-4c72-911e-a5d805dedb69\",\"publicEventType\":\"Microsoft.Communication.ContinuousDtmfRecognitionStopped\"},\"time\":\"2025-03-05T05:09:05.6716338\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-b0ee-44ac-be45-b6015074d407\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"phoneNumber\",\"rawId\":\"REDACTED\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"from\":{\"kind\":\"phoneNumber\",\"rawId\":\"REDACTED\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"b440a86e-b656-4462-a0ee-c26b03e4ff1d\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"phoneNumber\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-5648-4066-903c-3dee1151f6ad\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9e2dc1a7-deb8-4fbe-bf90-582769169021\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:39.1653916\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-35ae-4de4-a9f4-a58c9110a3af\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-35ae-4de4-a9f4-a58c9110a3af\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b440a86e-b656-4462-a0ee-c26b03e4ff1d\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:05:39.3087402\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-35ae-4de4-a9f4-a58c9110a3af\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-5648-4066-903c-3dee1151f6ad\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9e2dc1a7-deb8-4fbe-bf90-582769169021\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:05:39.4007799\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-35ae-4de4-a9f4-a58c9110a3af\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"phoneNumber\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-35ae-4de4-a9f4-a58c9110a3af\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b440a86e-b656-4462-a0ee-c26b03e4ff1d\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:40.0807007\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-35ae-4de4-a9f4-a58c9110a3af\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\",\"type\":\"Microsoft.Communication.SendDtmfTonesCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-5648-4066-903c-3dee1151f6ad\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9e2dc1a7-deb8-4fbe-bf90-582769169021\",\"publicEventType\":\"Microsoft.Communication.SendDtmfTonesCompleted\"},\"time\":\"2025-05-20T10:05:43.8084628\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\",\"type\":\"Microsoft.Communication.ContinuousDtmfRecognitionStopped\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"02002680-5648-4066-903c-3dee1151f6ad\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9e2dc1a7-deb8-4fbe-bf90-582769169021\",\"publicEventType\":\"Microsoft.Communication.ContinuousDtmfRecognitionStopped\"},\"time\":\"2025-05-20T10:05:44.5129324\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/holdUnholdParticipantInACallTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/holdUnholdParticipantInACallTest.json index bee4038d7049..5b72358b29e4 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/holdUnholdParticipantInACallTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/holdUnholdParticipantInACallTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"a9735b79-beed-4882-8449-5eade4c353cf\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-357e-4638-bcc7-f67c84ff6931\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-357e-4638-bcc7-f67c84ff6931\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a9735b79-beed-4882-8449-5eade4c353cf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:11:07.050362\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-357e-4638-bcc7-f67c84ff6931\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-0bee-4251-a78d-385e6f2930f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-0bee-4251-a78d-385e6f2930f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a9735b79-beed-4882-8449-5eade4c353cf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:11:07.0564601\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-0bee-4251-a78d-385e6f2930f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-357e-4638-bcc7-f67c84ff6931\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-357e-4638-bcc7-f67c84ff6931\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a9735b79-beed-4882-8449-5eade4c353cf\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:11:07.0551994\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-357e-4638-bcc7-f67c84ff6931\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-0bee-4251-a78d-385e6f2930f3\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-0bee-4251-a78d-385e6f2930f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a9735b79-beed-4882-8449-5eade4c353cf\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:11:07.1401195\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-0bee-4251-a78d-385e6f2930f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-357e-4638-bcc7-f67c84ff6931\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-357e-4638-bcc7-f67c84ff6931\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a9735b79-beed-4882-8449-5eade4c353cf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:11:11.1252698\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-357e-4638-bcc7-f67c84ff6931\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-0bee-4251-a78d-385e6f2930f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-0bee-4251-a78d-385e6f2930f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a9735b79-beed-4882-8449-5eade4c353cf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:11:11.1252698\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-0bee-4251-a78d-385e6f2930f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-0bee-4251-a78d-385e6f2930f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-0bee-4251-a78d-385e6f2930f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a9735b79-beed-4882-8449-5eade4c353cf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:11:14.519588\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-0bee-4251-a78d-385e6f2930f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-357e-4638-bcc7-f67c84ff6931\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-357e-4638-bcc7-f67c84ff6931\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a9735b79-beed-4882-8449-5eade4c353cf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:11:14.519588\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-357e-4638-bcc7-f67c84ff6931\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9a71-490a-a0cc-f9a62206ab09\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:07:46.4795264\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-9a71-490a-a0cc-f9a62206ab09\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:07:46.5291562\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-5880-459e-a8a8-94a087e398b9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:07:46.7381914\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-5880-459e-a8a8-94a087e398b9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:07:47.1041792\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9a71-490a-a0cc-f9a62206ab09\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:07:50.2644312\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-5880-459e-a8a8-94a087e398b9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:07:50.2644312\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9a71-490a-a0cc-f9a62206ab09\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:07:53.8260718\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-5880-459e-a8a8-94a087e398b9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:07:53.8882761\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMediaInACallAutomatedTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMediaInACallAutomatedTest.json index b3d29b52ab95..d63cbd487c0a 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMediaInACallAutomatedTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMediaInACallAutomatedTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"dd4edbb8-36a7-40db-8f4f-3b481d60d5d8\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-062f-4308-ab87-5427daa80363\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-062f-4308-ab87-5427daa80363\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dd4edbb8-36a7-40db-8f4f-3b481d60d5d8\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:10:38.2941461\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-062f-4308-ab87-5427daa80363\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-6f85-4b4c-938e-9e58586f1fb9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-6f85-4b4c-938e-9e58586f1fb9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dd4edbb8-36a7-40db-8f4f-3b481d60d5d8\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:10:38.2941461\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-6f85-4b4c-938e-9e58586f1fb9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-6f85-4b4c-938e-9e58586f1fb9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-6f85-4b4c-938e-9e58586f1fb9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dd4edbb8-36a7-40db-8f4f-3b481d60d5d8\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:10:38.3268155\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-6f85-4b4c-938e-9e58586f1fb9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-062f-4308-ab87-5427daa80363\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-062f-4308-ab87-5427daa80363\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dd4edbb8-36a7-40db-8f4f-3b481d60d5d8\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:10:38.3573005\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-062f-4308-ab87-5427daa80363\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-062f-4308-ab87-5427daa80363\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-062f-4308-ab87-5427daa80363\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dd4edbb8-36a7-40db-8f4f-3b481d60d5d8\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-03-05T05:10:40.9324277\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-062f-4308-ab87-5427daa80363\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-062f-4308-ab87-5427daa80363\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-062f-4308-ab87-5427daa80363\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dd4edbb8-36a7-40db-8f4f-3b481d60d5d8\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-03-05T05:10:45.1536721\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-062f-4308-ab87-5427daa80363\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-2443-49bc-a400-61456bdaa77f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-2443-49bc-a400-61456bdaa77f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:56.8320795\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-2443-49bc-a400-61456bdaa77f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-54e3-48b6-a5c0-30b87fba894f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:56.8320795\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-2443-49bc-a400-61456bdaa77f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-2443-49bc-a400-61456bdaa77f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:06:56.9750777\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-2443-49bc-a400-61456bdaa77f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-54e3-48b6-a5c0-30b87fba894f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:06:57.0377392\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-54e3-48b6-a5c0-30b87fba894f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:07:00.0938396\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-54e3-48b6-a5c0-30b87fba894f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:07:04.3266892\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaAllTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaAllTest.json index 4edf9039a5ce..bb96762abe07 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaAllTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaAllTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"c10105df-684c-4992-8954-6677ec8f04c1\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-9356-4a4b-888f-eb46bfbfc06f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-9356-4a4b-888f-eb46bfbfc06f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c10105df-684c-4992-8954-6677ec8f04c1\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:09:15.3831389\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-9356-4a4b-888f-eb46bfbfc06f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-b751-4c98-af4e-e6e6231f7c8d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-b751-4c98-af4e-e6e6231f7c8d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c10105df-684c-4992-8954-6677ec8f04c1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:09:15.3763301\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-b751-4c98-af4e-e6e6231f7c8d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-9356-4a4b-888f-eb46bfbfc06f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-9356-4a4b-888f-eb46bfbfc06f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c10105df-684c-4992-8954-6677ec8f04c1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:09:15.3861631\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-9356-4a4b-888f-eb46bfbfc06f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-b751-4c98-af4e-e6e6231f7c8d\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-b751-4c98-af4e-e6e6231f7c8d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c10105df-684c-4992-8954-6677ec8f04c1\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:09:15.4835351\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-b751-4c98-af4e-e6e6231f7c8d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-b751-4c98-af4e-e6e6231f7c8d\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-b751-4c98-af4e-e6e6231f7c8d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c10105df-684c-4992-8954-6677ec8f04c1\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-03-05T05:09:20.0184554\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-b751-4c98-af4e-e6e6231f7c8d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-b751-4c98-af4e-e6e6231f7c8d\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-b751-4c98-af4e-e6e6231f7c8d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c10105df-684c-4992-8954-6677ec8f04c1\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-03-05T05:09:26.42697\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-b751-4c98-af4e-e6e6231f7c8d\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-08db-460d-a825-002681bb3f59\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-08db-460d-a825-002681bb3f59\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:54.0840954\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-08db-460d-a825-002681bb3f59\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a774-44bd-a732-888ceb55871f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:54.0847103\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-08db-460d-a825-002681bb3f59\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-08db-460d-a825-002681bb3f59\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:05:54.152793\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-08db-460d-a825-002681bb3f59\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-a774-44bd-a732-888ceb55871f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:05:54.1696406\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-a774-44bd-a732-888ceb55871f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:05:57.7083739\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-a774-44bd-a732-888ceb55871f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:06:04.1158282\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaTest.json index 66c0e2e88a74..b4169b96c0f8 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"6a3bdb74-6cca-4964-b544-74c1a9301b8a\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-9832-4e1c-bc5b-5b9acd3b2f7b\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-9832-4e1c-bc5b-5b9acd3b2f7b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6a3bdb74-6cca-4964-b544-74c1a9301b8a\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:09:35.6617539\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-9832-4e1c-bc5b-5b9acd3b2f7b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-a41a-4aac-9c52-7149a7b0344f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-a41a-4aac-9c52-7149a7b0344f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6a3bdb74-6cca-4964-b544-74c1a9301b8a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:09:35.6548122\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-a41a-4aac-9c52-7149a7b0344f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-9832-4e1c-bc5b-5b9acd3b2f7b\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-9832-4e1c-bc5b-5b9acd3b2f7b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6a3bdb74-6cca-4964-b544-74c1a9301b8a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:09:35.6562069\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-9832-4e1c-bc5b-5b9acd3b2f7b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-a41a-4aac-9c52-7149a7b0344f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-a41a-4aac-9c52-7149a7b0344f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6a3bdb74-6cca-4964-b544-74c1a9301b8a\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:09:35.7724452\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-a41a-4aac-9c52-7149a7b0344f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-9832-4e1c-bc5b-5b9acd3b2f7b\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-9832-4e1c-bc5b-5b9acd3b2f7b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6a3bdb74-6cca-4964-b544-74c1a9301b8a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:09:39.8231573\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-9832-4e1c-bc5b-5b9acd3b2f7b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-a41a-4aac-9c52-7149a7b0344f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-a41a-4aac-9c52-7149a7b0344f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6a3bdb74-6cca-4964-b544-74c1a9301b8a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:09:39.8231573\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-a41a-4aac-9c52-7149a7b0344f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-a41a-4aac-9c52-7149a7b0344f\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-a41a-4aac-9c52-7149a7b0344f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6a3bdb74-6cca-4964-b544-74c1a9301b8a\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-03-05T05:09:41.3865239\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-a41a-4aac-9c52-7149a7b0344f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-a41a-4aac-9c52-7149a7b0344f\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-a41a-4aac-9c52-7149a7b0344f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6a3bdb74-6cca-4964-b544-74c1a9301b8a\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-03-05T05:09:47.8448204\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-a41a-4aac-9c52-7149a7b0344f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-a41a-4aac-9c52-7149a7b0344f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-a41a-4aac-9c52-7149a7b0344f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6a3bdb74-6cca-4964-b544-74c1a9301b8a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:09:47.8675283\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-a41a-4aac-9c52-7149a7b0344f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-9832-4e1c-bc5b-5b9acd3b2f7b\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-9832-4e1c-bc5b-5b9acd3b2f7b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6a3bdb74-6cca-4964-b544-74c1a9301b8a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:09:47.8637087\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-9832-4e1c-bc5b-5b9acd3b2f7b\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-43be-4948-a136-3fa0fe0ef6c1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:16.6074806\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-258e-43c2-9c37-54ad340bc8c7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-258e-43c2-9c37-54ad340bc8c7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:16.6074806\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-258e-43c2-9c37-54ad340bc8c7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-43be-4948-a136-3fa0fe0ef6c1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:06:16.7115973\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-258e-43c2-9c37-54ad340bc8c7\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-258e-43c2-9c37-54ad340bc8c7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:06:16.7115973\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-258e-43c2-9c37-54ad340bc8c7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-43be-4948-a136-3fa0fe0ef6c1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:19.4760028\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-258e-43c2-9c37-54ad340bc8c7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-258e-43c2-9c37-54ad340bc8c7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:19.47652\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-258e-43c2-9c37-54ad340bc8c7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-43be-4948-a136-3fa0fe0ef6c1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:06:20.4441923\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-43be-4948-a136-3fa0fe0ef6c1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:06:26.842228\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-43be-4948-a136-3fa0fe0ef6c1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:26.8730632\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaAllTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaAllTest.json index e1db7df9cbd4..bc331ea6f088 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaAllTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaAllTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"0ae4ce89-1565-4c3c-9480-fc4579d920fe\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-bd9a-4964-abdd-a01fa862c675\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-bd9a-4964-abdd-a01fa862c675\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0ae4ce89-1565-4c3c-9480-fc4579d920fe\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:08:33.3082004\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-bd9a-4964-abdd-a01fa862c675\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-027c-42c0-958f-ae8be373146f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-027c-42c0-958f-ae8be373146f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0ae4ce89-1565-4c3c-9480-fc4579d920fe\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:08:33.3144374\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-027c-42c0-958f-ae8be373146f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-027c-42c0-958f-ae8be373146f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-027c-42c0-958f-ae8be373146f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0ae4ce89-1565-4c3c-9480-fc4579d920fe\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:08:33.3545829\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-027c-42c0-958f-ae8be373146f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-bd9a-4964-abdd-a01fa862c675\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-bd9a-4964-abdd-a01fa862c675\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0ae4ce89-1565-4c3c-9480-fc4579d920fe\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:08:33.4025175\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-bd9a-4964-abdd-a01fa862c675\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-bd9a-4964-abdd-a01fa862c675\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-bd9a-4964-abdd-a01fa862c675\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0ae4ce89-1565-4c3c-9480-fc4579d920fe\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-03-05T05:08:36.2223199\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-bd9a-4964-abdd-a01fa862c675\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-bd9a-4964-abdd-a01fa862c675\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-bd9a-4964-abdd-a01fa862c675\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0ae4ce89-1565-4c3c-9480-fc4579d920fe\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-03-05T05:08:44.6860623\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-bd9a-4964-abdd-a01fa862c675\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-6f03-49ec-b029-ac5072be4303\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:14.3725764\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-b07a-4740-8ea3-d18de2c7dfa7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-b07a-4740-8ea3-d18de2c7dfa7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:14.3725764\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-b07a-4740-8ea3-d18de2c7dfa7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-b07a-4740-8ea3-d18de2c7dfa7\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-b07a-4740-8ea3-d18de2c7dfa7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:05:14.454832\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-b07a-4740-8ea3-d18de2c7dfa7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-6f03-49ec-b029-ac5072be4303\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:05:14.4801053\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-6f03-49ec-b029-ac5072be4303\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:05:17.6450818\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-6f03-49ec-b029-ac5072be4303\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:05:26.1401236\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaTest.json index 1bec9e689fb4..e1e0557d8478 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"a13c2afd-1cb4-438c-9184-c6232e38b86a\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9d88-4312-84d1-4e54ff22de3b\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-9d88-4312-84d1-4e54ff22de3b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a13c2afd-1cb4-438c-9184-c6232e38b86a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:07:51.3167081\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9d88-4312-84d1-4e54ff22de3b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-3574-4a62-9ff0-b4a75afbb8b7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-3574-4a62-9ff0-b4a75afbb8b7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a13c2afd-1cb4-438c-9184-c6232e38b86a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:07:51.3130214\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-3574-4a62-9ff0-b4a75afbb8b7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-3574-4a62-9ff0-b4a75afbb8b7\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-3574-4a62-9ff0-b4a75afbb8b7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a13c2afd-1cb4-438c-9184-c6232e38b86a\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:07:51.3280513\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-3574-4a62-9ff0-b4a75afbb8b7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9d88-4312-84d1-4e54ff22de3b\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"09002680-9d88-4312-84d1-4e54ff22de3b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a13c2afd-1cb4-438c-9184-c6232e38b86a\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:07:51.4151285\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9d88-4312-84d1-4e54ff22de3b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-3574-4a62-9ff0-b4a75afbb8b7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-3574-4a62-9ff0-b4a75afbb8b7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a13c2afd-1cb4-438c-9184-c6232e38b86a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:07:55.4615213\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-3574-4a62-9ff0-b4a75afbb8b7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9d88-4312-84d1-4e54ff22de3b\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-9d88-4312-84d1-4e54ff22de3b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a13c2afd-1cb4-438c-9184-c6232e38b86a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:07:55.4678785\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9d88-4312-84d1-4e54ff22de3b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9d88-4312-84d1-4e54ff22de3b\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"09002680-9d88-4312-84d1-4e54ff22de3b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a13c2afd-1cb4-438c-9184-c6232e38b86a\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-03-05T05:07:56.1592327\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9d88-4312-84d1-4e54ff22de3b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9d88-4312-84d1-4e54ff22de3b\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"09002680-9d88-4312-84d1-4e54ff22de3b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a13c2afd-1cb4-438c-9184-c6232e38b86a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:08:04.7077106\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9d88-4312-84d1-4e54ff22de3b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/09002680-9d88-4312-84d1-4e54ff22de3b\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"09002680-9d88-4312-84d1-4e54ff22de3b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a13c2afd-1cb4-438c-9184-c6232e38b86a\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-03-05T05:08:04.6864093\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/09002680-9d88-4312-84d1-4e54ff22de3b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-3574-4a62-9ff0-b4a75afbb8b7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-3574-4a62-9ff0-b4a75afbb8b7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a13c2afd-1cb4-438c-9184-c6232e38b86a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:08:04.7068903\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-3574-4a62-9ff0-b4a75afbb8b7\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-bdc5-4318-9ba8-26f7f10740a9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:32.0003496\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:32.0003496\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:04:32.0792708\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-bdc5-4318-9ba8-26f7f10740a9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:04:32.0997967\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-bdc5-4318-9ba8-26f7f10740a9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:36.5537165\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:36.5537165\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-bdc5-4318-9ba8-26f7f10740a9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:04:37.2928537\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-bdc5-4318-9ba8-26f7f10740a9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:04:45.8558804\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-bdc5-4318-9ba8-26f7f10740a9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:45.9037835\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:45.9037835\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaAllTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaAllTest.json index f6527fe59285..194b6f1523ca 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaAllTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaAllTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"51770722-c7d9-4ea4-bb33-003ac9f5943c\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-38fe-451a-ad0f-591871adeded\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-38fe-451a-ad0f-591871adeded\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"51770722-c7d9-4ea4-bb33-003ac9f5943c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:09:56.9758725\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-38fe-451a-ad0f-591871adeded\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-54e4-4719-85f5-e0a52ec5ff07\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-54e4-4719-85f5-e0a52ec5ff07\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"51770722-c7d9-4ea4-bb33-003ac9f5943c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:09:56.9608317\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-54e4-4719-85f5-e0a52ec5ff07\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-38fe-451a-ad0f-591871adeded\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-38fe-451a-ad0f-591871adeded\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"51770722-c7d9-4ea4-bb33-003ac9f5943c\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:09:56.9915383\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-38fe-451a-ad0f-591871adeded\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-54e4-4719-85f5-e0a52ec5ff07\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-54e4-4719-85f5-e0a52ec5ff07\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"51770722-c7d9-4ea4-bb33-003ac9f5943c\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:09:57.1219019\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-54e4-4719-85f5-e0a52ec5ff07\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-38fe-451a-ad0f-591871adeded\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-38fe-451a-ad0f-591871adeded\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"51770722-c7d9-4ea4-bb33-003ac9f5943c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:10:01.3020749\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-38fe-451a-ad0f-591871adeded\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-54e4-4719-85f5-e0a52ec5ff07\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-54e4-4719-85f5-e0a52ec5ff07\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"51770722-c7d9-4ea4-bb33-003ac9f5943c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:10:01.3020749\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-54e4-4719-85f5-e0a52ec5ff07\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-54e4-4719-85f5-e0a52ec5ff07\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-54e4-4719-85f5-e0a52ec5ff07\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"51770722-c7d9-4ea4-bb33-003ac9f5943c\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-03-05T05:10:02.8798758\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-54e4-4719-85f5-e0a52ec5ff07\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-54e4-4719-85f5-e0a52ec5ff07\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-54e4-4719-85f5-e0a52ec5ff07\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"51770722-c7d9-4ea4-bb33-003ac9f5943c\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-03-05T05:10:07.3180004\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-54e4-4719-85f5-e0a52ec5ff07\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-54e4-4719-85f5-e0a52ec5ff07\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-54e4-4719-85f5-e0a52ec5ff07\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"51770722-c7d9-4ea4-bb33-003ac9f5943c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:10:07.3337147\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-54e4-4719-85f5-e0a52ec5ff07\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-e745-4794-ac12-1588dfb99237\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:38.4198082\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-7d54-42c0-9b01-1105906c51dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:38.4198082\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-e745-4794-ac12-1588dfb99237\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:06:38.5363308\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-7d54-42c0-9b01-1105906c51dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:06:38.5212957\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-e745-4794-ac12-1588dfb99237\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:41.3350536\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-7d54-42c0-9b01-1105906c51dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:41.3350536\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-e745-4794-ac12-1588dfb99237\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:06:42.1144442\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-e745-4794-ac12-1588dfb99237\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:06:46.5162609\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-7d54-42c0-9b01-1105906c51dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:46.5565499\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaTest.json index a76333f087e4..4bb4ee7dfd24 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"e1d3849d-2d55-497a-8829-9def9e225787\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-0aa8-4f75-891a-5aec1a28d4ef\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-0aa8-4f75-891a-5aec1a28d4ef\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e1d3849d-2d55-497a-8829-9def9e225787\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:08:13.9102397\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-0aa8-4f75-891a-5aec1a28d4ef\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-5942-4ba1-9078-66ccb0671665\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-5942-4ba1-9078-66ccb0671665\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e1d3849d-2d55-497a-8829-9def9e225787\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:08:13.9102397\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-5942-4ba1-9078-66ccb0671665\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-0aa8-4f75-891a-5aec1a28d4ef\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-0aa8-4f75-891a-5aec1a28d4ef\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e1d3849d-2d55-497a-8829-9def9e225787\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:08:13.925914\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-0aa8-4f75-891a-5aec1a28d4ef\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-5942-4ba1-9078-66ccb0671665\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"00002680-5942-4ba1-9078-66ccb0671665\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e1d3849d-2d55-497a-8829-9def9e225787\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-03-05T05:08:13.9739143\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-5942-4ba1-9078-66ccb0671665\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-5942-4ba1-9078-66ccb0671665\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-5942-4ba1-9078-66ccb0671665\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e1d3849d-2d55-497a-8829-9def9e225787\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:08:18.1852333\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-5942-4ba1-9078-66ccb0671665\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-0aa8-4f75-891a-5aec1a28d4ef\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-0aa8-4f75-891a-5aec1a28d4ef\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e1d3849d-2d55-497a-8829-9def9e225787\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:08:18.1852333\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-0aa8-4f75-891a-5aec1a28d4ef\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-5942-4ba1-9078-66ccb0671665\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-5942-4ba1-9078-66ccb0671665\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e1d3849d-2d55-497a-8829-9def9e225787\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-03-05T05:08:19.9953987\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-5942-4ba1-9078-66ccb0671665\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-5942-4ba1-9078-66ccb0671665\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"00002680-5942-4ba1-9078-66ccb0671665\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e1d3849d-2d55-497a-8829-9def9e225787\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-03-05T05:08:24.4084005\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-5942-4ba1-9078-66ccb0671665\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/00002680-5942-4ba1-9078-66ccb0671665\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"00002680-5942-4ba1-9078-66ccb0671665\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e1d3849d-2d55-497a-8829-9def9e225787\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-03-05T05:08:24.4558662\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/00002680-5942-4ba1-9078-66ccb0671665\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-7b28-4520-b387-1f59b3c1304d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:56.639687\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-115d-4771-828b-9f4405cdc393\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:56.639687\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-7b28-4520-b387-1f59b3c1304d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:04:56.7655227\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-115d-4771-828b-9f4405cdc393\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:04:56.7655227\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-7b28-4520-b387-1f59b3c1304d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:00.5643514\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-115d-4771-828b-9f4405cdc393\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:00.5643514\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-115d-4771-828b-9f4405cdc393\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:05:01.5654048\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-115d-4771-828b-9f4405cdc393\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:05:05.9342264\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-7b28-4520-b387-1f59b3c1304d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:05.9657661\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\"}]"] \ No newline at end of file From 4c30693a0e212ce6141611601425b3a6c24a5e7b Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Wed, 21 May 2025 05:44:31 -0700 Subject: [PATCH 04/31] Addressing arb comments --- .../callautomation/CallMedia.java | 12 +- .../callautomation/CallMediaAsync.java | 13 - .../models/MediaStreamingOptions.java | 262 ----------------- .../models/MediaStreamingOptionsInternal.java | 8 +- .../StreamingTransportTypeInternal.java | 47 +++ .../models/TranscriptionOptions.java | 230 --------------- .../models/TranscriptionOptionsInternal.java | 8 +- .../WebSocketMediaStreamingOptions.java | 269 ------------------ ...ebSocketMediaStreamingOptionsInternal.java | 6 +- .../models/WebSocketTranscriptionOptions.java | 208 -------------- ...WebSocketTranscriptionOptionsInternal.java | 6 +- .../models/MediaStreamingOptions.java | 80 +++++- .../StreamingTransport.java} | 17 +- .../models/TranscriptionOptions.java | 36 ++- .../models/TranscriptionTransport.java | 46 --- .../CallAutomationUnitTestBase.java | 8 +- .../CallMediaAsyncAutomatedLiveTests.java | 8 +- .../swagger/README.md | 16 +- 18 files changed, 176 insertions(+), 1104 deletions(-) delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptions.java create mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportTypeInternal.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptions.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptions.java delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptions.java rename sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/{implementation/models/StreamingTransportType.java => models/StreamingTransport.java} (60%) delete mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionTransport.java diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java index cbcbaa873cae..c43b4dc95286 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java @@ -319,17 +319,7 @@ public Response stopTranscriptionWithResponse(StopTranscriptionOptions opt public void updateTranscription(String locale) { callMediaAsync.updateTranscription(locale).block(); } - - /** - * Updates transcription language in the call. - * @param locale Defines new locale for transcription. - * @param speechRecognitionModelEndpointId Defines custom model endpoint. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void updateTranscription(String locale, String speechRecognitionModelEndpointId) { - callMediaAsync.updateTranscription(locale, speechRecognitionModelEndpointId).block(); - } - + /** * Updates transcription language in the call. *@param options Options for the Update Transcription operation. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java index 371c20a25cb9..101209a008a3 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java @@ -891,19 +891,6 @@ public Mono updateTranscription(String locale) { return updateTranscriptionWithResponse(new UpdateTranscriptionOptions().setLocale(locale)).then(); } - /** - * Updates transcription language - * - * @param locale Defines new locale for transcription. - * @param speechRecognitionModelEndpointId Defines custom model endpoint. - * @return Response for successful operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTranscription(String locale, String speechRecognitionModelEndpointId) { - return updateTranscriptionWithResponse(new UpdateTranscriptionOptions().setLocale(locale) - .setSpeechRecognitionModelEndpointId(speechRecognitionModelEndpointId)).then(); - } - /** * Updates transcription language * @param options Options for the Update Transcription operation. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptions.java deleted file mode 100644 index 4b29342ffa96..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptions.java +++ /dev/null @@ -1,262 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.communication.callautomation.implementation.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Configuration of Media streaming. - */ -@Fluent -public final class MediaStreamingOptions implements JsonSerializable { - /* - * Transport URL for media streaming - */ - private String transportUrl; - - /* - * The type of transport to be used for media streaming, eg. Websocket - */ - private MediaStreamingTransportTypeInternal transportType; - - /* - * Content type to stream, eg. audio - */ - private MediaStreamingContentTypeInternal contentType; - - /* - * Audio channel type to stream, eg. unmixed audio, mixed audio - */ - private MediaStreamingAudioChannelTypeInternal audioChannelType; - - /* - * Determines if the media streaming should be started immediately after call is answered or not. - */ - private Boolean startMediaStreaming; - - /* - * A value indicating whether bidirectional streaming is enabled. - */ - private Boolean enableBidirectional; - - /* - * Specifies the audio format used for encoding, including sample rate and channel type. - */ - private AudioFormat audioFormat; - - /** - * Creates an instance of MediaStreamingOptions class. - */ - public MediaStreamingOptions() { - } - - /** - * Get the transportUrl property: Transport URL for media streaming. - * - * @return the transportUrl value. - */ - public String getTransportUrl() { - return this.transportUrl; - } - - /** - * Set the transportUrl property: Transport URL for media streaming. - * - * @param transportUrl the transportUrl value to set. - * @return the MediaStreamingOptions object itself. - */ - public MediaStreamingOptions setTransportUrl(String transportUrl) { - this.transportUrl = transportUrl; - return this; - } - - /** - * Get the transportType property: The type of transport to be used for media streaming, eg. Websocket. - * - * @return the transportType value. - */ - public MediaStreamingTransportTypeInternal getTransportType() { - return this.transportType; - } - - /** - * Set the transportType property: The type of transport to be used for media streaming, eg. Websocket. - * - * @param transportType the transportType value to set. - * @return the MediaStreamingOptions object itself. - */ - public MediaStreamingOptions setTransportType(MediaStreamingTransportTypeInternal transportType) { - this.transportType = transportType; - return this; - } - - /** - * Get the contentType property: Content type to stream, eg. audio. - * - * @return the contentType value. - */ - public MediaStreamingContentTypeInternal getContentType() { - return this.contentType; - } - - /** - * Set the contentType property: Content type to stream, eg. audio. - * - * @param contentType the contentType value to set. - * @return the MediaStreamingOptions object itself. - */ - public MediaStreamingOptions setContentType(MediaStreamingContentTypeInternal contentType) { - this.contentType = contentType; - return this; - } - - /** - * Get the audioChannelType property: Audio channel type to stream, eg. unmixed audio, mixed audio. - * - * @return the audioChannelType value. - */ - public MediaStreamingAudioChannelTypeInternal getAudioChannelType() { - return this.audioChannelType; - } - - /** - * Set the audioChannelType property: Audio channel type to stream, eg. unmixed audio, mixed audio. - * - * @param audioChannelType the audioChannelType value to set. - * @return the MediaStreamingOptions object itself. - */ - public MediaStreamingOptions setAudioChannelType(MediaStreamingAudioChannelTypeInternal audioChannelType) { - this.audioChannelType = audioChannelType; - return this; - } - - /** - * Get the startMediaStreaming property: Determines if the media streaming should be started immediately after call - * is answered or not. - * - * @return the startMediaStreaming value. - */ - public Boolean isStartMediaStreaming() { - return this.startMediaStreaming; - } - - /** - * Set the startMediaStreaming property: Determines if the media streaming should be started immediately after call - * is answered or not. - * - * @param startMediaStreaming the startMediaStreaming value to set. - * @return the MediaStreamingOptions object itself. - */ - public MediaStreamingOptions setStartMediaStreaming(Boolean startMediaStreaming) { - this.startMediaStreaming = startMediaStreaming; - return this; - } - - /** - * Get the enableBidirectional property: A value indicating whether bidirectional streaming is enabled. - * - * @return the enableBidirectional value. - */ - public Boolean isEnableBidirectional() { - return this.enableBidirectional; - } - - /** - * Set the enableBidirectional property: A value indicating whether bidirectional streaming is enabled. - * - * @param enableBidirectional the enableBidirectional value to set. - * @return the MediaStreamingOptions object itself. - */ - public MediaStreamingOptions setEnableBidirectional(Boolean enableBidirectional) { - this.enableBidirectional = enableBidirectional; - return this; - } - - /** - * Get the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel - * type. - * - * @return the audioFormat value. - */ - public AudioFormat getAudioFormat() { - return this.audioFormat; - } - - /** - * Set the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel - * type. - * - * @param audioFormat the audioFormat value to set. - * @return the MediaStreamingOptions object itself. - */ - public MediaStreamingOptions setAudioFormat(AudioFormat audioFormat) { - this.audioFormat = audioFormat; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("transportUrl", this.transportUrl); - jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString()); - jsonWriter.writeStringField("contentType", this.contentType == null ? null : this.contentType.toString()); - jsonWriter.writeStringField("audioChannelType", - this.audioChannelType == null ? null : this.audioChannelType.toString()); - jsonWriter.writeBooleanField("startMediaStreaming", this.startMediaStreaming); - jsonWriter.writeBooleanField("enableBidirectional", this.enableBidirectional); - jsonWriter.writeStringField("audioFormat", this.audioFormat == null ? null : this.audioFormat.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of MediaStreamingOptions from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of MediaStreamingOptions if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the MediaStreamingOptions. - */ - public static MediaStreamingOptions fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - MediaStreamingOptions deserializedMediaStreamingOptions = new MediaStreamingOptions(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("transportUrl".equals(fieldName)) { - deserializedMediaStreamingOptions.transportUrl = reader.getString(); - } else if ("transportType".equals(fieldName)) { - deserializedMediaStreamingOptions.transportType - = MediaStreamingTransportTypeInternal.fromString(reader.getString()); - } else if ("contentType".equals(fieldName)) { - deserializedMediaStreamingOptions.contentType - = MediaStreamingContentTypeInternal.fromString(reader.getString()); - } else if ("audioChannelType".equals(fieldName)) { - deserializedMediaStreamingOptions.audioChannelType - = MediaStreamingAudioChannelTypeInternal.fromString(reader.getString()); - } else if ("startMediaStreaming".equals(fieldName)) { - deserializedMediaStreamingOptions.startMediaStreaming = reader.getNullable(JsonReader::getBoolean); - } else if ("enableBidirectional".equals(fieldName)) { - deserializedMediaStreamingOptions.enableBidirectional = reader.getNullable(JsonReader::getBoolean); - } else if ("audioFormat".equals(fieldName)) { - deserializedMediaStreamingOptions.audioFormat = AudioFormat.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedMediaStreamingOptions; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java index 664ce84c14e4..7f6fc336346d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java @@ -19,7 +19,7 @@ public class MediaStreamingOptionsInternal implements JsonSerializable { + /** + * Static value websocket for StreamingTransportTypeInternal. + */ + public static final StreamingTransportTypeInternal WEBSOCKET = fromString("websocket"); + + /** + * Creates a new instance of StreamingTransportTypeInternal value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public StreamingTransportTypeInternal() { + } + + /** + * Creates or finds a StreamingTransportTypeInternal from its string representation. + * + * @param name a name to look for. + * @return the corresponding StreamingTransportTypeInternal. + */ + public static StreamingTransportTypeInternal fromString(String name) { + return fromString(name, StreamingTransportTypeInternal.class); + } + + /** + * Gets known StreamingTransportTypeInternal values. + * + * @return known StreamingTransportTypeInternal values. + */ + public static Collection values() { + return values(StreamingTransportTypeInternal.class); + } +} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptions.java deleted file mode 100644 index 0cce79e4cc9d..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptions.java +++ /dev/null @@ -1,230 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.communication.callautomation.implementation.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Configuration of live transcription. - */ -@Fluent -public final class TranscriptionOptions implements JsonSerializable { - /* - * Transport URL for live transcription - */ - private String transportUrl; - - /* - * The type of transport to be used for live transcription, eg. Websocket - */ - private TranscriptionTransportTypeInternal transportType; - - /* - * Defines the locale for the data e.g en-CA, en-AU - */ - private String locale; - - /* - * Endpoint where the custom model was deployed. - */ - private String speechRecognitionModelEndpointId; - - /* - * Determines if the transcription should be started immediately after call is answered or not. - */ - private boolean startTranscription; - - /* - * Enables intermediate results for the transcribed speech. - */ - private Boolean enableIntermediateResults; - - /** - * Creates an instance of TranscriptionOptions class. - */ - public TranscriptionOptions() { - } - - /** - * Get the transportUrl property: Transport URL for live transcription. - * - * @return the transportUrl value. - */ - public String getTransportUrl() { - return this.transportUrl; - } - - /** - * Set the transportUrl property: Transport URL for live transcription. - * - * @param transportUrl the transportUrl value to set. - * @return the TranscriptionOptions object itself. - */ - public TranscriptionOptions setTransportUrl(String transportUrl) { - this.transportUrl = transportUrl; - return this; - } - - /** - * Get the transportType property: The type of transport to be used for live transcription, eg. Websocket. - * - * @return the transportType value. - */ - public TranscriptionTransportTypeInternal getTransportType() { - return this.transportType; - } - - /** - * Set the transportType property: The type of transport to be used for live transcription, eg. Websocket. - * - * @param transportType the transportType value to set. - * @return the TranscriptionOptions object itself. - */ - public TranscriptionOptions setTransportType(TranscriptionTransportTypeInternal transportType) { - this.transportType = transportType; - return this; - } - - /** - * Get the locale property: Defines the locale for the data e.g en-CA, en-AU. - * - * @return the locale value. - */ - public String getLocale() { - return this.locale; - } - - /** - * Set the locale property: Defines the locale for the data e.g en-CA, en-AU. - * - * @param locale the locale value to set. - * @return the TranscriptionOptions object itself. - */ - public TranscriptionOptions setLocale(String locale) { - this.locale = locale; - return this; - } - - /** - * Get the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed. - * - * @return the speechRecognitionModelEndpointId value. - */ - public String getSpeechRecognitionModelEndpointId() { - return this.speechRecognitionModelEndpointId; - } - - /** - * Set the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed. - * - * @param speechRecognitionModelEndpointId the speechRecognitionModelEndpointId value to set. - * @return the TranscriptionOptions object itself. - */ - public TranscriptionOptions setSpeechRecognitionModelEndpointId(String speechRecognitionModelEndpointId) { - this.speechRecognitionModelEndpointId = speechRecognitionModelEndpointId; - return this; - } - - /** - * Get the startTranscription property: Determines if the transcription should be started immediately after call is - * answered or not. - * - * @return the startTranscription value. - */ - public boolean isStartTranscription() { - return this.startTranscription; - } - - /** - * Set the startTranscription property: Determines if the transcription should be started immediately after call is - * answered or not. - * - * @param startTranscription the startTranscription value to set. - * @return the TranscriptionOptions object itself. - */ - public TranscriptionOptions setStartTranscription(boolean startTranscription) { - this.startTranscription = startTranscription; - return this; - } - - /** - * Get the enableIntermediateResults property: Enables intermediate results for the transcribed speech. - * - * @return the enableIntermediateResults value. - */ - public Boolean isEnableIntermediateResults() { - return this.enableIntermediateResults; - } - - /** - * Set the enableIntermediateResults property: Enables intermediate results for the transcribed speech. - * - * @param enableIntermediateResults the enableIntermediateResults value to set. - * @return the TranscriptionOptions object itself. - */ - public TranscriptionOptions setEnableIntermediateResults(Boolean enableIntermediateResults) { - this.enableIntermediateResults = enableIntermediateResults; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("transportUrl", this.transportUrl); - jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString()); - jsonWriter.writeStringField("locale", this.locale); - jsonWriter.writeBooleanField("startTranscription", this.startTranscription); - jsonWriter.writeStringField("speechRecognitionModelEndpointId", this.speechRecognitionModelEndpointId); - jsonWriter.writeBooleanField("enableIntermediateResults", this.enableIntermediateResults); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of TranscriptionOptions from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of TranscriptionOptions if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the TranscriptionOptions. - */ - public static TranscriptionOptions fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - TranscriptionOptions deserializedTranscriptionOptions = new TranscriptionOptions(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("transportUrl".equals(fieldName)) { - deserializedTranscriptionOptions.transportUrl = reader.getString(); - } else if ("transportType".equals(fieldName)) { - deserializedTranscriptionOptions.transportType - = TranscriptionTransportTypeInternal.fromString(reader.getString()); - } else if ("locale".equals(fieldName)) { - deserializedTranscriptionOptions.locale = reader.getString(); - } else if ("startTranscription".equals(fieldName)) { - deserializedTranscriptionOptions.startTranscription = reader.getBoolean(); - } else if ("speechRecognitionModelEndpointId".equals(fieldName)) { - deserializedTranscriptionOptions.speechRecognitionModelEndpointId = reader.getString(); - } else if ("enableIntermediateResults".equals(fieldName)) { - deserializedTranscriptionOptions.enableIntermediateResults - = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedTranscriptionOptions; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java index 1cea85d9e89c..d59345c9d8be 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java @@ -19,7 +19,7 @@ public class TranscriptionOptionsInternal implements JsonSerializable { - WebSocketMediaStreamingOptions deserializedWebSocketMediaStreamingOptions - = new WebSocketMediaStreamingOptions(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("audioChannelType".equals(fieldName)) { - deserializedWebSocketMediaStreamingOptions - .setAudioChannelType(MediaStreamingAudioChannelTypeInternal.fromString(reader.getString())); - } else if ("transportType".equals(fieldName)) { - deserializedWebSocketMediaStreamingOptions.transportType - = StreamingTransportType.fromString(reader.getString()); - } else if ("transportUrl".equals(fieldName)) { - deserializedWebSocketMediaStreamingOptions.transportUrl = reader.getString(); - } else if ("contentType".equals(fieldName)) { - deserializedWebSocketMediaStreamingOptions.contentType - = MediaStreamingContentTypeInternal.fromString(reader.getString()); - } else if ("startMediaStreaming".equals(fieldName)) { - deserializedWebSocketMediaStreamingOptions.startMediaStreaming - = reader.getNullable(JsonReader::getBoolean); - } else if ("enableBidirectional".equals(fieldName)) { - deserializedWebSocketMediaStreamingOptions.enableBidirectional - = reader.getNullable(JsonReader::getBoolean); - } else if ("audioFormat".equals(fieldName)) { - deserializedWebSocketMediaStreamingOptions.audioFormat - = AudioFormatInternal.fromString(reader.getString()); - } else if ("enableDtmfTones".equals(fieldName)) { - deserializedWebSocketMediaStreamingOptions.enableDtmfTones - = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedWebSocketMediaStreamingOptions; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptionsInternal.java index c52f1143cd93..2f825022d5d8 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptionsInternal.java @@ -18,7 +18,7 @@ public final class WebSocketMediaStreamingOptionsInternal extends MediaStreaming /* * Defines the transport type used for streaming. Note that future values may be introduced that are not currently documented. */ - private StreamingTransportType transportType = StreamingTransportType.WEBSOCKET; + private StreamingTransportTypeInternal transportType = StreamingTransportTypeInternal.WEBSOCKET; /* * The transport URL for media streaming. @@ -63,7 +63,7 @@ public WebSocketMediaStreamingOptionsInternal() { * @return the transportType value. */ @Override - public StreamingTransportType getTransportType() { + public StreamingTransportTypeInternal getTransportType() { return this.transportType; } @@ -241,7 +241,7 @@ public static WebSocketMediaStreamingOptionsInternal fromJson(JsonReader jsonRea .setAudioChannelType(MediaStreamingAudioChannelTypeInternal.fromString(reader.getString())); } else if ("transportType".equals(fieldName)) { deserializedWebSocketMediaStreamingOptionsInternal.transportType - = StreamingTransportType.fromString(reader.getString()); + = StreamingTransportTypeInternal.fromString(reader.getString()); } else if ("transportUrl".equals(fieldName)) { deserializedWebSocketMediaStreamingOptionsInternal.transportUrl = reader.getString(); } else if ("contentType".equals(fieldName)) { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptions.java deleted file mode 100644 index 8d0db227fbe0..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptions.java +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.communication.callautomation.implementation.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Represents the options for WebSocket transport. - */ -@Fluent -public final class WebSocketTranscriptionOptions extends TranscriptionOptionsInternal { - /* - * Defines the transport type used for streaming. Note that future values may be introduced that are not currently documented. - */ - private StreamingTransportType transportType = StreamingTransportType.WEBSOCKET; - - /* - * The URL used for live transcription transport. - */ - private String transportUrl; - - /* - * The ID of the deployed custom model in GUID format. The GUID is generated by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. - */ - private String speechModelEndpointId; - - /* - * Indicates whether the transcription should start immediately after the call is answered. - */ - private Boolean startTranscription; - - /* - * Enables intermediate results for the transcribed speech. - */ - private Boolean enableIntermediateResults; - - /** - * Creates an instance of WebSocketTranscriptionOptions class. - */ - public WebSocketTranscriptionOptions() { - } - - /** - * Get the transportType property: Defines the transport type used for streaming. Note that future values may be - * introduced that are not currently documented. - * - * @return the transportType value. - */ - @Override - public StreamingTransportType getTransportType() { - return this.transportType; - } - - /** - * Get the transportUrl property: The URL used for live transcription transport. - * - * @return the transportUrl value. - */ - public String getTransportUrl() { - return this.transportUrl; - } - - /** - * Set the transportUrl property: The URL used for live transcription transport. - * - * @param transportUrl the transportUrl value to set. - * @return the WebSocketTranscriptionOptions object itself. - */ - public WebSocketTranscriptionOptions setTransportUrl(String transportUrl) { - this.transportUrl = transportUrl; - return this; - } - - /** - * Get the speechModelEndpointId property: The ID of the deployed custom model in GUID format. The GUID is generated - * by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. - * - * @return the speechModelEndpointId value. - */ - public String getSpeechModelEndpointId() { - return this.speechModelEndpointId; - } - - /** - * Set the speechModelEndpointId property: The ID of the deployed custom model in GUID format. The GUID is generated - * by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. - * - * @param speechModelEndpointId the speechModelEndpointId value to set. - * @return the WebSocketTranscriptionOptions object itself. - */ - public WebSocketTranscriptionOptions setSpeechModelEndpointId(String speechModelEndpointId) { - this.speechModelEndpointId = speechModelEndpointId; - return this; - } - - /** - * Get the startTranscription property: Indicates whether the transcription should start immediately after the call - * is answered. - * - * @return the startTranscription value. - */ - public Boolean isStartTranscription() { - return this.startTranscription; - } - - /** - * Set the startTranscription property: Indicates whether the transcription should start immediately after the call - * is answered. - * - * @param startTranscription the startTranscription value to set. - * @return the WebSocketTranscriptionOptions object itself. - */ - public WebSocketTranscriptionOptions setStartTranscription(Boolean startTranscription) { - this.startTranscription = startTranscription; - return this; - } - - /** - * Get the enableIntermediateResults property: Enables intermediate results for the transcribed speech. - * - * @return the enableIntermediateResults value. - */ - public Boolean isEnableIntermediateResults() { - return this.enableIntermediateResults; - } - - /** - * Set the enableIntermediateResults property: Enables intermediate results for the transcribed speech. - * - * @param enableIntermediateResults the enableIntermediateResults value to set. - * @return the WebSocketTranscriptionOptions object itself. - */ - public WebSocketTranscriptionOptions setEnableIntermediateResults(Boolean enableIntermediateResults) { - this.enableIntermediateResults = enableIntermediateResults; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public WebSocketTranscriptionOptions setLocale(String locale) { - super.setLocale(locale); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("locale", getLocale()); - jsonWriter.writeStringField("transportType", this.transportType == null ? null : this.transportType.toString()); - jsonWriter.writeStringField("transportUrl", this.transportUrl); - jsonWriter.writeStringField("speechModelEndpointId", this.speechModelEndpointId); - jsonWriter.writeBooleanField("startTranscription", this.startTranscription); - jsonWriter.writeBooleanField("enableIntermediateResults", this.enableIntermediateResults); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of WebSocketTranscriptionOptions from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of WebSocketTranscriptionOptions if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the WebSocketTranscriptionOptions. - */ - public static WebSocketTranscriptionOptions fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - WebSocketTranscriptionOptions deserializedWebSocketTranscriptionOptions - = new WebSocketTranscriptionOptions(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("locale".equals(fieldName)) { - deserializedWebSocketTranscriptionOptions.setLocale(reader.getString()); - } else if ("transportType".equals(fieldName)) { - deserializedWebSocketTranscriptionOptions.transportType - = StreamingTransportType.fromString(reader.getString()); - } else if ("transportUrl".equals(fieldName)) { - deserializedWebSocketTranscriptionOptions.transportUrl = reader.getString(); - } else if ("speechModelEndpointId".equals(fieldName)) { - deserializedWebSocketTranscriptionOptions.speechModelEndpointId = reader.getString(); - } else if ("startTranscription".equals(fieldName)) { - deserializedWebSocketTranscriptionOptions.startTranscription - = reader.getNullable(JsonReader::getBoolean); - } else if ("enableIntermediateResults".equals(fieldName)) { - deserializedWebSocketTranscriptionOptions.enableIntermediateResults - = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedWebSocketTranscriptionOptions; - }); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptionsInternal.java index 8257bf7ff4ea..07a3ee543a5d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptionsInternal.java @@ -18,7 +18,7 @@ public final class WebSocketTranscriptionOptionsInternal extends TranscriptionOp /* * Defines the transport type used for streaming. Note that future values may be introduced that are not currently documented. */ - private StreamingTransportType transportType = StreamingTransportType.WEBSOCKET; + private StreamingTransportTypeInternal transportType = StreamingTransportTypeInternal.WEBSOCKET; /* * The URL used for live transcription transport. @@ -53,7 +53,7 @@ public WebSocketTranscriptionOptionsInternal() { * @return the transportType value. */ @Override - public StreamingTransportType getTransportType() { + public StreamingTransportTypeInternal getTransportType() { return this.transportType; } @@ -186,7 +186,7 @@ public static WebSocketTranscriptionOptionsInternal fromJson(JsonReader jsonRead deserializedWebSocketTranscriptionOptionsInternal.setLocale(reader.getString()); } else if ("transportType".equals(fieldName)) { deserializedWebSocketTranscriptionOptionsInternal.transportType - = StreamingTransportType.fromString(reader.getString()); + = StreamingTransportTypeInternal.fromString(reader.getString()); } else if ("transportUrl".equals(fieldName)) { deserializedWebSocketTranscriptionOptionsInternal.transportUrl = reader.getString(); } else if ("speechModelEndpointId".equals(fieldName)) { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java index 2535d2bc2e83..74ed75b9b16a 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java @@ -16,12 +16,12 @@ public final class MediaStreamingOptions { /* * The type of transport to be used for media streaming, eg. Websocket */ - private final MediaStreamingTransport transportType; + private final StreamingTransport transportType; /* * Content type to stream, eg. audio, audio/video */ - private final MediaStreamingContent contentType; + private MediaStreamingContent contentType; /* * Audio channel type to stream, eg. unmixed audio, mixed audio @@ -31,7 +31,7 @@ public final class MediaStreamingOptions { /* * The type of transport to be used for media streaming, eg. Websocket */ - private final Boolean startMediaStreaming; + private Boolean startMediaStreaming; /* * A value indicating whether bidirectional streaming is enabled. @@ -43,21 +43,22 @@ public final class MediaStreamingOptions { */ private AudioFormat audioFormat; + /* + * A value that indicates whether to stream the DTMF tones. + */ + private Boolean enableDtmfTones; + /** - * Creates a new instance of MediaStreamingConfiguration + * Creates a new instance of MediaStreamingOptions * @param transportUrl - The Transport URL - * @param transportType - Transport type - * @param contentType - Content Type * @param audioChannelType - Audio Channel Type - * @param startMediaStreaming - Start media streaming flag */ - public MediaStreamingOptions(String transportUrl, MediaStreamingTransport transportType, - MediaStreamingContent contentType, MediaStreamingAudioChannel audioChannelType, Boolean startMediaStreaming) { + public MediaStreamingOptions(String transportUrl, MediaStreamingAudioChannel audioChannelType) { this.transportUrl = transportUrl; - this.transportType = transportType; - this.contentType = contentType; + this.transportType = StreamingTransport.WEBSOCKET; + this.contentType = MediaStreamingContent.AUDIO; this.audioChannelType = audioChannelType; - this.startMediaStreaming = startMediaStreaming; + this.startMediaStreaming = false; } /** @@ -74,7 +75,7 @@ public String getTransportUrl() { * * @return the transportType value. */ - public MediaStreamingTransport getTransportType() { + public StreamingTransport getTransportType() { return this.transportType; } @@ -105,6 +106,59 @@ public MediaStreamingAudioChannel getAudioChannelType() { return this.audioChannelType; } + /** + * Set the contentType property: The contentType property. + * + * @param contentType the contentType value to set. + * @return the MediaStreamingOptions object itself. + */ + public MediaStreamingOptions setContentType(MediaStreamingContent contentType) { + this.contentType = contentType; + return this; + } + + /** + * Get the startMediaStreaming property: A value indicating whether the media streaming should start immediately + * after the call is answered. + * + * @return the startMediaStreaming value. + */ + public Boolean isStartMediaStreaming() { + return this.startMediaStreaming; + } + + /** + * Set the startMediaStreaming property: A value indicating whether the media streaming should start immediately + * after the call is answered. + * + * @param startMediaStreaming the startMediaStreaming value to set. + * @return the MediaStreamingOptions object itself. + */ + public MediaStreamingOptions setStartMediaStreaming(Boolean startMediaStreaming) { + this.startMediaStreaming = startMediaStreaming; + return this; + } + + /** + * Get the enableDtmfTones property: A value that indicates whether to stream the DTMF tones. + * + * @return the enableDtmfTones value. + */ + public Boolean isEnableDtmfTones() { + return this.enableDtmfTones; + } + + /** + * Set the enableDtmfTones property: A value that indicates whether to stream the DTMF tones. + * + * @param enableDtmfTones the enableDtmfTones value to set. + * @return the MediaStreamingOptions object itself. + */ + public MediaStreamingOptions setEnableDtmfTones(Boolean enableDtmfTones) { + this.enableDtmfTones = enableDtmfTones; + return this; + } + /** * Get the enableBidirectional property: A value indicating whether bidirectional streaming is enabled. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportType.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingTransport.java similarity index 60% rename from sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportType.java rename to sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingTransport.java index 0837ae91d9a1..2b0f953af6bb 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportType.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingTransport.java @@ -1,8 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.communication.callautomation.implementation.models; +package com.azure.communication.callautomation.models; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -11,11 +10,11 @@ * Defines the transport type used for streaming. Note that future values may be introduced that are not currently * documented. */ -public final class StreamingTransportType extends ExpandableStringEnum { +public final class StreamingTransport extends ExpandableStringEnum { /** * Static value websocket for StreamingTransportType. */ - public static final StreamingTransportType WEBSOCKET = fromString("websocket"); + public static final StreamingTransport WEBSOCKET = fromString("websocket"); /** * Creates a new instance of StreamingTransportType value. @@ -23,7 +22,7 @@ public final class StreamingTransportType extends ExpandableStringEnum values() { - return values(StreamingTransportType.class); + public static Collection values() { + return values(StreamingTransport.class); } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java index 3a36ba2faae8..0656b35fa1a1 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java @@ -3,6 +3,7 @@ package com.azure.communication.callautomation.models; +import com.azure.communication.callautomation.implementation.models.WebSocketTranscriptionOptionsInternal; import com.azure.core.annotation.Fluent; /** The TranscriptionOptions model. */ @@ -16,7 +17,7 @@ public final class TranscriptionOptions { /* * The type of transport to be used for live transcription, eg. Websocket */ - private final TranscriptionTransport transportType; + private final StreamingTransport transportType; /* * Defines the locale for the data e.g en-CA, en-AU @@ -26,7 +27,7 @@ public final class TranscriptionOptions { /* * Determines if the transcription should be started immediately after call is answered or not. */ - private final boolean startTranscription; + private boolean startTranscription; /* * Endpoint where the custom model was deployed. @@ -45,12 +46,11 @@ public final class TranscriptionOptions { * @param locale - Locale * @param startTranscription - Start Transcription */ - public TranscriptionOptions(String transportUrl, TranscriptionTransport transportType, String locale, - boolean startTranscription) { + public TranscriptionOptions(String transportUrl, String locale) { this.transportUrl = transportUrl; - this.transportType = transportType; + this.transportType = StreamingTransport.WEBSOCKET; this.locale = locale; - this.startTranscription = startTranscription; + this.startTranscription = false; } /** @@ -67,7 +67,7 @@ public String getTransportUrl() { * * @return the transportType value. */ - public TranscriptionTransport getTransportType() { + public StreamingTransport getTransportType() { return this.transportType; } @@ -89,6 +89,28 @@ public boolean getStartTranscription() { return this.startTranscription; } + /** + * Get the startTranscription property: Indicates whether the transcription should start immediately after the call + * is answered. + * + * @return the startTranscription value. + */ + public Boolean isStartTranscription() { + return this.startTranscription; + } + + /** + * Set the startTranscription property: Indicates whether the transcription should start immediately after the call + * is answered. + * + * @param startTranscription the startTranscription value to set. + * @return the TranscriptionOptions object itself. + */ + public TranscriptionOptions setStartTranscription(Boolean startTranscription) { + this.startTranscription = startTranscription; + return this; + } + /** * Get the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionTransport.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionTransport.java deleted file mode 100644 index 65f40ca535d2..000000000000 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionTransport.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.communication.callautomation.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The type of transport to be used for live transcription, eg. Websocket. - */ -public final class TranscriptionTransport extends ExpandableStringEnum { - /** - * Static value websocket for TranscriptionTransportType. - */ - public static final TranscriptionTransport WEBSOCKET = fromString("websocket"); - - /** - * Creates a new instance of TranscriptionTransportType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public TranscriptionTransport() { - } - - /** - * Creates or finds a TranscriptionTransportType from its string representation. - * - * @param name a name to look for. - * @return the corresponding TranscriptionTransportType. - */ - public static TranscriptionTransport fromString(String name) { - return fromString(name, TranscriptionTransport.class); - } - - /** - * Gets known TranscriptionTransportType values. - * - * @return known TranscriptionTransportType values. - */ - public static Collection values() { - return values(TranscriptionTransport.class); - } -} diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java index 44909bb61c51..8c8e1608a475 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java @@ -28,7 +28,7 @@ import com.azure.communication.callautomation.models.MediaStreamingContent; import com.azure.communication.callautomation.models.MediaStreamingTransport; import com.azure.communication.callautomation.models.TranscriptionOptions; -import com.azure.communication.callautomation.models.TranscriptionTransport; +import com.azure.communication.callautomation.models.StreamingTransport; import com.azure.communication.common.CommunicationUserIdentifier; import com.azure.core.http.HttpClient; import com.azure.core.http.HttpHeaders; @@ -63,11 +63,11 @@ public class CallAutomationUnitTestBase { static final String BOT_APP_ID = "botAppId"; static final MediaStreamingOptions MEDIA_STREAMING_CONFIGURATION - = new MediaStreamingOptions("https://websocket.url.com", MediaStreamingTransport.WEBSOCKET, - MediaStreamingContent.AUDIO, MediaStreamingAudioChannel.MIXED, true); + = new MediaStreamingOptions("https://websocket.url.com", MediaStreamingAudioChannel.MIXED) + .setStartMediaStreaming(true); static final TranscriptionOptions TRANSCRIPTION_CONFIGURATION - = new TranscriptionOptions("https://websocket.url.com", TranscriptionTransport.WEBSOCKET, "en-US", true); + = new TranscriptionOptions("https://websocket.url.com", "en-US").setStartTranscription(true); public static String generateDownloadResult(String content) { return content; diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java index 7476ad4af5c5..e340f1a2dc30 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java @@ -32,7 +32,7 @@ import com.azure.communication.callautomation.models.StopMediaStreamingOptions; import com.azure.communication.callautomation.models.StartTranscriptionOptions; import com.azure.communication.callautomation.models.StopTranscriptionOptions; -import com.azure.communication.callautomation.models.TranscriptionTransport; +import com.azure.communication.callautomation.models.StreamingTransport; import com.azure.communication.callautomation.models.events.MediaStreamingStarted; import com.azure.communication.callautomation.models.events.MediaStreamingStopped; import com.azure.communication.callautomation.models.events.TranscriptionStarted; @@ -425,8 +425,7 @@ public void createVOIPCallAndMediaStreamingTest(HttpClient httpClient) { // create options List targets = new ArrayList<>(Collections.singletonList(target)); MediaStreamingOptions mediaStreamingOptions - = new MediaStreamingOptions(TRANSPORT_URL, MediaStreamingTransport.WEBSOCKET, - MediaStreamingContent.AUDIO, MediaStreamingAudioChannel.MIXED, false); + = new MediaStreamingOptions(TRANSPORT_URL, MediaStreamingAudioChannel.MIXED); CreateGroupCallOptions createCallOptions = new CreateGroupCallOptions(targets, DISPATCHER_CALLBACK + String.format("?q=%s", uniqueId)); @@ -541,8 +540,7 @@ public void createVOIPCallAndTranscriptionTest(HttpClient httpClient) { // create a call List targets = new ArrayList<>(Collections.singletonList(target)); - TranscriptionOptions transcriptionOptions - = new TranscriptionOptions(TRANSPORT_URL, TranscriptionTransport.WEBSOCKET, "en-US", false); + TranscriptionOptions transcriptionOptions = new TranscriptionOptions(TRANSPORT_URL, "en-US"); CreateGroupCallOptions createCallOptions = new CreateGroupCallOptions(targets, DISPATCHER_CALLBACK + String.format("?q=%s", uniqueId)); createCallOptions.setTranscriptionOptions(transcriptionOptions); diff --git a/sdk/communication/azure-communication-callautomation/swagger/README.md b/sdk/communication/azure-communication-callautomation/swagger/README.md index 6ba3fdd90494..f2fd0fe7bb04 100644 --- a/sdk/communication/azure-communication-callautomation/swagger/README.md +++ b/sdk/communication/azure-communication-callautomation/swagger/README.md @@ -417,24 +417,14 @@ directive: $.name = "MediaStreamingContentTypeInternal"; ``` -### Rename MediaStreamingTransportType to MediaStreamingTransportTypeInternal +### Rename StreamingTransportType to StreamingTransportTypeInternal ``` yaml directive: - from: swagger-document - where: $.definitions.MediaStreamingTransportType["x-ms-enum"] + where: $.definitions.StreamingTransportType["x-ms-enum"] transform: > - $.name = "MediaStreamingTransportTypeInternal"; -``` - -### Rename TranscriptionTransportType to TranscriptionTransportTypeInternal - -``` yaml -directive: -- from: swagger-document - where: $.definitions.TranscriptionTransportType["x-ms-enum"] - transform: > - $.name = "TranscriptionTransportTypeInternal"; + $.name = "StreamingTransportTypeInternal"; ``` ### Rename RecognitionType to RecognitionTypeInternal From cf508ed40cf2fef11d9e87351425ef8d9802d314 Mon Sep 17 00:00:00 2001 From: v-pivamshi <155710746+v-pivamshi@users.noreply.github.com> Date: Wed, 21 May 2025 18:29:44 +0530 Subject: [PATCH 05/31] Added the parser for the dtmf data. (#45347) * Added the parser for the dtmf data. * Removed dtmf meta data. --------- Co-authored-by: Vinothini Dharmaraj --- .../DtmfDataContructorProxy.java | 86 ++++++++++++++ .../converters/DtmfDataConverter.java | 87 ++++++++++++++ .../TranscriptionMetadataConverter.java | 16 +++ .../callautomation/models/DtmfData.java | 106 ++++++++++++++++++ .../callautomation/models/StreamingData.java | 7 ++ .../models/StreamingDataKind.java | 8 +- .../models/TranscriptionMetadata.java | 16 +++ 7 files changed, 325 insertions(+), 1 deletion(-) create mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DtmfDataContructorProxy.java create mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/DtmfDataConverter.java create mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DtmfDataContructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DtmfDataContructorProxy.java new file mode 100644 index 000000000000..6e33f9a6aef1 --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DtmfDataContructorProxy.java @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.communication.callautomation.implementation.accesshelpers; + +import com.azure.communication.callautomation.implementation.converters.DtmfDataConverter; +import com.azure.communication.callautomation.models.DtmfData; + +/** + * Helper class to access private values of {@link DtmdfData} across package boundaries. + */ +public final class DtmfDataContructorProxy { + private static DtmfDataContructorProxyAccessor accessor; + + private DtmfDataContructorProxy() { + } + + /** + * Type defining the methods to set the non-public properties of a {@link DtmfDataContructorProxyAccessor} + * instance. + */ + public interface DtmfDataContructorProxyAccessor { + /** + * Creates a new instance of {@link DtmfData} backed by an internal instance of + * {@link DtmfDataConvertor}. + * + * @param internalResponse The internal response. + * @return A new instance of {@link DtmfData}. + */ + DtmfData create(DtmfDataConverter internalResponse); + + /** + * Creates a new instance of {@link DtmfData} + * + * @param data The internal response. + * @return A new instance of {@link DtmfData}. + */ + DtmfData create(String data); + } + + /** + * The method called from {@link DtmfData} to set it's accessor. + * + * @param accessor The accessor. + */ + public static void setAccessor(final DtmfDataContructorProxyAccessor accessor) { + DtmfDataContructorProxy.accessor = accessor; + } + + /** + * Creates a new instance of {@link DtmfData} backed by an internal instance of + * {@link DtmfDataConverter}. + * + * @param internalResponse The internal response. + * @return A new instance of {@link DtmfData}. + */ + public static DtmfData create(DtmfDataConverter internalResponse) { + // This looks odd but is necessary, it is possible to engage the access helper before anywhere else in the + // application accesses DtmfData which triggers the accessor to be configured. So, if the accessor + // is null this effectively pokes the class to set up the accessor. + if (accessor == null) { + new DtmfData(); + } + + assert accessor != null; + return accessor.create(internalResponse); + } + + /** + * Creates a new instance of {@link DtmfData} + * + * @param data The dtmf data. + * @return A new instance of {@link DtmfData}. + */ + public static DtmfData create(String data) { + // This looks odd but is necessary, it is possible to engage the access helper before anywhere else in the + // application accesses DtmfData which triggers the accessor to be configured. So, if the accessor + // is null this effectively pokes the class to set up the accessor. + if (accessor == null) { + new DtmfData(); + } + + assert accessor != null; + return accessor.create(data); + } +} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/DtmfDataConverter.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/DtmfDataConverter.java new file mode 100644 index 000000000000..f6e219c41bac --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/DtmfDataConverter.java @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.communication.callautomation.implementation.converters; + +import java.io.IOException; + +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; + +/** The DtmfDataInternal model. */ +public final class DtmfDataConverter { + + /* + * The dtmf data. + */ + private String data; + + /* + * The timestamp of when the media was sourced. + */ + private String timestamp; + + /* + * The participantId. + */ + private String participantRawID; + + /** + * Get the data property. + * + * @return the data value. + */ + public String getData() { + return data; + } + + /** + * Get the timestamp property. + * + * @return the timestamp value. + */ + public String getTimestamp() { + return timestamp; + } + + /** + * Get the participantRawID property. + * + * @return the participantRawID value. + */ + public String getParticipantRawID() { + return participantRawID; + } + + /** + * Reads an instance of DtmfMetadataConverter from the JsonReader. + *

+ * Note: DtmfDataConverter does not have to implement JsonSerializable, model is only used in deserialization + * context internally by {@link StreamingDataParser} and not serialized. + *

+ * @param jsonReader The JsonReader being read. + * @return An instance of FileSource if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the FileSource. + */ + public static DtmfDataConverter fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + final DtmfDataConverter converter = new DtmfDataConverter(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("data".equals(fieldName)) { + converter.data = reader.getString(); + } else if ("timestamp".equals(fieldName)) { + converter.timestamp = reader.getString(); + } else if ("participantRawID".equals(fieldName)) { + converter.participantRawID = reader.getString(); + } else { + reader.skipChildren(); + } + } + return converter; + }); + } +} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/TranscriptionMetadataConverter.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/TranscriptionMetadataConverter.java index c72cd3778ab0..0ebf2f139577 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/TranscriptionMetadataConverter.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/converters/TranscriptionMetadataConverter.java @@ -33,6 +33,11 @@ public final class TranscriptionMetadataConverter { */ private String correlationId; + /* + * The custom speech recognition model endpoint id + */ + private String speechRecognitionModelEndpointId; + /** * Get the transcriptionSubscriptionId property. * @@ -69,6 +74,15 @@ public String getCorrelationId() { return correlationId; } + /** + * Get the speechRecognitionModelEndpointId property. + * + * @return the speechRecognitionModelEndpointId value. + */ + public String getSpeechRecognitionModelEndpointId() { + return speechRecognitionModelEndpointId; + } + /** * Reads an instance of TranscriptionMetadataConverter from the JsonReader. *

@@ -94,6 +108,8 @@ public static TranscriptionMetadataConverter fromJson(JsonReader jsonReader) thr converter.callConnectionId = reader.getString(); } else if ("correlationId".equals(fieldName)) { converter.correlationId = reader.getString(); + } else if ("speechRecognitionModelEndpointId".equals(fieldName)) { + converter.speechRecognitionModelEndpointId = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java new file mode 100644 index 000000000000..7c9f1ba2f8d0 --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.communication.callautomation.models; + +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; + +import com.azure.communication.callautomation.implementation.accesshelpers.DtmfDataContructorProxy; +import com.azure.communication.callautomation.implementation.converters.DtmfDataConverter; +import com.azure.communication.common.CommunicationIdentifier; + +/** The dtmf data model. */ +public final class DtmfData extends StreamingData { + /* + * The dtmf data. + */ + private final String data; + + /* + * The timestamp indicating when the media content was received by the bot, or if the bot is sending media, + * the timestamp of when the media was sourced. The format is ISO 8601 (yyyy-mm-ddThh:mm) + */ + private final OffsetDateTime timestamp; + + /* + * The raw ID of the participant. + */ + private final CommunicationIdentifier participant; + + static { + DtmfDataContructorProxy.setAccessor(new DtmfDataContructorProxy.DtmfDataContructorProxyAccessor() { + @Override + public DtmfData create(DtmfDataConverter internalData) { + return new DtmfData(internalData); + } + + @Override + public DtmfData create(String data) { + return new DtmfData(data); + } + }); + } + + /** + * Package-private constructor of the class, used internally. + * + * @param internalData The DtmfDataconvertor + */ + DtmfData(DtmfDataConverter internalData) { + this.data = internalData.getData(); + this.timestamp = OffsetDateTime.parse(internalData.getTimestamp(), DateTimeFormatter.ISO_OFFSET_DATE_TIME); + if (internalData.getParticipantRawID() != null && !internalData.getParticipantRawID().isEmpty()) { + this.participant = CommunicationIdentifier.fromRawId(internalData.getParticipantRawID()); + } else { + participant = null; + } + } + + /** + * The constructor + */ + public DtmfData() { + this.data = null; + this.timestamp = null; + this.participant = null; + } + + /** + * The constructor + * + * @param data The dtmf data. + */ + DtmfData(String data) { + this.data = data; + this.timestamp = null; + this.participant = null; + } + + /** + * Get the data property. + * + * @return the data value. + */ + public String getData() { + return data; + } + + /** + * Get the timestamp property. + * + * @return the timestamp value. + */ + public OffsetDateTime getTimestamp() { + return timestamp; + } + + /** + * Get the participantRawID property. + * + * @return the participantRawID value. + */ + public CommunicationIdentifier getParticipant() { + return participant; + } +} diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java index 0f4ad5147b92..7eb22b75d03d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java @@ -7,10 +7,12 @@ import com.azure.communication.callautomation.implementation.accesshelpers.AudioDataContructorProxy; import com.azure.communication.callautomation.implementation.accesshelpers.AudioMetadataContructorProxy; +import com.azure.communication.callautomation.implementation.accesshelpers.DtmfDataContructorProxy; import com.azure.communication.callautomation.implementation.accesshelpers.TranscriptionDataContructorProxy; import com.azure.communication.callautomation.implementation.accesshelpers.TranscriptionMetadataContructorProxy; import com.azure.communication.callautomation.implementation.converters.AudioDataConverter; import com.azure.communication.callautomation.implementation.converters.AudioMetadataConverter; +import com.azure.communication.callautomation.implementation.converters.DtmfDataConverter; import com.azure.communication.callautomation.implementation.converters.TranscriptionDataConverter; import com.azure.communication.callautomation.implementation.converters.TranscriptionMetadataConverter; import com.azure.json.JsonProviders; @@ -96,6 +98,11 @@ private static StreamingData parseStreamingData(String data) { audioMetadata.setStreamingDataKind(StreamingDataKind.AUDIO_METADATA); return audioMetadata; + case "dtmfData": + DtmfData dtmfData = DtmfDataContructorProxy.create(DtmfDataConverter.fromJson(jsonReader)); + dtmfData.setStreamingDataKind(StreamingDataKind.DTMF_DATA); + return dtmfData; + case "transcriptionData": TranscriptionData transcriptionData = TranscriptionDataContructorProxy .create(TranscriptionDataConverter.fromJson(jsonReader)); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingDataKind.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingDataKind.java index e99f64371f53..6aa0da8d9cac 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingDataKind.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingDataKind.java @@ -3,9 +3,10 @@ package com.azure.communication.callautomation.models; -import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; +import com.azure.core.util.ExpandableStringEnum; + /** * Specifies the streaming data kind */ @@ -20,6 +21,11 @@ public final class StreamingDataKind extends ExpandableStringEnum Date: Wed, 21 May 2025 06:02:56 -0700 Subject: [PATCH 06/31] updating the white space difference --- .../java/com/azure/communication/callautomation/CallMedia.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java index c43b4dc95286..f988acde11dc 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMedia.java @@ -319,7 +319,7 @@ public Response stopTranscriptionWithResponse(StopTranscriptionOptions opt public void updateTranscription(String locale) { callMediaAsync.updateTranscription(locale).block(); } - + /** * Updates transcription language in the call. *@param options Options for the Update Transcription operation. From a34f37214c1bc6422a6a1dc71975476c17b2bea4 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Wed, 21 May 2025 06:58:33 -0700 Subject: [PATCH 07/31] addressing the arb comments --- .../callautomation/models/AudioData.java | 3 +++ .../callautomation/models/AudioMetadata.java | 2 ++ .../callautomation/models/DtmfData.java | 3 +++ .../callautomation/models/StreamingData.java | 17 ++--------------- .../models/TranscriptionData.java | 2 ++ .../models/TranscriptionMetadata.java | 2 ++ 6 files changed, 14 insertions(+), 15 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java index ee2c65c77f77..69944f0b144a 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java @@ -54,6 +54,7 @@ public AudioData create(BinaryData data) { * @param internalData The audiodataconvertor */ AudioData(AudioDataConverter internalData) { + super(StreamingDataKind.AUDIO_DATA); this.data = BinaryData.fromString(internalData.getData()); this.timestamp = OffsetDateTime.parse(internalData.getTimestamp(), DateTimeFormatter.ISO_OFFSET_DATE_TIME); if (internalData.getParticipantRawID() != null && !internalData.getParticipantRawID().isEmpty()) { @@ -68,6 +69,7 @@ public AudioData create(BinaryData data) { * The constructor */ public AudioData() { + super(StreamingDataKind.AUDIO_DATA); this.data = null; this.timestamp = null; this.participant = null; @@ -80,6 +82,7 @@ public AudioData() { * @param data The audio data. */ AudioData(BinaryData data) { + super(StreamingDataKind.AUDIO_DATA); this.data = data; this.timestamp = null; this.participant = null; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java index 95637f0c29e0..21189f1d18a4 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java @@ -48,6 +48,7 @@ public AudioMetadata create(AudioMetadataConverter internalData) { * @param internalData The audiodataconvertor */ AudioMetadata(AudioMetadataConverter internalData) { + super(StreamingDataKind.AUDIO_METADATA); this.mediaSubscriptionId = internalData.getMediaSubscriptionId(); this.encoding = internalData.getEncoding(); this.sampleRate = internalData.getSampleRate(); @@ -58,6 +59,7 @@ public AudioMetadata create(AudioMetadataConverter internalData) { * Creats the audiometadata instance */ public AudioMetadata() { + super(StreamingDataKind.AUDIO_METADATA); this.mediaSubscriptionId = null; this.encoding = null; this.sampleRate = null; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java index 7c9f1ba2f8d0..b71f39f392dc 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java @@ -48,6 +48,7 @@ public DtmfData create(String data) { * @param internalData The DtmfDataconvertor */ DtmfData(DtmfDataConverter internalData) { + super(StreamingDataKind.DTMF_DATA); this.data = internalData.getData(); this.timestamp = OffsetDateTime.parse(internalData.getTimestamp(), DateTimeFormatter.ISO_OFFSET_DATE_TIME); if (internalData.getParticipantRawID() != null && !internalData.getParticipantRawID().isEmpty()) { @@ -61,6 +62,7 @@ public DtmfData create(String data) { * The constructor */ public DtmfData() { + super(StreamingDataKind.DTMF_DATA); this.data = null; this.timestamp = null; this.participant = null; @@ -72,6 +74,7 @@ public DtmfData() { * @param data The dtmf data. */ DtmfData(String data) { + super(StreamingDataKind.DTMF_DATA); this.data = data; this.timestamp = null; this.participant = null; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java index 7eb22b75d03d..388de87c6164 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java @@ -27,7 +27,8 @@ public abstract class StreamingData { /** * Creates an instance of {@link StreamingData}. */ - StreamingData() { + public StreamingData(StreamingDataKind streamingDataKind) { + this.streamingDataKind = streamingDataKind; } /** @@ -39,15 +40,6 @@ public StreamingDataKind getStreamingDataKind() { return streamingDataKind; } - /** - * Set the streaming data kind. - * - * @param streamingDataKind the kind of streaming data. - */ - protected void setStreamingDataKind(StreamingDataKind streamingDataKind) { - this.streamingDataKind = streamingDataKind; - } - /** * Parses a base64 encoded string into a StreamingData object, * which can be one of the following subtypes: AudioData, AudioMetadata, TranscriptionData, or TranscriptionMetadata. @@ -89,30 +81,25 @@ private static StreamingData parseStreamingData(String data) { case "audioData": AudioData audioData = AudioDataContructorProxy.create(AudioDataConverter.fromJson(jsonReader)); - audioData.setStreamingDataKind(StreamingDataKind.AUDIO_DATA); return audioData; case "audioMetadata": AudioMetadata audioMetadata = AudioMetadataContructorProxy.create(AudioMetadataConverter.fromJson(jsonReader)); - audioMetadata.setStreamingDataKind(StreamingDataKind.AUDIO_METADATA); return audioMetadata; case "dtmfData": DtmfData dtmfData = DtmfDataContructorProxy.create(DtmfDataConverter.fromJson(jsonReader)); - dtmfData.setStreamingDataKind(StreamingDataKind.DTMF_DATA); return dtmfData; case "transcriptionData": TranscriptionData transcriptionData = TranscriptionDataContructorProxy .create(TranscriptionDataConverter.fromJson(jsonReader)); - transcriptionData.setStreamingDataKind(StreamingDataKind.TRANSCRIPTION_DATA); return transcriptionData; case "transcriptionMetadata": TranscriptionMetadata transcriptionMetadata = TranscriptionMetadataContructorProxy .create(TranscriptionMetadataConverter.fromJson(jsonReader)); - transcriptionMetadata.setStreamingDataKind(StreamingDataKind.TRANSCRIPTION_METADATA); return transcriptionMetadata; default: diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java index cb0d9145e64d..985fb64a0230 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java @@ -79,6 +79,7 @@ public TranscriptionData create(TranscriptionDataConverter internalData) { * @param internalData transcription internal data */ protected TranscriptionData(TranscriptionDataConverter internalData) { + super(StreamingDataKind.TRANSCRIPTION_DATA); this.text = internalData.getText(); this.format = convertToTextFormatEnum(internalData.getFormat()); this.confidence = internalData.getConfidence(); @@ -98,6 +99,7 @@ protected TranscriptionData(TranscriptionDataConverter internalData) { * Create instance of transcription data */ public TranscriptionData() { + super(StreamingDataKind.TRANSCRIPTION_DATA); this.text = null; this.format = null; this.confidence = null; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java index f2c5519da130..69e1fa3cb4fe 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java @@ -51,6 +51,7 @@ public TranscriptionMetadata create(TranscriptionMetadataConverter internalData) * @param internalData Transcription meta data internal. */ TranscriptionMetadata(TranscriptionMetadataConverter internalData) { + super(StreamingDataKind.TRANSCRIPTION_METADATA); this.transcriptionSubscriptionId = internalData.getTranscriptionSubscriptionId(); this.locale = internalData.getLocale(); this.callConnectionId = internalData.getCallConnectionId(); @@ -62,6 +63,7 @@ public TranscriptionMetadata create(TranscriptionMetadataConverter internalData) * Creates an instance of TranscriptionMetadata class. */ public TranscriptionMetadata() { + super(StreamingDataKind.TRANSCRIPTION_METADATA); this.transcriptionSubscriptionId = null; this.locale = null; this.callConnectionId = null; From 3beae7c7cfef437b613314c7f78ab7f5a20e91ba Mon Sep 17 00:00:00 2001 From: v-saasomani Date: Wed, 21 May 2025 16:26:35 -0700 Subject: [PATCH 08/31] GA5 Javadoc Issues (#45432) * Fixed Javadoc issues in StreamingData.java & TranscriptionOptions.java * Renamed MediaStreamingContent class to MediaStreamingContentType. Renamed getChannels() to getChannelType() in AudioMetaData.java --- .../callautomation/models/AudioMetadata.java | 2 +- ...nt.java => MediaStreamingContentType.java} | 18 ++++++------ .../models/MediaStreamingOptions.java | 28 +++++++++---------- .../models/MediaStreamingSubscription.java | 18 ++++++------ .../callautomation/models/StreamingData.java | 9 +++--- .../models/TranscriptionOptions.java | 14 ++++------ .../CallAutomationUnitTestBase.java | 2 +- .../CallMediaAsyncAutomatedLiveTests.java | 2 +- 8 files changed, 46 insertions(+), 47 deletions(-) rename sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/{MediaStreamingContent.java => MediaStreamingContentType.java} (58%) diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java index 21189f1d18a4..8d88583d0e7b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java @@ -102,7 +102,7 @@ public int getSampleRate() { * * @return the channels value. */ - public AudioChannelType getChannels() { + public AudioChannelType getChannelType() { return channels; } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingContent.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingContentType.java similarity index 58% rename from sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingContent.java rename to sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingContentType.java index bbc5f310f95a..82d231522207 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingContent.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingContentType.java @@ -9,17 +9,17 @@ import java.util.Collection; /** Defines values for MediaStreamingContentType. */ -public final class MediaStreamingContent extends ExpandableStringEnum { +public final class MediaStreamingContentType extends ExpandableStringEnum { /** Static value audio for MediaStreamingContentType. */ - public static final MediaStreamingContent AUDIO = fromString("audio"); + public static final MediaStreamingContentType AUDIO = fromString("audio"); /** - * Creates an instance of {@link MediaStreamingContent} with no string value. + * Creates an instance of {@link MediaStreamingContentType} with no string value. * - * @deprecated Please use {@link #fromString(String)} to create an instance of MediaStreamingContent. + * @deprecated Please use {@link #fromString(String)} to create an instance of MediaStreamingContentType. */ @Deprecated - public MediaStreamingContent() { + public MediaStreamingContentType() { } /** @@ -28,15 +28,15 @@ public MediaStreamingContent() { * @param name a name to look for. * @return the corresponding MediaStreamingContentType. */ - public static MediaStreamingContent fromString(String name) { - return fromString(name, MediaStreamingContent.class); + public static MediaStreamingContentType fromString(String name) { + return fromString(name, MediaStreamingContentType.class); } /** * Get the collection of MediaStreamingContentType values. * @return known MediaStreamingContentType values. */ - public static Collection values() { - return values(MediaStreamingContent.class); + public static Collection values() { + return values(MediaStreamingContentType.class); } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java index 74ed75b9b16a..760c0fcdfe1c 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java @@ -21,7 +21,7 @@ public final class MediaStreamingOptions { /* * Content type to stream, eg. audio, audio/video */ - private MediaStreamingContent contentType; + private MediaStreamingContentType contentType; /* * Audio channel type to stream, eg. unmixed audio, mixed audio @@ -56,7 +56,7 @@ public final class MediaStreamingOptions { public MediaStreamingOptions(String transportUrl, MediaStreamingAudioChannel audioChannelType) { this.transportUrl = transportUrl; this.transportType = StreamingTransport.WEBSOCKET; - this.contentType = MediaStreamingContent.AUDIO; + this.contentType = MediaStreamingContentType.AUDIO; this.audioChannelType = audioChannelType; this.startMediaStreaming = false; } @@ -84,13 +84,13 @@ public StreamingTransport getTransportType() { * * @return the contentType value. */ - public MediaStreamingContent getContentType() { + public MediaStreamingContentType getContentType() { return this.contentType; } /** * Get the startMediaStreaming property: Enables intermediate results for the transcribed speech. - * + * * @return the startMediaStreaming value. */ public Boolean isStartMediaStreamingEnabled() { @@ -108,11 +108,11 @@ public MediaStreamingAudioChannel getAudioChannelType() { /** * Set the contentType property: The contentType property. - * + * * @param contentType the contentType value to set. * @return the MediaStreamingOptions object itself. */ - public MediaStreamingOptions setContentType(MediaStreamingContent contentType) { + public MediaStreamingOptions setContentType(MediaStreamingContentType contentType) { this.contentType = contentType; return this; } @@ -120,7 +120,7 @@ public MediaStreamingOptions setContentType(MediaStreamingContent contentType) { /** * Get the startMediaStreaming property: A value indicating whether the media streaming should start immediately * after the call is answered. - * + * * @return the startMediaStreaming value. */ public Boolean isStartMediaStreaming() { @@ -130,7 +130,7 @@ public Boolean isStartMediaStreaming() { /** * Set the startMediaStreaming property: A value indicating whether the media streaming should start immediately * after the call is answered. - * + * * @param startMediaStreaming the startMediaStreaming value to set. * @return the MediaStreamingOptions object itself. */ @@ -141,7 +141,7 @@ public MediaStreamingOptions setStartMediaStreaming(Boolean startMediaStreaming) /** * Get the enableDtmfTones property: A value that indicates whether to stream the DTMF tones. - * + * * @return the enableDtmfTones value. */ public Boolean isEnableDtmfTones() { @@ -150,7 +150,7 @@ public Boolean isEnableDtmfTones() { /** * Set the enableDtmfTones property: A value that indicates whether to stream the DTMF tones. - * + * * @param enableDtmfTones the enableDtmfTones value to set. * @return the MediaStreamingOptions object itself. */ @@ -161,7 +161,7 @@ public MediaStreamingOptions setEnableDtmfTones(Boolean enableDtmfTones) { /** * Get the enableBidirectional property: A value indicating whether bidirectional streaming is enabled. - * + * * @return the enableBidirectional value. */ public Boolean isEnableBidirectional() { @@ -170,7 +170,7 @@ public Boolean isEnableBidirectional() { /** * Set the enableBidirectional property: A value indicating whether bidirectional streaming is enabled. - * + * * @param enableBidirectional the enableBidirectional value to set. * @return the MediaStreamingOptions object itself. */ @@ -182,7 +182,7 @@ public MediaStreamingOptions setEnableBidirectional(Boolean enableBidirectional) /** * Get the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel * type. - * + * * @return the audioFormat value. */ public AudioFormat getAudioFormat() { @@ -192,7 +192,7 @@ public AudioFormat getAudioFormat() { /** * Set the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel * type. - * + * * @param audioFormat the audioFormat value to set. * @return the MediaStreamingOptions object itself. */ diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingSubscription.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingSubscription.java index 6769eb5701d3..4cec4a411c6b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingSubscription.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingSubscription.java @@ -34,7 +34,7 @@ public final class MediaStreamingSubscription implements JsonSerializable subscribedContentTypes; + private List subscribedContentTypes; static { MediaStreamingSubscriptionConstructorProxy.setAccessor( @@ -69,14 +69,14 @@ public MediaStreamingSubscription() { this.subscribedContentTypes = mediaStreamingSubscriptionInternal.getSubscribedContentTypes() != null ? mediaStreamingSubscriptionInternal.getSubscribedContentTypes() .stream() - .map(contentType -> MediaStreamingContent.fromString(contentType.toString())) + .map(contentType -> MediaStreamingContentType.fromString(contentType.toString())) .collect(Collectors.toList()) : null; } /** * Get the id property: Gets or Sets subscription Id. - * + * * @return the id value. */ public String getId() { @@ -85,7 +85,7 @@ public String getId() { /** * Get the state property: Gets or Sets media streaming subscription state. - * + * * @return the state value. */ public MediaStreamingSubscriptionState getState() { @@ -94,10 +94,10 @@ public MediaStreamingSubscriptionState getState() { /** * Get the subscribedContentTypes property: Gets or Sets the subscribed media streaming content types. - * + * * @return the subscribedContentTypes value. */ - public List getSubscribedContentTypes() { + public List getSubscribedContentTypes() { return this.subscribedContentTypes; } @@ -113,7 +113,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { /** * Reads an instance of MediaStreamingSubscriptionInternal from the JsonReader. - * + * * @param jsonReader The JsonReader being read. * @return An instance of MediaStreamingSubscriptionInternal if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. @@ -132,8 +132,8 @@ public static MediaStreamingSubscription fromJson(JsonReader jsonReader) throws deserializedMediaStreamingSubscription.state = MediaStreamingSubscriptionState.fromString(reader.getString()); } else if ("subscribedContentTypes".equals(fieldName)) { - List subscribedContentTypes - = reader.readArray(reader1 -> MediaStreamingContent.fromString(reader1.getString())); + List subscribedContentTypes + = reader.readArray(reader1 -> MediaStreamingContentType.fromString(reader1.getString())); deserializedMediaStreamingSubscription.subscribedContentTypes = subscribedContentTypes; } else { reader.skipChildren(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java index 388de87c6164..26d47317ac13 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java @@ -26,6 +26,7 @@ public abstract class StreamingData { /** * Creates an instance of {@link StreamingData}. + * @param streamingDataKind The kind of streaming data. */ public StreamingData(StreamingDataKind streamingDataKind) { this.streamingDataKind = streamingDataKind; @@ -44,7 +45,7 @@ public StreamingDataKind getStreamingDataKind() { * Parses a base64 encoded string into a StreamingData object, * which can be one of the following subtypes: AudioData, AudioMetadata, TranscriptionData, or TranscriptionMetadata. * @param data The base64 string represents streaming data that will be converted into the appropriate subtype of StreamingData. - * @return StreamingData + * @return StreamingData * @throws RuntimeException Throws a RuntimeException if the provided base64 string does not correspond to a supported data type for the specified Kind. */ public static StreamingData parse(String data) { @@ -55,7 +56,7 @@ public static StreamingData parse(String data) { * Parses a base64 encoded string into a StreamingData object, * which can be one of the following subtypes: AudioData, AudioMetadata, TranscriptionData, or TranscriptionMetadata. * @param Subtypes of StreamingData ex. AudioData, AudioMetadata, TranscriptionData, TranscriptionMetadata - * @param data The base64 string represents streaming data that will be converted into the appropriate subtype of StreamingData. + * @param data The base64 string represents streaming data that will be converted into the appropriate subtype of StreamingData. * @param type type of the streamindata ex. AudioData, AudioMetadata, TranscriptionData, TranscriptionMetadata * @return Subtypes of StreamingData * @throws RuntimeException Throws a NotSupportedException if the provided base64 string does not correspond @@ -67,8 +68,8 @@ public static T parse(String data, Class type) { } /** - * - * @param data the base64 string + * + * @param data the base64 string * @return the StreamingData */ private static StreamingData parseStreamingData(String data) { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java index 0656b35fa1a1..dec78a4d3c56 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java @@ -42,9 +42,7 @@ public final class TranscriptionOptions { /** * Creates a new instance of MediaStreamingConfiguration * @param transportUrl - The Transport URL - * @param transportType - Transport type * @param locale - Locale - * @param startTranscription - Start Transcription */ public TranscriptionOptions(String transportUrl, String locale) { this.transportUrl = transportUrl; @@ -92,7 +90,7 @@ public boolean getStartTranscription() { /** * Get the startTranscription property: Indicates whether the transcription should start immediately after the call * is answered. - * + * * @return the startTranscription value. */ public Boolean isStartTranscription() { @@ -102,7 +100,7 @@ public Boolean isStartTranscription() { /** * Set the startTranscription property: Indicates whether the transcription should start immediately after the call * is answered. - * + * * @param startTranscription the startTranscription value to set. * @return the TranscriptionOptions object itself. */ @@ -113,7 +111,7 @@ public TranscriptionOptions setStartTranscription(Boolean startTranscription) { /** * Get the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed. - * + * * @return the speechRecognitionModelEndpointId value. */ public String getSpeechRecognitionModelEndpointId() { @@ -122,7 +120,7 @@ public String getSpeechRecognitionModelEndpointId() { /** * Set the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed. - * + * * @param speechRecognitionModelEndpointId the speechRecognitionModelEndpointId value to set. * @return the TranscriptionOptions object itself. */ @@ -133,7 +131,7 @@ public TranscriptionOptions setSpeechRecognitionModelEndpointId(String speechRec /** * Get the enableIntermediateResults property: Enables intermediate results for the transcribed speech. - * + * * @return the enableIntermediateResults value. */ public Boolean isIntermediateResultsEnabled() { @@ -142,7 +140,7 @@ public Boolean isIntermediateResultsEnabled() { /** * Set the enableIntermediateResults property: Enables intermediate results for the transcribed speech. - * + * * @param enableIntermediateResults the enableIntermediateResults value to set. * @return the TranscriptionOptions object itself. */ diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java index 8c8e1608a475..214559eeccc5 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java @@ -25,7 +25,7 @@ import com.azure.communication.callautomation.implementation.models.PhoneNumberIdentifierModel; import com.azure.communication.callautomation.models.MediaStreamingAudioChannel; import com.azure.communication.callautomation.models.MediaStreamingOptions; -import com.azure.communication.callautomation.models.MediaStreamingContent; +import com.azure.communication.callautomation.models.MediaStreamingContentType; import com.azure.communication.callautomation.models.MediaStreamingTransport; import com.azure.communication.callautomation.models.TranscriptionOptions; import com.azure.communication.callautomation.models.StreamingTransport; diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java index e340f1a2dc30..dfd0e78d8c08 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java @@ -24,7 +24,7 @@ import com.azure.communication.phonenumbers.models.PurchasedPhoneNumber; import com.azure.communication.callautomation.models.CallParticipant; import com.azure.communication.callautomation.models.MediaStreamingAudioChannel; -import com.azure.communication.callautomation.models.MediaStreamingContent; +import com.azure.communication.callautomation.models.MediaStreamingContentType; import com.azure.communication.callautomation.models.MediaStreamingOptions; import com.azure.communication.callautomation.models.MediaStreamingTransport; import com.azure.communication.callautomation.models.TranscriptionOptions; From 47bb9e91be7ae4201496b3978c350a9f061de3fb Mon Sep 17 00:00:00 2001 From: v-saasomani Date: Thu, 22 May 2025 12:11:58 -0700 Subject: [PATCH 09/31] Re-recorded tests and fixed linting issues (unused imports). (#45448) --- .../azure-communication-callautomation/assets.json | 2 +- .../communication/callautomation/models/StreamingData.java | 2 +- .../callautomation/models/TranscriptionOptions.java | 1 - .../CallAutomationAsyncClientAutomatedLiveTests.java | 2 +- .../callautomation/CallAutomationUnitTestBase.java | 3 --- .../callautomation/CallMediaAsyncAutomatedLiveTests.java | 3 --- .../src/test/resources/createACSCallAndUnmixedAudioTest.json | 2 +- .../test/resources/createACSCallUnmixedAudioAffinityTest.json | 2 +- ...AndAnswerThenAddParticipantFinallyCancelAddParticipant.json | 2 +- ...henAddParticipantFinallyRemoveParticipantAutomatedTest.json | 2 +- .../createVOIPCallAndAnswerThenHangupAutomatedTest.json | 2 +- .../src/test/resources/createVOIPCallAndConnectCallTest.json | 2 +- .../test/resources/createVOIPCallAndMediaStreamingTest.json | 2 +- .../test/resources/createVOIPCallAndRejectAutomatedTest.json | 2 +- .../src/test/resources/createVOIPCallAndTranscriptionTest.json | 2 +- .../src/test/resources/dtmfActionsInACallAutomatedTest.json | 2 +- .../src/test/resources/holdUnholdParticipantInACallTest.json | 2 +- .../src/test/resources/playMediaInACallAutomatedTest.json | 2 +- .../playMultipleCombinedSourcesWithPlayMediaAllTest.json | 2 +- .../playMultipleCombinedSourcesWithPlayMediaTest.json | 2 +- .../resources/playMultipleFileSourcesWithPlayMediaAllTest.json | 2 +- .../resources/playMultipleFileSourcesWithPlayMediaTest.json | 2 +- .../resources/playMultipleTextSourcesWithPlayMediaAllTest.json | 2 +- .../resources/playMultipleTextSourcesWithPlayMediaTest.json | 2 +- 24 files changed, 21 insertions(+), 28 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/assets.json b/sdk/communication/azure-communication-callautomation/assets.json index 05d7b349d6af..21b7d98c5e78 100644 --- a/sdk/communication/azure-communication-callautomation/assets.json +++ b/sdk/communication/azure-communication-callautomation/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/communication/azure-communication-callautomation", - "Tag": "java/communication/azure-communication-callautomation_6dc9a150d6" + "Tag": "java/communication/azure-communication-callautomation_33108318f9" } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java index 26d47317ac13..04327c0157bf 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StreamingData.java @@ -22,7 +22,7 @@ /** The abstract class used as parent of Streaming data such as Audio, Transcription, or Captions. */ public abstract class StreamingData { - private StreamingDataKind streamingDataKind; + private final StreamingDataKind streamingDataKind; /** * Creates an instance of {@link StreamingData}. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java index dec78a4d3c56..cbf792e9f2b8 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java @@ -3,7 +3,6 @@ package com.azure.communication.callautomation.models; -import com.azure.communication.callautomation.implementation.models.WebSocketTranscriptionOptionsInternal; import com.azure.core.annotation.Fluent; /** The TranscriptionOptions model. */ diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationAsyncClientAutomatedLiveTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationAsyncClientAutomatedLiveTests.java index d32417718c58..9d27fa209ebb 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationAsyncClientAutomatedLiveTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationAsyncClientAutomatedLiveTests.java @@ -196,7 +196,7 @@ public void createVOIPCallAndRejectAutomatedTest(HttpClient httpClient) { assertNotNull(callerConnectionId); // wait for the incomingCallContext - String incomingCallContext = waitForIncomingCallContext(uniqueId, Duration.ofSeconds(10)); + String incomingCallContext = waitForIncomingCallContext(uniqueId, Duration.ofSeconds(20)); assertNotNull(incomingCallContext); // rejet the call diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java index 214559eeccc5..ee4430361b34 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java @@ -25,10 +25,7 @@ import com.azure.communication.callautomation.implementation.models.PhoneNumberIdentifierModel; import com.azure.communication.callautomation.models.MediaStreamingAudioChannel; import com.azure.communication.callautomation.models.MediaStreamingOptions; -import com.azure.communication.callautomation.models.MediaStreamingContentType; -import com.azure.communication.callautomation.models.MediaStreamingTransport; import com.azure.communication.callautomation.models.TranscriptionOptions; -import com.azure.communication.callautomation.models.StreamingTransport; import com.azure.communication.common.CommunicationUserIdentifier; import com.azure.core.http.HttpClient; import com.azure.core.http.HttpHeaders; diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java index dfd0e78d8c08..df9d34d90848 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java @@ -24,15 +24,12 @@ import com.azure.communication.phonenumbers.models.PurchasedPhoneNumber; import com.azure.communication.callautomation.models.CallParticipant; import com.azure.communication.callautomation.models.MediaStreamingAudioChannel; -import com.azure.communication.callautomation.models.MediaStreamingContentType; import com.azure.communication.callautomation.models.MediaStreamingOptions; -import com.azure.communication.callautomation.models.MediaStreamingTransport; import com.azure.communication.callautomation.models.TranscriptionOptions; import com.azure.communication.callautomation.models.StartMediaStreamingOptions; import com.azure.communication.callautomation.models.StopMediaStreamingOptions; import com.azure.communication.callautomation.models.StartTranscriptionOptions; import com.azure.communication.callautomation.models.StopTranscriptionOptions; -import com.azure.communication.callautomation.models.StreamingTransport; import com.azure.communication.callautomation.models.events.MediaStreamingStarted; import com.azure.communication.callautomation.models.events.MediaStreamingStopped; import com.azure.communication.callautomation.models.events.TranscriptionStarted; diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallAndUnmixedAudioTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallAndUnmixedAudioTest.json index 0bb5b5dca4ff..54e92234d92e 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallAndUnmixedAudioTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallAndUnmixedAudioTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"d4a4de0e-22bc-447b-956a-bd07392b8d50\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-86ce-4b60-8520-dcf7a51fb423\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d4a4de0e-22bc-447b-956a-bd07392b8d50\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:23.997544\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-86ce-4b60-8520-dcf7a51fb423\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d4a4de0e-22bc-447b-956a-bd07392b8d50\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:08:24.1018019\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-86ce-4b60-8520-dcf7a51fb423\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d4a4de0e-22bc-447b-956a-bd07392b8d50\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:28.763855\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-86ce-4b60-8520-dcf7a51fb423\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d4a4de0e-22bc-447b-956a-bd07392b8d50\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:29.156359\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"02002680-86ce-4b60-8520-dcf7a51fb423\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d4a4de0e-22bc-447b-956a-bd07392b8d50\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:08:29.2196006\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-86ce-4b60-8520-dcf7a51fb423\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"bc5d7e7b-92f0-43f5-80c5-fe5a35ea40f8\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-0481-4472-a2b1-6d4535fbe7f9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-0481-4472-a2b1-6d4535fbe7f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bc5d7e7b-92f0-43f5-80c5-fe5a35ea40f8\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:25:16.5681527\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-0481-4472-a2b1-6d4535fbe7f9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-0481-4472-a2b1-6d4535fbe7f9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-0481-4472-a2b1-6d4535fbe7f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bc5d7e7b-92f0-43f5-80c5-fe5a35ea40f8\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:25:16.7573562\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-0481-4472-a2b1-6d4535fbe7f9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-0481-4472-a2b1-6d4535fbe7f9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-0481-4472-a2b1-6d4535fbe7f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bc5d7e7b-92f0-43f5-80c5-fe5a35ea40f8\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:25:21.5656009\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-0481-4472-a2b1-6d4535fbe7f9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-0481-4472-a2b1-6d4535fbe7f9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-0481-4472-a2b1-6d4535fbe7f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bc5d7e7b-92f0-43f5-80c5-fe5a35ea40f8\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:25:21.676686\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-0481-4472-a2b1-6d4535fbe7f9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-0481-4472-a2b1-6d4535fbe7f9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-0481-4472-a2b1-6d4535fbe7f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bc5d7e7b-92f0-43f5-80c5-fe5a35ea40f8\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:25:21.8002998\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-0481-4472-a2b1-6d4535fbe7f9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-0481-4472-a2b1-6d4535fbe7f9\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"1a006780-0481-4472-a2b1-6d4535fbe7f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bc5d7e7b-92f0-43f5-80c5-fe5a35ea40f8\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-22T17:25:21.9042843\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-0481-4472-a2b1-6d4535fbe7f9\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallUnmixedAudioAffinityTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallUnmixedAudioAffinityTest.json index 17482e2340cc..e57776a8ff8a 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallUnmixedAudioAffinityTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createACSCallUnmixedAudioAffinityTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"644549a3-a490-406b-af1b-d37e97015635\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"644549a3-a490-406b-af1b-d37e97015635\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:39.5825132\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"644549a3-a490-406b-af1b-d37e97015635\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:08:39.6916879\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"644549a3-a490-406b-af1b-d37e97015635\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:44.31165\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"644549a3-a490-406b-af1b-d37e97015635\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:44.6575964\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"02002680-4f24-4b66-8ed4-7c4f8a89aeb5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"644549a3-a490-406b-af1b-d37e97015635\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:08:44.6883391\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4f24-4b66-8ed4-7c4f8a89aeb5\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"50ec6af4-c997-47c8-8906-6952b9f4bfd9\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2f006680-4d6f-4007-a294-7046647ad887\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"2f006680-4d6f-4007-a294-7046647ad887\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"50ec6af4-c997-47c8-8906-6952b9f4bfd9\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:25:29.5616761\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2f006680-4d6f-4007-a294-7046647ad887\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2f006680-4d6f-4007-a294-7046647ad887\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"2f006680-4d6f-4007-a294-7046647ad887\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"50ec6af4-c997-47c8-8906-6952b9f4bfd9\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:25:29.7195029\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2f006680-4d6f-4007-a294-7046647ad887\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2f006680-4d6f-4007-a294-7046647ad887\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"2f006680-4d6f-4007-a294-7046647ad887\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"50ec6af4-c997-47c8-8906-6952b9f4bfd9\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:25:32.8500256\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2f006680-4d6f-4007-a294-7046647ad887\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2f006680-4d6f-4007-a294-7046647ad887\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"2f006680-4d6f-4007-a294-7046647ad887\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"50ec6af4-c997-47c8-8906-6952b9f4bfd9\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:25:32.9597252\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2f006680-4d6f-4007-a294-7046647ad887\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2f006680-4d6f-4007-a294-7046647ad887\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"2f006680-4d6f-4007-a294-7046647ad887\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"50ec6af4-c997-47c8-8906-6952b9f4bfd9\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-22T17:25:33.0701797\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2f006680-4d6f-4007-a294-7046647ad887\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyCancelAddParticipant.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyCancelAddParticipant.json index d084f5efff01..caaa950532da 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyCancelAddParticipant.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyCancelAddParticipant.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-041f-4f89-8c8b-466dd6f1b4a7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-041f-4f89-8c8b-466dd6f1b4a7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:16.7627743\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-041f-4f89-8c8b-466dd6f1b4a7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-4070-4025-b322-1290aa547bb9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:16.7745349\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-041f-4f89-8c8b-466dd6f1b4a7\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-041f-4f89-8c8b-466dd6f1b4a7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:04:16.8577741\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-041f-4f89-8c8b-466dd6f1b4a7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-4070-4025-b322-1290aa547bb9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:04:16.8673266\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-4070-4025-b322-1290aa547bb9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:19.4427645\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-041f-4f89-8c8b-466dd6f1b4a7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-041f-4f89-8c8b-466dd6f1b4a7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:19.4302397\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-041f-4f89-8c8b-466dd6f1b4a7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\",\"type\":\"Microsoft.Communication.CancelAddParticipantSucceeded\",\"data\":{\"invitationId\":\"cb5a01a3-a7a2-4c05-b9b4-60097b3bc2a9\",\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":5300,\"message\":\"addParticipants failed for participant 8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-8d08-2df1-f883-08482200af55. Underlying reason: The conversation has ended. DiagCode: 0#5300.@\"},\"callConnectionId\":\"02002680-4070-4025-b322-1290aa547bb9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"d64e9969-2937-47ed-b37e-bebf3d6b732c\",\"publicEventType\":\"Microsoft.Communication.CancelAddParticipantSucceeded\"},\"time\":\"2025-05-20T10:04:21.9352855\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-4070-4025-b322-1290aa547bb9\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"acbc8456-d4fe-4557-9199-37755d53029c\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-643f-48eb-a90e-e4fb30c72b99\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-643f-48eb-a90e-e4fb30c72b99\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"acbc8456-d4fe-4557-9199-37755d53029c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:14.4369087\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-643f-48eb-a90e-e4fb30c72b99\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-ccea-44cb-983f-62d1f15a3bf5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-ccea-44cb-983f-62d1f15a3bf5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"acbc8456-d4fe-4557-9199-37755d53029c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:14.4369087\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-ccea-44cb-983f-62d1f15a3bf5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-643f-48eb-a90e-e4fb30c72b99\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-643f-48eb-a90e-e4fb30c72b99\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"acbc8456-d4fe-4557-9199-37755d53029c\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:22:14.5945456\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-643f-48eb-a90e-e4fb30c72b99\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-ccea-44cb-983f-62d1f15a3bf5\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-ccea-44cb-983f-62d1f15a3bf5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"acbc8456-d4fe-4557-9199-37755d53029c\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:22:14.5469616\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-ccea-44cb-983f-62d1f15a3bf5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-643f-48eb-a90e-e4fb30c72b99\",\"type\":\"Microsoft.Communication.CancelAddParticipantSucceeded\",\"data\":{\"invitationId\":\"23ecbf4d-2600-4c4f-9781-adfa0d14dc6a\",\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":5300,\"message\":\"addParticipants failed for participant 8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-98e5-dac3-e84c-09bd456046cc. Underlying reason: The conversation has ended. DiagCode: 0#5300.@\"},\"callConnectionId\":\"1a006780-643f-48eb-a90e-e4fb30c72b99\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"acbc8456-d4fe-4557-9199-37755d53029c\",\"publicEventType\":\"Microsoft.Communication.CancelAddParticipantSucceeded\"},\"time\":\"2025-05-22T17:22:18.5696007\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-643f-48eb-a90e-e4fb30c72b99\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyRemoveParticipantAutomatedTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyRemoveParticipantAutomatedTest.json index 6d479769ef78..f555d81c2368 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyRemoveParticipantAutomatedTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenAddParticipantFinallyRemoveParticipantAutomatedTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:55.0766211\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:55.0766211\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:55.1703179\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:55.2023253\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:59.6119755\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:59.7827164\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:59.8160796\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.AddParticipantSucceeded\",\"data\":{\"participant\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.AddParticipantSucceeded\"},\"time\":\"2025-05-20T10:03:59.7915208\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.1728047\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:59.7889225\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":7,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.5511486\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.1571225\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.9288749\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":7,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.1728047\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":9,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:01.3025324\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.5511486\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":10,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:01.6773838\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":7,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.5668719\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":11,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:02.0463476\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":7,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.9176921\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":12,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a1c1-4d60-b4d9-510cf74ddec9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:02.4284184\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a1c1-4d60-b4d9-510cf74ddec9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":7,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:00.9288749\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:01.2902911\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:01.2765751\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":5300,\"message\":\"The conversation has ended. DiagCode: 0#5300.@\"},\"callConnectionId\":\"02002680-9847-49a4-ac1a-915e944c37f3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:04:01.6673183\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9847-49a4-ac1a-915e944c37f3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.RemoveParticipantSucceeded\",\"data\":{\"participant\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.RemoveParticipantSucceeded\"},\"time\":\"2025-05-20T10:04:01.6673183\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":9,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-436e-49ec-ba32-387bc9994af1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b38b4c96-a512-4aa6-8b81-0834a95d65c7\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:01.6844859\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-436e-49ec-ba32-387bc9994af1\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-35c8-4991-b962-d46cef4d77e3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:21:58.0673723\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-575b-4fad-af5c-30ab69bddd5f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:21:58.0673723\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-575b-4fad-af5c-30ab69bddd5f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:21:58.1421928\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-35c8-4991-b962-d46cef4d77e3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:21:58.1344471\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\"}]","{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-9906-4039-afd3-7f1360f9c66f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:22:01.2778968\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-9906-4039-afd3-7f1360f9c66f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:01.5607977\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\",\"type\":\"Microsoft.Communication.AddParticipantSucceeded\",\"data\":{\"participant\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-35c8-4991-b962-d46cef4d77e3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.AddParticipantSucceeded\"},\"time\":\"2025-05-22T17:22:01.5311025\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-9906-4039-afd3-7f1360f9c66f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:01.6714178\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-35c8-4991-b962-d46cef4d77e3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:01.5311025\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":7,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-9906-4039-afd3-7f1360f9c66f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:01.7982562\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-575b-4fad-af5c-30ab69bddd5f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:01.5311025\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-9906-4039-afd3-7f1360f9c66f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:01.9420351\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-35c8-4991-b962-d46cef4d77e3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:01.7184212\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":9,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-9906-4039-afd3-7f1360f9c66f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:02.0758266\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-575b-4fad-af5c-30ab69bddd5f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:01.7340451\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":10,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-9906-4039-afd3-7f1360f9c66f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:02.195284\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-575b-4fad-af5c-30ab69bddd5f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:01.8768147\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":11,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-9906-4039-afd3-7f1360f9c66f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:02.3267703\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-9906-4039-afd3-7f1360f9c66f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-35c8-4991-b962-d46cef4d77e3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:01.908572\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":7,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-35c8-4991-b962-d46cef4d77e3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:02.066685\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-575b-4fad-af5c-30ab69bddd5f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:02.0752697\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":8,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-35c8-4991-b962-d46cef4d77e3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:02.2077462\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":5300,\"message\":\"The conversation has ended. DiagCode: 0#5300.@\"},\"callConnectionId\":\"1a006780-575b-4fad-af5c-30ab69bddd5f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-22T17:22:02.1929357\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-575b-4fad-af5c-30ab69bddd5f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\",\"type\":\"Microsoft.Communication.RemoveParticipantSucceeded\",\"data\":{\"participant\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-35c8-4991-b962-d46cef4d77e3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.RemoveParticipantSucceeded\"},\"time\":\"2025-05-22T17:22:02.1947021\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":9,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-35c8-4991-b962-d46cef4d77e3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:02.4048331\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":10,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-35c8-4991-b962-d46cef4d77e3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:02.5823711\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":11,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-35c8-4991-b962-d46cef4d77e3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f7856863-d80c-4ed7-90c3-83cd125a67bf\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:02.6901131\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-35c8-4991-b962-d46cef4d77e3\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenHangupAutomatedTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenHangupAutomatedTest.json index 573bec0ac0df..20e95b1bf545 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenHangupAutomatedTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndAnswerThenHangupAutomatedTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6bc6-482c-bffb-8bfb25b9f8ff\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-6bc6-482c-bffb-8bfb25b9f8ff\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:41.6927177\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6bc6-482c-bffb-8bfb25b9f8ff\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-02a9-41d6-84c9-fa900bdba843\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-02a9-41d6-84c9-fa900bdba843\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:41.6927177\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-02a9-41d6-84c9-fa900bdba843\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6bc6-482c-bffb-8bfb25b9f8ff\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-6bc6-482c-bffb-8bfb25b9f8ff\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:41.7771232\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6bc6-482c-bffb-8bfb25b9f8ff\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-02a9-41d6-84c9-fa900bdba843\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-02a9-41d6-84c9-fa900bdba843\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:41.8244268\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-02a9-41d6-84c9-fa900bdba843\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6bc6-482c-bffb-8bfb25b9f8ff\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"02002680-6bc6-482c-bffb-8bfb25b9f8ff\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:03:44.626846\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6bc6-482c-bffb-8bfb25b9f8ff\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-02a9-41d6-84c9-fa900bdba843\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"02002680-02a9-41d6-84c9-fa900bdba843\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"434344e0-eddc-4e43-931a-6ee95df03e2b\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:03:44.6427355\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-02a9-41d6-84c9-fa900bdba843\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"81b1be24-ec48-4d2e-93d7-8b5df3e1d777\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-3b9b-43a1-833a-3618ae420493\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-3b9b-43a1-833a-3618ae420493\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"81b1be24-ec48-4d2e-93d7-8b5df3e1d777\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:21:46.7892968\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-3b9b-43a1-833a-3618ae420493\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-681b-42d0-a76d-cb32307cb2a1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-681b-42d0-a76d-cb32307cb2a1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"81b1be24-ec48-4d2e-93d7-8b5df3e1d777\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:21:46.7887376\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-681b-42d0-a76d-cb32307cb2a1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-681b-42d0-a76d-cb32307cb2a1\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-681b-42d0-a76d-cb32307cb2a1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"81b1be24-ec48-4d2e-93d7-8b5df3e1d777\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:21:46.9184727\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-681b-42d0-a76d-cb32307cb2a1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-3b9b-43a1-833a-3618ae420493\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-3b9b-43a1-833a-3618ae420493\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"81b1be24-ec48-4d2e-93d7-8b5df3e1d777\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:21:46.9316196\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-3b9b-43a1-833a-3618ae420493\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-681b-42d0-a76d-cb32307cb2a1\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"1a006780-681b-42d0-a76d-cb32307cb2a1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"81b1be24-ec48-4d2e-93d7-8b5df3e1d777\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-22T17:21:47.6211831\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-681b-42d0-a76d-cb32307cb2a1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-3b9b-43a1-833a-3618ae420493\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"1a006780-3b9b-43a1-833a-3618ae420493\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"81b1be24-ec48-4d2e-93d7-8b5df3e1d777\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-22T17:21:47.6368322\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-3b9b-43a1-833a-3618ae420493\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndConnectCallTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndConnectCallTest.json index e61640539397..d2a78ce6af07 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndConnectCallTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndConnectCallTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-035d-484a-89af-be94bc479335\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-035d-484a-89af-be94bc479335\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:25.9744848\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-035d-484a-89af-be94bc479335\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c4df-4d04-b232-7c7b601c9b75\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-c4df-4d04-b232-7c7b601c9b75\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:26.0095892\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c4df-4d04-b232-7c7b601c9b75\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-035d-484a-89af-be94bc479335\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-035d-484a-89af-be94bc479335\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:25.8496723\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-035d-484a-89af-be94bc479335\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c4df-4d04-b232-7c7b601c9b75\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-c4df-4d04-b232-7c7b601c9b75\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:25.8496723\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c4df-4d04-b232-7c7b601c9b75\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":2,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:29.9467802\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:03:29.9624391\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:03:30.3252383\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"02002680-03ae-44f9-89fe-10cc5c3e25f9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:03:31.0188111\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-03ae-44f9-89fe-10cc5c3e25f9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-035d-484a-89af-be94bc479335\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":5001,\"message\":\"This conversation has ended.. DiagCode: 0#5001.@\"},\"callConnectionId\":\"02002680-035d-484a-89af-be94bc479335\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:03:31.0499688\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-035d-484a-89af-be94bc479335\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c4df-4d04-b232-7c7b601c9b75\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":5001,\"message\":\"This conversation has ended.. DiagCode: 0#5001.@\"},\"callConnectionId\":\"02002680-c4df-4d04-b232-7c7b601c9b75\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"26c0c98c-24c9-428e-ad28-b074c90c65c5\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:03:31.0641605\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c4df-4d04-b232-7c7b601c9b75\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"00374108-763d-43af-bb9b-4ef4faf15504\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-1ff1-4762-9717-38be00d277a3\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-1ff1-4762-9717-38be00d277a3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"00374108-763d-43af-bb9b-4ef4faf15504\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:21:31.7195783\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-1ff1-4762-9717-38be00d277a3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-11da-4e8e-a87f-a96441328e49\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-11da-4e8e-a87f-a96441328e49\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"00374108-763d-43af-bb9b-4ef4faf15504\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:21:31.7195783\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-11da-4e8e-a87f-a96441328e49\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-11da-4e8e-a87f-a96441328e49\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-11da-4e8e-a87f-a96441328e49\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"00374108-763d-43af-bb9b-4ef4faf15504\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:21:31.8613887\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-11da-4e8e-a87f-a96441328e49\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-1ff1-4762-9717-38be00d277a3\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-1ff1-4762-9717-38be00d277a3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"00374108-763d-43af-bb9b-4ef4faf15504\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:21:31.8613887\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-1ff1-4762-9717-38be00d277a3\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-bdd7-4846-b43f-1f068a9141e7\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-bdd7-4846-b43f-1f068a9141e7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"00374108-763d-43af-bb9b-4ef4faf15504\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:21:34.0509772\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-bdd7-4846-b43f-1f068a9141e7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-bdd7-4846-b43f-1f068a9141e7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":2,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-bdd7-4846-b43f-1f068a9141e7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"00374108-763d-43af-bb9b-4ef4faf15504\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:21:34.048607\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-bdd7-4846-b43f-1f068a9141e7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-bdd7-4846-b43f-1f068a9141e7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-bdd7-4846-b43f-1f068a9141e7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"00374108-763d-43af-bb9b-4ef4faf15504\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:21:34.206797\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-bdd7-4846-b43f-1f068a9141e7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-bdd7-4846-b43f-1f068a9141e7\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"1a006780-bdd7-4846-b43f-1f068a9141e7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"00374108-763d-43af-bb9b-4ef4faf15504\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-22T17:21:34.705931\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-bdd7-4846-b43f-1f068a9141e7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-11da-4e8e-a87f-a96441328e49\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":5001,\"message\":\"This conversation has ended.. DiagCode: 0#5001.@\"},\"callConnectionId\":\"1a006780-11da-4e8e-a87f-a96441328e49\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"00374108-763d-43af-bb9b-4ef4faf15504\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-22T17:21:34.719968\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-11da-4e8e-a87f-a96441328e49\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-1ff1-4762-9717-38be00d277a3\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":5001,\"message\":\"This conversation has ended.. DiagCode: 0#5001.@\"},\"callConnectionId\":\"1a006780-1ff1-4762-9717-38be00d277a3\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"00374108-763d-43af-bb9b-4ef4faf15504\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-22T17:21:34.7739593\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-1ff1-4762-9717-38be00d277a3\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndMediaStreamingTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndMediaStreamingTest.json index a681ced1316e..432fbda6ad4e 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndMediaStreamingTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndMediaStreamingTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-23e0-4d34-9386-2cea4dbc8c7f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"08002680-23e0-4d34-9386-2cea4dbc8c7f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:11:06.3623237\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-23e0-4d34-9386-2cea4dbc8c7f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"08002680-ef18-4820-8b82-1bb48f622851\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:11:06.3623237\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-23e0-4d34-9386-2cea4dbc8c7f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"08002680-23e0-4d34-9386-2cea4dbc8c7f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:11:06.471634\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-23e0-4d34-9386-2cea4dbc8c7f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"08002680-ef18-4820-8b82-1bb48f622851\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:11:06.503044\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\",\"type\":\"Microsoft.Communication.MediaStreamingStarted\",\"data\":{\"mediaStreamingUpdate\":{\"contentType\":\"Audio\",\"mediaStreamingStatus\":\"mediaStreamingStarted\",\"mediaStreamingStatusDetails\":\"subscriptionStarted\"},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"08002680-ef18-4820-8b82-1bb48f622851\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\",\"publicEventType\":\"Microsoft.Communication.MediaStreamingStarted\"},\"time\":\"2025-05-20T10:11:10.1632668\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\",\"type\":\"Microsoft.Communication.MediaStreamingStopped\",\"data\":{\"mediaStreamingUpdate\":{\"contentType\":\"Audio\",\"mediaStreamingStatus\":\"mediaStreamingStopped\",\"mediaStreamingStatusDetails\":\"subscriptionStopped\"},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"08002680-ef18-4820-8b82-1bb48f622851\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3bda7806-6cd7-4842-be33-7099b095c553\",\"publicEventType\":\"Microsoft.Communication.MediaStreamingStopped\"},\"time\":\"2025-05-20T10:11:11.3536489\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/08002680-ef18-4820-8b82-1bb48f622851\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"f6c9ed04-25db-4738-b9c7-5b40c6fc8949\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-3d0c-447a-aa4f-60ba0bda8a9f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-3d0c-447a-aa4f-60ba0bda8a9f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f6c9ed04-25db-4738-b9c7-5b40c6fc8949\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:35.1961983\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-3d0c-447a-aa4f-60ba0bda8a9f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-aeb9-4dd7-a2af-4b194826995f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-aeb9-4dd7-a2af-4b194826995f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f6c9ed04-25db-4738-b9c7-5b40c6fc8949\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:35.1961983\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-aeb9-4dd7-a2af-4b194826995f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-aeb9-4dd7-a2af-4b194826995f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-aeb9-4dd7-a2af-4b194826995f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f6c9ed04-25db-4738-b9c7-5b40c6fc8949\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:24:35.4315714\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-aeb9-4dd7-a2af-4b194826995f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-3d0c-447a-aa4f-60ba0bda8a9f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-3d0c-447a-aa4f-60ba0bda8a9f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f6c9ed04-25db-4738-b9c7-5b40c6fc8949\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:24:35.4835173\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-3d0c-447a-aa4f-60ba0bda8a9f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-3d0c-447a-aa4f-60ba0bda8a9f\",\"type\":\"Microsoft.Communication.MediaStreamingStarted\",\"data\":{\"mediaStreamingUpdate\":{\"contentType\":\"Audio\",\"mediaStreamingStatus\":\"mediaStreamingStarted\",\"mediaStreamingStatusDetails\":\"subscriptionStarted\"},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-3d0c-447a-aa4f-60ba0bda8a9f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f6c9ed04-25db-4738-b9c7-5b40c6fc8949\",\"publicEventType\":\"Microsoft.Communication.MediaStreamingStarted\"},\"time\":\"2025-05-22T17:24:36.3165714\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-3d0c-447a-aa4f-60ba0bda8a9f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-3d0c-447a-aa4f-60ba0bda8a9f\",\"type\":\"Microsoft.Communication.MediaStreamingStopped\",\"data\":{\"mediaStreamingUpdate\":{\"contentType\":\"Audio\",\"mediaStreamingStatus\":\"mediaStreamingStopped\",\"mediaStreamingStatusDetails\":\"subscriptionStopped\"},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-3d0c-447a-aa4f-60ba0bda8a9f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"f6c9ed04-25db-4738-b9c7-5b40c6fc8949\",\"publicEventType\":\"Microsoft.Communication.MediaStreamingStopped\"},\"time\":\"2025-05-22T17:24:37.430735\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-3d0c-447a-aa4f-60ba0bda8a9f\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndRejectAutomatedTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndRejectAutomatedTest.json index 0c9476b54311..c57a21df5c1c 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndRejectAutomatedTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndRejectAutomatedTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"7820b15c-1d71-4110-990e-a24da86c5312\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a5ee-4f80-bdf2-5c33970445fb\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":603,\"subCode\":0,\"message\":\"Decline. DiagCode: 603#0.@\"},\"callConnectionId\":\"02002680-a5ee-4f80-bdf2-5c33970445fb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7820b15c-1d71-4110-990e-a24da86c5312\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-20T10:03:14.7800138\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a5ee-4f80-bdf2-5c33970445fb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a5ee-4f80-bdf2-5c33970445fb\",\"type\":\"Microsoft.Communication.CreateCallFailed\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":603,\"subCode\":0,\"message\":\"Decline. DiagCode: 603#0.@\"},\"callConnectionId\":\"02002680-a5ee-4f80-bdf2-5c33970445fb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"7820b15c-1d71-4110-990e-a24da86c5312\",\"publicEventType\":\"Microsoft.Communication.CreateCallFailed\"},\"time\":\"2025-05-20T10:03:14.7800138\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a5ee-4f80-bdf2-5c33970445fb\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"af5b1dd8-13ec-4463-93e2-bce0837ffa1e\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-7c22-45f7-9657-d45124ee0175\",\"type\":\"Microsoft.Communication.CallDisconnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":603,\"subCode\":0,\"message\":\"Decline. DiagCode: 603#0.@\"},\"callConnectionId\":\"1a006780-7c22-45f7-9657-d45124ee0175\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"af5b1dd8-13ec-4463-93e2-bce0837ffa1e\",\"publicEventType\":\"Microsoft.Communication.CallDisconnected\"},\"time\":\"2025-05-22T17:21:21.6106687\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-7c22-45f7-9657-d45124ee0175\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-7c22-45f7-9657-d45124ee0175\",\"type\":\"Microsoft.Communication.CreateCallFailed\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":603,\"subCode\":0,\"message\":\"Decline. DiagCode: 603#0.@\"},\"callConnectionId\":\"1a006780-7c22-45f7-9657-d45124ee0175\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"af5b1dd8-13ec-4463-93e2-bce0837ffa1e\",\"publicEventType\":\"Microsoft.Communication.CreateCallFailed\"},\"time\":\"2025-05-22T17:21:21.6106687\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-7c22-45f7-9657-d45124ee0175\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndTranscriptionTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndTranscriptionTest.json index d7648e28b2cd..5f19a3edf789 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndTranscriptionTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/createVOIPCallAndTranscriptionTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6b4c-45cc-bc30-c8d58aa6f95b\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-6b4c-45cc-bc30-c8d58aa6f95b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:06.3398932\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6b4c-45cc-bc30-c8d58aa6f95b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-c6b8-4691-be54-972b63fb77dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:08:06.3398932\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6b4c-45cc-bc30-c8d58aa6f95b\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-6b4c-45cc-bc30-c8d58aa6f95b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:08:06.417647\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6b4c-45cc-bc30-c8d58aa6f95b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-c6b8-4691-be54-972b63fb77dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:08:06.4403958\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\",\"type\":\"Microsoft.Communication.TranscriptionStarted\",\"data\":{\"transcriptionUpdate\":{\"transcriptionStatus\":\"transcriptionStarted\",\"transcriptionStatusDetails\":\"subscriptionStarted\"},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-c6b8-4691-be54-972b63fb77dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\",\"publicEventType\":\"Microsoft.Communication.TranscriptionStarted\"},\"time\":\"2025-05-20T10:08:10.4255642\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\",\"type\":\"Microsoft.Communication.TranscriptionStopped\",\"data\":{\"transcriptionUpdate\":{\"transcriptionStatus\":\"transcriptionStopped\",\"transcriptionStatusDetails\":\"subscriptionStopped\"},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-c6b8-4691-be54-972b63fb77dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"0bcb8f49-729b-4b9b-a8fa-f4468e770256\",\"publicEventType\":\"Microsoft.Communication.TranscriptionStopped\"},\"time\":\"2025-05-20T10:08:13.5321178\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-c6b8-4691-be54-972b63fb77dd\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"53242855-b640-472f-8821-ef29bc8112ad\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-2f32-4a23-8a56-3a6719bfdbbb\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-2f32-4a23-8a56-3a6719bfdbbb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"53242855-b640-472f-8821-ef29bc8112ad\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:25:05.0799718\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-2f32-4a23-8a56-3a6719bfdbbb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-fcf9-444a-9ad7-c3de845c0517\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-fcf9-444a-9ad7-c3de845c0517\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"53242855-b640-472f-8821-ef29bc8112ad\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:25:05.0799718\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-fcf9-444a-9ad7-c3de845c0517\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-fcf9-444a-9ad7-c3de845c0517\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-fcf9-444a-9ad7-c3de845c0517\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"53242855-b640-472f-8821-ef29bc8112ad\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:25:05.1960476\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-fcf9-444a-9ad7-c3de845c0517\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-2f32-4a23-8a56-3a6719bfdbbb\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-2f32-4a23-8a56-3a6719bfdbbb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"53242855-b640-472f-8821-ef29bc8112ad\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:25:05.2050724\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-2f32-4a23-8a56-3a6719bfdbbb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-2f32-4a23-8a56-3a6719bfdbbb\",\"type\":\"Microsoft.Communication.TranscriptionStarted\",\"data\":{\"transcriptionUpdate\":{\"transcriptionStatus\":\"transcriptionStarted\",\"transcriptionStatusDetails\":\"subscriptionStarted\"},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-2f32-4a23-8a56-3a6719bfdbbb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"53242855-b640-472f-8821-ef29bc8112ad\",\"publicEventType\":\"Microsoft.Communication.TranscriptionStarted\"},\"time\":\"2025-05-22T17:25:06.0517101\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-2f32-4a23-8a56-3a6719bfdbbb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-2f32-4a23-8a56-3a6719bfdbbb\",\"type\":\"Microsoft.Communication.TranscriptionStopped\",\"data\":{\"transcriptionUpdate\":{\"transcriptionStatus\":\"transcriptionStopped\",\"transcriptionStatusDetails\":\"subscriptionStopped\"},\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-2f32-4a23-8a56-3a6719bfdbbb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"53242855-b640-472f-8821-ef29bc8112ad\",\"publicEventType\":\"Microsoft.Communication.TranscriptionStopped\"},\"time\":\"2025-05-22T17:25:09.2506455\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-2f32-4a23-8a56-3a6719bfdbbb\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/dtmfActionsInACallAutomatedTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/dtmfActionsInACallAutomatedTest.json index 043b780ab255..a1eea111b989 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/dtmfActionsInACallAutomatedTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/dtmfActionsInACallAutomatedTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"phoneNumber\",\"rawId\":\"REDACTED\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"from\":{\"kind\":\"phoneNumber\",\"rawId\":\"REDACTED\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"b440a86e-b656-4462-a0ee-c26b03e4ff1d\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"phoneNumber\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-5648-4066-903c-3dee1151f6ad\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9e2dc1a7-deb8-4fbe-bf90-582769169021\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:39.1653916\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-35ae-4de4-a9f4-a58c9110a3af\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-35ae-4de4-a9f4-a58c9110a3af\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b440a86e-b656-4462-a0ee-c26b03e4ff1d\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:05:39.3087402\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-35ae-4de4-a9f4-a58c9110a3af\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-5648-4066-903c-3dee1151f6ad\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9e2dc1a7-deb8-4fbe-bf90-582769169021\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:05:39.4007799\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-35ae-4de4-a9f4-a58c9110a3af\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"phoneNumber\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-35ae-4de4-a9f4-a58c9110a3af\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b440a86e-b656-4462-a0ee-c26b03e4ff1d\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:40.0807007\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-35ae-4de4-a9f4-a58c9110a3af\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\",\"type\":\"Microsoft.Communication.SendDtmfTonesCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-5648-4066-903c-3dee1151f6ad\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9e2dc1a7-deb8-4fbe-bf90-582769169021\",\"publicEventType\":\"Microsoft.Communication.SendDtmfTonesCompleted\"},\"time\":\"2025-05-20T10:05:43.8084628\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\",\"type\":\"Microsoft.Communication.ContinuousDtmfRecognitionStopped\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"02002680-5648-4066-903c-3dee1151f6ad\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9e2dc1a7-deb8-4fbe-bf90-582769169021\",\"publicEventType\":\"Microsoft.Communication.ContinuousDtmfRecognitionStopped\"},\"time\":\"2025-05-20T10:05:44.5129324\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5648-4066-903c-3dee1151f6ad\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"phoneNumber\",\"rawId\":\"REDACTED\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"from\":{\"kind\":\"phoneNumber\",\"rawId\":\"REDACTED\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"8d8154c9-9280-41f4-80f3-97acbd91f176\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-75c1-4479-bec7-54f64e165a83\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-75c1-4479-bec7-54f64e165a83\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"8d8154c9-9280-41f4-80f3-97acbd91f176\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:23:21.3976351\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-75c1-4479-bec7-54f64e165a83\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-75c1-4479-bec7-54f64e165a83\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"phoneNumber\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-75c1-4479-bec7-54f64e165a83\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"8d8154c9-9280-41f4-80f3-97acbd91f176\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:23:21.4126607\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-75c1-4479-bec7-54f64e165a83\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d0cb-48d9-ab5d-fefef2a28597\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"phoneNumber\",\"phoneNumber\":{\"value\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-d0cb-48d9-ab5d-fefef2a28597\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"07d143ba-2a1d-4f27-93ab-aff299f9be6c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:23:21.5432597\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d0cb-48d9-ab5d-fefef2a28597\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d0cb-48d9-ab5d-fefef2a28597\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-d0cb-48d9-ab5d-fefef2a28597\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"07d143ba-2a1d-4f27-93ab-aff299f9be6c\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:23:21.5553356\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d0cb-48d9-ab5d-fefef2a28597\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d0cb-48d9-ab5d-fefef2a28597\",\"type\":\"Microsoft.Communication.SendDtmfTonesCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-d0cb-48d9-ab5d-fefef2a28597\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"07d143ba-2a1d-4f27-93ab-aff299f9be6c\",\"publicEventType\":\"Microsoft.Communication.SendDtmfTonesCompleted\"},\"time\":\"2025-05-22T17:23:25.244702\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d0cb-48d9-ab5d-fefef2a28597\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d0cb-48d9-ab5d-fefef2a28597\",\"type\":\"Microsoft.Communication.ContinuousDtmfRecognitionStopped\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":7000,\"message\":\"The conversation has ended. DiagCode: 0#7000.@\"},\"callConnectionId\":\"1a006780-d0cb-48d9-ab5d-fefef2a28597\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"07d143ba-2a1d-4f27-93ab-aff299f9be6c\",\"publicEventType\":\"Microsoft.Communication.ContinuousDtmfRecognitionStopped\"},\"time\":\"2025-05-22T17:23:25.797572\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d0cb-48d9-ab5d-fefef2a28597\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/holdUnholdParticipantInACallTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/holdUnholdParticipantInACallTest.json index 5b72358b29e4..a4d86dd8de2e 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/holdUnholdParticipantInACallTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/holdUnholdParticipantInACallTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9a71-490a-a0cc-f9a62206ab09\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:07:46.4795264\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-9a71-490a-a0cc-f9a62206ab09\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:07:46.5291562\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-5880-459e-a8a8-94a087e398b9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:07:46.7381914\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-5880-459e-a8a8-94a087e398b9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:07:47.1041792\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9a71-490a-a0cc-f9a62206ab09\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:07:50.2644312\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-5880-459e-a8a8-94a087e398b9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:07:50.2644312\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-9a71-490a-a0cc-f9a62206ab09\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:07:53.8260718\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-9a71-490a-a0cc-f9a62206ab09\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-5880-459e-a8a8-94a087e398b9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"a6cff5c7-e0c3-4a3e-8b2a-5b318a83163e\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:07:53.8882761\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-5880-459e-a8a8-94a087e398b9\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"c74d24d9-ae35-4aa8-b28c-8cb5ae0d1391\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-f752-482f-bf95-d14be6abdaa7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-f752-482f-bf95-d14be6abdaa7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c74d24d9-ae35-4aa8-b28c-8cb5ae0d1391\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:45.0698202\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-f752-482f-bf95-d14be6abdaa7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-2c78-4758-b511-6c40fc7f9703\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-2c78-4758-b511-6c40fc7f9703\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c74d24d9-ae35-4aa8-b28c-8cb5ae0d1391\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:45.1010006\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-2c78-4758-b511-6c40fc7f9703\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-f752-482f-bf95-d14be6abdaa7\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-f752-482f-bf95-d14be6abdaa7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c74d24d9-ae35-4aa8-b28c-8cb5ae0d1391\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:24:45.244163\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-f752-482f-bf95-d14be6abdaa7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-2c78-4758-b511-6c40fc7f9703\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-2c78-4758-b511-6c40fc7f9703\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c74d24d9-ae35-4aa8-b28c-8cb5ae0d1391\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:24:45.3230706\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-2c78-4758-b511-6c40fc7f9703\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-2c78-4758-b511-6c40fc7f9703\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-2c78-4758-b511-6c40fc7f9703\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c74d24d9-ae35-4aa8-b28c-8cb5ae0d1391\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:47.6889118\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-2c78-4758-b511-6c40fc7f9703\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-f752-482f-bf95-d14be6abdaa7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-f752-482f-bf95-d14be6abdaa7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c74d24d9-ae35-4aa8-b28c-8cb5ae0d1391\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:47.6889118\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-f752-482f-bf95-d14be6abdaa7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-f752-482f-bf95-d14be6abdaa7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-f752-482f-bf95-d14be6abdaa7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c74d24d9-ae35-4aa8-b28c-8cb5ae0d1391\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:51.1364777\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-f752-482f-bf95-d14be6abdaa7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-2c78-4758-b511-6c40fc7f9703\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-2c78-4758-b511-6c40fc7f9703\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"c74d24d9-ae35-4aa8-b28c-8cb5ae0d1391\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:51.1364777\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-2c78-4758-b511-6c40fc7f9703\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMediaInACallAutomatedTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMediaInACallAutomatedTest.json index d63cbd487c0a..5b916e238a07 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMediaInACallAutomatedTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMediaInACallAutomatedTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-2443-49bc-a400-61456bdaa77f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-2443-49bc-a400-61456bdaa77f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:56.8320795\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-2443-49bc-a400-61456bdaa77f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-54e3-48b6-a5c0-30b87fba894f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:56.8320795\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-2443-49bc-a400-61456bdaa77f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-2443-49bc-a400-61456bdaa77f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:06:56.9750777\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-2443-49bc-a400-61456bdaa77f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-54e3-48b6-a5c0-30b87fba894f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:06:57.0377392\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-54e3-48b6-a5c0-30b87fba894f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:07:00.0938396\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-54e3-48b6-a5c0-30b87fba894f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9434209e-4a3a-42ee-a6b9-1088d3a6eeb5\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:07:04.3266892\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-54e3-48b6-a5c0-30b87fba894f\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"e81c8631-cd04-4135-980b-428c24bc1236\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-dbe0-420b-97d7-9473a47cdbff\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-dbe0-420b-97d7-9473a47cdbff\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e81c8631-cd04-4135-980b-428c24bc1236\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:21.3886685\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-dbe0-420b-97d7-9473a47cdbff\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-b73a-4f46-a07a-3d073a24e425\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-b73a-4f46-a07a-3d073a24e425\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e81c8631-cd04-4135-980b-428c24bc1236\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:21.3863257\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-b73a-4f46-a07a-3d073a24e425\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-dbe0-420b-97d7-9473a47cdbff\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-dbe0-420b-97d7-9473a47cdbff\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e81c8631-cd04-4135-980b-428c24bc1236\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:24:21.5289108\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-dbe0-420b-97d7-9473a47cdbff\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-b73a-4f46-a07a-3d073a24e425\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-b73a-4f46-a07a-3d073a24e425\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e81c8631-cd04-4135-980b-428c24bc1236\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:24:21.5456131\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-b73a-4f46-a07a-3d073a24e425\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-b73a-4f46-a07a-3d073a24e425\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-b73a-4f46-a07a-3d073a24e425\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e81c8631-cd04-4135-980b-428c24bc1236\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-22T17:24:22.5551306\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-b73a-4f46-a07a-3d073a24e425\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-b73a-4f46-a07a-3d073a24e425\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-b73a-4f46-a07a-3d073a24e425\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e81c8631-cd04-4135-980b-428c24bc1236\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-22T17:24:26.7813572\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-b73a-4f46-a07a-3d073a24e425\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaAllTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaAllTest.json index bb96762abe07..93897b9647d1 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaAllTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaAllTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-08db-460d-a825-002681bb3f59\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-08db-460d-a825-002681bb3f59\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:54.0840954\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-08db-460d-a825-002681bb3f59\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-a774-44bd-a732-888ceb55871f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:54.0847103\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-08db-460d-a825-002681bb3f59\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-08db-460d-a825-002681bb3f59\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:05:54.152793\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-08db-460d-a825-002681bb3f59\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-a774-44bd-a732-888ceb55871f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:05:54.1696406\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-a774-44bd-a732-888ceb55871f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:05:57.7083739\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-a774-44bd-a732-888ceb55871f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"9b0ee775-1f15-40ab-8103-fcc07cf735e5\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:06:04.1158282\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-a774-44bd-a732-888ceb55871f\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"31a0a9b9-e466-4595-b4a6-57ab5c82c25c\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-b1ac-4387-9679-70040fcc811f\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-b1ac-4387-9679-70040fcc811f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"31a0a9b9-e466-4595-b4a6-57ab5c82c25c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:23:33.4553223\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-b1ac-4387-9679-70040fcc811f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-dafd-4618-b0bf-14faba5409fb\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-dafd-4618-b0bf-14faba5409fb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"31a0a9b9-e466-4595-b4a6-57ab5c82c25c\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:23:33.4553223\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-dafd-4618-b0bf-14faba5409fb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-dafd-4618-b0bf-14faba5409fb\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-dafd-4618-b0bf-14faba5409fb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"31a0a9b9-e466-4595-b4a6-57ab5c82c25c\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:23:33.5654103\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-dafd-4618-b0bf-14faba5409fb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-b1ac-4387-9679-70040fcc811f\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-b1ac-4387-9679-70040fcc811f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"31a0a9b9-e466-4595-b4a6-57ab5c82c25c\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:23:33.5654103\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-b1ac-4387-9679-70040fcc811f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-b1ac-4387-9679-70040fcc811f\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-b1ac-4387-9679-70040fcc811f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"31a0a9b9-e466-4595-b4a6-57ab5c82c25c\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-22T17:23:34.9690086\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-b1ac-4387-9679-70040fcc811f\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-b1ac-4387-9679-70040fcc811f\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-b1ac-4387-9679-70040fcc811f\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"31a0a9b9-e466-4595-b4a6-57ab5c82c25c\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-22T17:23:41.3916428\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-b1ac-4387-9679-70040fcc811f\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaTest.json index b4169b96c0f8..c62cd583bc00 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleCombinedSourcesWithPlayMediaTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-43be-4948-a136-3fa0fe0ef6c1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:16.6074806\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-258e-43c2-9c37-54ad340bc8c7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-258e-43c2-9c37-54ad340bc8c7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:16.6074806\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-258e-43c2-9c37-54ad340bc8c7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-43be-4948-a136-3fa0fe0ef6c1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:06:16.7115973\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-258e-43c2-9c37-54ad340bc8c7\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-258e-43c2-9c37-54ad340bc8c7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:06:16.7115973\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-258e-43c2-9c37-54ad340bc8c7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-43be-4948-a136-3fa0fe0ef6c1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:19.4760028\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-258e-43c2-9c37-54ad340bc8c7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-258e-43c2-9c37-54ad340bc8c7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:19.47652\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-258e-43c2-9c37-54ad340bc8c7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-43be-4948-a136-3fa0fe0ef6c1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:06:20.4441923\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-43be-4948-a136-3fa0fe0ef6c1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:06:26.842228\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-43be-4948-a136-3fa0fe0ef6c1\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"dfdfda09-f747-4c9d-9198-2839a391a7f2\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:26.8730632\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-43be-4948-a136-3fa0fe0ef6c1\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"b438b634-a03c-4461-aa3f-0329719d6c5a\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-e806-4819-9e70-5215fe9e06cb\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-e806-4819-9e70-5215fe9e06cb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b438b634-a03c-4461-aa3f-0329719d6c5a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:23:48.8723491\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-e806-4819-9e70-5215fe9e06cb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-dc7b-4ecc-8057-abf6b92e96cd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-dc7b-4ecc-8057-abf6b92e96cd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b438b634-a03c-4461-aa3f-0329719d6c5a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:23:48.8723491\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-dc7b-4ecc-8057-abf6b92e96cd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-dc7b-4ecc-8057-abf6b92e96cd\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-dc7b-4ecc-8057-abf6b92e96cd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b438b634-a03c-4461-aa3f-0329719d6c5a\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:23:48.9979011\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-dc7b-4ecc-8057-abf6b92e96cd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-e806-4819-9e70-5215fe9e06cb\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-e806-4819-9e70-5215fe9e06cb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b438b634-a03c-4461-aa3f-0329719d6c5a\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:23:49.0145951\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-e806-4819-9e70-5215fe9e06cb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-e806-4819-9e70-5215fe9e06cb\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-e806-4819-9e70-5215fe9e06cb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b438b634-a03c-4461-aa3f-0329719d6c5a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:23:51.1697171\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-e806-4819-9e70-5215fe9e06cb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-dc7b-4ecc-8057-abf6b92e96cd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-dc7b-4ecc-8057-abf6b92e96cd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b438b634-a03c-4461-aa3f-0329719d6c5a\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:23:51.1697171\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-dc7b-4ecc-8057-abf6b92e96cd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-e806-4819-9e70-5215fe9e06cb\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-e806-4819-9e70-5215fe9e06cb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b438b634-a03c-4461-aa3f-0329719d6c5a\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-22T17:23:51.6888037\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-e806-4819-9e70-5215fe9e06cb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-e806-4819-9e70-5215fe9e06cb\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-e806-4819-9e70-5215fe9e06cb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"b438b634-a03c-4461-aa3f-0329719d6c5a\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-22T17:23:58.1852567\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-e806-4819-9e70-5215fe9e06cb\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaAllTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaAllTest.json index bc331ea6f088..e527b7985380 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaAllTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaAllTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-6f03-49ec-b029-ac5072be4303\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:14.3725764\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-b07a-4740-8ea3-d18de2c7dfa7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-b07a-4740-8ea3-d18de2c7dfa7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:14.3725764\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-b07a-4740-8ea3-d18de2c7dfa7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-b07a-4740-8ea3-d18de2c7dfa7\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-b07a-4740-8ea3-d18de2c7dfa7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:05:14.454832\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-b07a-4740-8ea3-d18de2c7dfa7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-6f03-49ec-b029-ac5072be4303\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:05:14.4801053\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-6f03-49ec-b029-ac5072be4303\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:05:17.6450818\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-6f03-49ec-b029-ac5072be4303\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"69552b92-9c2c-4834-9414-48c69823ca44\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:05:26.1401236\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-6f03-49ec-b029-ac5072be4303\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"517286f6-33d6-414f-acc3-1e26bfeabe80\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-cd5b-4193-8d38-4904d233b3bf\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-cd5b-4193-8d38-4904d233b3bf\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"517286f6-33d6-414f-acc3-1e26bfeabe80\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:23:03.1032789\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-cd5b-4193-8d38-4904d233b3bf\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-468e-4de5-81d3-017d455b3f0b\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-468e-4de5-81d3-017d455b3f0b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"517286f6-33d6-414f-acc3-1e26bfeabe80\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:23:03.1032789\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-468e-4de5-81d3-017d455b3f0b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-cd5b-4193-8d38-4904d233b3bf\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-cd5b-4193-8d38-4904d233b3bf\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"517286f6-33d6-414f-acc3-1e26bfeabe80\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:23:03.2134757\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-cd5b-4193-8d38-4904d233b3bf\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-468e-4de5-81d3-017d455b3f0b\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-468e-4de5-81d3-017d455b3f0b\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"517286f6-33d6-414f-acc3-1e26bfeabe80\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:23:03.1972523\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-468e-4de5-81d3-017d455b3f0b\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-cd5b-4193-8d38-4904d233b3bf\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-cd5b-4193-8d38-4904d233b3bf\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"517286f6-33d6-414f-acc3-1e26bfeabe80\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-22T17:23:04.2079282\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-cd5b-4193-8d38-4904d233b3bf\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-cd5b-4193-8d38-4904d233b3bf\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-cd5b-4193-8d38-4904d233b3bf\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"517286f6-33d6-414f-acc3-1e26bfeabe80\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-22T17:23:12.7169485\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-cd5b-4193-8d38-4904d233b3bf\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaTest.json index e1e0557d8478..38072b6fe043 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleFileSourcesWithPlayMediaTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-bdc5-4318-9ba8-26f7f10740a9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:32.0003496\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:32.0003496\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:04:32.0792708\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-bdc5-4318-9ba8-26f7f10740a9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:04:32.0997967\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-bdc5-4318-9ba8-26f7f10740a9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:36.5537165\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:36.5537165\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-bdc5-4318-9ba8-26f7f10740a9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:04:37.2928537\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-bdc5-4318-9ba8-26f7f10740a9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:04:45.8558804\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-bdc5-4318-9ba8-26f7f10740a9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:45.9037835\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-bdc5-4318-9ba8-26f7f10740a9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-17ff-46b0-b92e-cf4c2f6a463d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"e054834b-4896-4ec6-85e2-200d8bd16c13\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:45.9037835\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-17ff-46b0-b92e-cf4c2f6a463d\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"cf0ad90c-1c88-4545-99b4-ddd1a212f8b1\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-0d69-4c4a-bbd9-1bf7df2bf259\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-0d69-4c4a-bbd9-1bf7df2bf259\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"cf0ad90c-1c88-4545-99b4-ddd1a212f8b1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:25.6838009\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-0d69-4c4a-bbd9-1bf7df2bf259\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d76d-4da1-a003-fa8f7d6f6af9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-d76d-4da1-a003-fa8f7d6f6af9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"cf0ad90c-1c88-4545-99b4-ddd1a212f8b1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:25.6838009\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d76d-4da1-a003-fa8f7d6f6af9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-0d69-4c4a-bbd9-1bf7df2bf259\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-0d69-4c4a-bbd9-1bf7df2bf259\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"cf0ad90c-1c88-4545-99b4-ddd1a212f8b1\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:22:25.7937174\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-0d69-4c4a-bbd9-1bf7df2bf259\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d76d-4da1-a003-fa8f7d6f6af9\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-d76d-4da1-a003-fa8f7d6f6af9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"cf0ad90c-1c88-4545-99b4-ddd1a212f8b1\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:22:25.7937174\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d76d-4da1-a003-fa8f7d6f6af9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d76d-4da1-a003-fa8f7d6f6af9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-d76d-4da1-a003-fa8f7d6f6af9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"cf0ad90c-1c88-4545-99b4-ddd1a212f8b1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:28.5292621\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d76d-4da1-a003-fa8f7d6f6af9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-0d69-4c4a-bbd9-1bf7df2bf259\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-0d69-4c4a-bbd9-1bf7df2bf259\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"cf0ad90c-1c88-4545-99b4-ddd1a212f8b1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:28.5301502\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-0d69-4c4a-bbd9-1bf7df2bf259\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-0d69-4c4a-bbd9-1bf7df2bf259\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-0d69-4c4a-bbd9-1bf7df2bf259\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"cf0ad90c-1c88-4545-99b4-ddd1a212f8b1\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-22T17:22:29.6816417\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-0d69-4c4a-bbd9-1bf7df2bf259\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-0d69-4c4a-bbd9-1bf7df2bf259\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-0d69-4c4a-bbd9-1bf7df2bf259\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"cf0ad90c-1c88-4545-99b4-ddd1a212f8b1\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-22T17:22:38.2727579\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-0d69-4c4a-bbd9-1bf7df2bf259\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d76d-4da1-a003-fa8f7d6f6af9\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-d76d-4da1-a003-fa8f7d6f6af9\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"cf0ad90c-1c88-4545-99b4-ddd1a212f8b1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:38.327154\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d76d-4da1-a003-fa8f7d6f6af9\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-0d69-4c4a-bbd9-1bf7df2bf259\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":6,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-0d69-4c4a-bbd9-1bf7df2bf259\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"cf0ad90c-1c88-4545-99b4-ddd1a212f8b1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:38.3196037\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-0d69-4c4a-bbd9-1bf7df2bf259\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaAllTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaAllTest.json index 194b6f1523ca..f57b4d2b19f8 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaAllTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaAllTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-e745-4794-ac12-1588dfb99237\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:38.4198082\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-7d54-42c0-9b01-1105906c51dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:38.4198082\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-e745-4794-ac12-1588dfb99237\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:06:38.5363308\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-7d54-42c0-9b01-1105906c51dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:06:38.5212957\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-e745-4794-ac12-1588dfb99237\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:41.3350536\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-7d54-42c0-9b01-1105906c51dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:41.3350536\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-e745-4794-ac12-1588dfb99237\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:06:42.1144442\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-e745-4794-ac12-1588dfb99237\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:06:46.5162609\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-e745-4794-ac12-1588dfb99237\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-7d54-42c0-9b01-1105906c51dd\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"6f6ebe11-3bd8-4e77-bee0-9043262ad203\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:06:46.5565499\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7d54-42c0-9b01-1105906c51dd\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"3e66ccf1-4572-4cfc-b2fb-6235dace319b\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-97e1-4f23-8dcd-b0c3446c633d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-97e1-4f23-8dcd-b0c3446c633d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3e66ccf1-4572-4cfc-b2fb-6235dace319b\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:04.9186056\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-97e1-4f23-8dcd-b0c3446c633d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-8e96-48a2-a220-7dc43f5d07f5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-8e96-48a2-a220-7dc43f5d07f5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3e66ccf1-4572-4cfc-b2fb-6235dace319b\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:04.9186056\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-8e96-48a2-a220-7dc43f5d07f5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-97e1-4f23-8dcd-b0c3446c633d\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-97e1-4f23-8dcd-b0c3446c633d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3e66ccf1-4572-4cfc-b2fb-6235dace319b\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:24:05.0124557\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-97e1-4f23-8dcd-b0c3446c633d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-8e96-48a2-a220-7dc43f5d07f5\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-8e96-48a2-a220-7dc43f5d07f5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3e66ccf1-4572-4cfc-b2fb-6235dace319b\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:24:05.05924\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-8e96-48a2-a220-7dc43f5d07f5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-97e1-4f23-8dcd-b0c3446c633d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-97e1-4f23-8dcd-b0c3446c633d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3e66ccf1-4572-4cfc-b2fb-6235dace319b\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:07.4665933\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-97e1-4f23-8dcd-b0c3446c633d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-8e96-48a2-a220-7dc43f5d07f5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-8e96-48a2-a220-7dc43f5d07f5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3e66ccf1-4572-4cfc-b2fb-6235dace319b\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:07.4665933\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-8e96-48a2-a220-7dc43f5d07f5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-8e96-48a2-a220-7dc43f5d07f5\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-8e96-48a2-a220-7dc43f5d07f5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3e66ccf1-4572-4cfc-b2fb-6235dace319b\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-22T17:24:07.908337\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-8e96-48a2-a220-7dc43f5d07f5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-97e1-4f23-8dcd-b0c3446c633d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-97e1-4f23-8dcd-b0c3446c633d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3e66ccf1-4572-4cfc-b2fb-6235dace319b\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:12.4254605\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-97e1-4f23-8dcd-b0c3446c633d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-8e96-48a2-a220-7dc43f5d07f5\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-8e96-48a2-a220-7dc43f5d07f5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3e66ccf1-4572-4cfc-b2fb-6235dace319b\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:24:12.4254605\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-8e96-48a2-a220-7dc43f5d07f5\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-8e96-48a2-a220-7dc43f5d07f5\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-8e96-48a2-a220-7dc43f5d07f5\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"3e66ccf1-4572-4cfc-b2fb-6235dace319b\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-22T17:24:12.3798603\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-8e96-48a2-a220-7dc43f5d07f5\"}]"] \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaTest.json index 4bb4ee7dfd24..228eb133a069 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaTest.json +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/playMultipleTextSourcesWithPlayMediaTest.json @@ -1 +1 @@ -["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-7b28-4520-b387-1f59b3c1304d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:56.639687\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-115d-4771-828b-9f4405cdc393\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:04:56.639687\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-7b28-4520-b387-1f59b3c1304d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:04:56.7655227\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"02002680-115d-4771-828b-9f4405cdc393\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-20T10:04:56.7655227\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-7b28-4520-b387-1f59b3c1304d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:00.5643514\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-115d-4771-828b-9f4405cdc393\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:00.5643514\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-115d-4771-828b-9f4405cdc393\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-20T10:05:01.5654048\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"02002680-115d-4771-828b-9f4405cdc393\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-20T10:05:05.9342264\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-115d-4771-828b-9f4405cdc393\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"02002680-7b28-4520-b387-1f59b3c1304d\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"43971767-d0ea-4c9b-b899-0b354bfe31ef\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-20T10:05:05.9657661\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/02002680-7b28-4520-b387-1f59b3c1304d\"}]"] \ No newline at end of file +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"8b92f293-ab46-49ab-b6fd-70be475f18dc\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-6687-416d-91e2-bd5781623669\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-6687-416d-91e2-bd5781623669\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"8b92f293-ab46-49ab-b6fd-70be475f18dc\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:46.0283943\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-6687-416d-91e2-bd5781623669\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d689-4333-a63b-3b0e06e466e7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-d689-4333-a63b-3b0e06e466e7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"8b92f293-ab46-49ab-b6fd-70be475f18dc\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:46.0283943\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d689-4333-a63b-3b0e06e466e7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-6687-416d-91e2-bd5781623669\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-6687-416d-91e2-bd5781623669\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"8b92f293-ab46-49ab-b6fd-70be475f18dc\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:22:46.1217393\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-6687-416d-91e2-bd5781623669\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d689-4333-a63b-3b0e06e466e7\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"1a006780-d689-4333-a63b-3b0e06e466e7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"8b92f293-ab46-49ab-b6fd-70be475f18dc\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2025-05-22T17:22:46.1373649\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d689-4333-a63b-3b0e06e466e7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-6687-416d-91e2-bd5781623669\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-6687-416d-91e2-bd5781623669\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"8b92f293-ab46-49ab-b6fd-70be475f18dc\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:48.7198313\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-6687-416d-91e2-bd5781623669\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d689-4333-a63b-3b0e06e466e7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":4,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-d689-4333-a63b-3b0e06e466e7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"8b92f293-ab46-49ab-b6fd-70be475f18dc\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:48.7198313\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d689-4333-a63b-3b0e06e466e7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d689-4333-a63b-3b0e06e466e7\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-d689-4333-a63b-3b0e06e466e7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"8b92f293-ab46-49ab-b6fd-70be475f18dc\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2025-05-22T17:22:49.2878472\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d689-4333-a63b-3b0e06e466e7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d689-4333-a63b-3b0e06e466e7\",\"type\":\"Microsoft.Communication.PlayCompleted\",\"data\":{\"version\":\"2025-05-15\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"1a006780-d689-4333-a63b-3b0e06e466e7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"8b92f293-ab46-49ab-b6fd-70be475f18dc\",\"publicEventType\":\"Microsoft.Communication.PlayCompleted\"},\"time\":\"2025-05-22T17:22:53.7898512\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d689-4333-a63b-3b0e06e466e7\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-6687-416d-91e2-bd5781623669\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-6687-416d-91e2-bd5781623669\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"8b92f293-ab46-49ab-b6fd-70be475f18dc\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:53.8105115\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-6687-416d-91e2-bd5781623669\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/1a006780-d689-4333-a63b-3b0e06e466e7\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2025-05-15\",\"callConnectionId\":\"1a006780-d689-4333-a63b-3b0e06e466e7\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"8b92f293-ab46-49ab-b6fd-70be475f18dc\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2025-05-22T17:22:53.8105115\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/1a006780-d689-4333-a63b-3b0e06e466e7\"}]"] \ No newline at end of file From 99dccc2933d4d649e461b9442bafd17f256064a2 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Thu, 22 May 2025 13:52:21 -0700 Subject: [PATCH 10/31] updating java missing fields --- .../CHANGELOG.md | 2 +- .../README.md | 2 +- .../pom.xml | 2 +- .../callautomation/CallMediaAsync.java | 3 +- .../models/TranscriptionSubscription.java | 21 +++++++++++ .../callautomation/models/UnholdOptions.java | 35 +++++++++++++++++-- 6 files changed, 59 insertions(+), 6 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/CHANGELOG.md b/sdk/communication/azure-communication-callautomation/CHANGELOG.md index b265029b0130..7aad649cc4ad 100644 --- a/sdk/communication/azure-communication-callautomation/CHANGELOG.md +++ b/sdk/communication/azure-communication-callautomation/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.4.0-beta.2 (Unreleased) +## 1.4.0 (Unreleased) ### Features Added diff --git a/sdk/communication/azure-communication-callautomation/README.md b/sdk/communication/azure-communication-callautomation/README.md index 033189d8d86d..cc3b24a868ae 100644 --- a/sdk/communication/azure-communication-callautomation/README.md +++ b/sdk/communication/azure-communication-callautomation/README.md @@ -22,7 +22,7 @@ This package contains a Java SDK for Azure Communication Call Automation Service com.azure azure-communication-callautomation - 1.4.0-beta.2 + 1.4.0 ``` diff --git a/sdk/communication/azure-communication-callautomation/pom.xml b/sdk/communication/azure-communication-callautomation/pom.xml index b348054b12c6..e4d68bda1534 100644 --- a/sdk/communication/azure-communication-callautomation/pom.xml +++ b/sdk/communication/azure-communication-callautomation/pom.xml @@ -15,7 +15,7 @@ com.azure azure-communication-callautomation jar - 1.4.0-beta.2 + 1.4.0 Microsoft Azure client library for Call Automation service diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java index 101209a008a3..ae9b940eb0cc 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java @@ -802,7 +802,8 @@ Mono> unholdWithResponseInternal(UnholdOptions options, Context c context = context == null ? Context.NONE : context; UnholdRequest request = new UnholdRequest() .setTargetParticipant(CommunicationIdentifierConverter.convert(options.getTargetParticipant())) - .setOperationContext(options.getOperationContext()); + .setOperationContext(options.getOperationContext()) + .setOperationCallbackUri(options.getOperationCallbackUrl()); return contentsInternal.unholdWithResponseAsync(callConnectionId, request, context); } catch (RuntimeException ex) { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java index 7c654800d844..25d170d2b5d2 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java @@ -31,6 +31,11 @@ public final class TranscriptionSubscription implements JsonSerializable TranscriptionResultState.fromString(resultType.toString())) .collect(Collectors.toList()) : null; + this.Locale = transcriptionSubscriptionInternal.getLocale() != null + ? transcriptionSubscriptionInternal.getLocale().toString() + : null; } /** @@ -91,6 +100,15 @@ public TranscriptionSubscriptionState getState() { return this.state; } + /** + * Get the state property: Gets or Sets transcription subscription state. + * + * @return the state value. + */ + public String getLocale() { + return this.Locale; + } + /** * Get the subscribedResultStates property: Gets or Sets the subscribed transcription result types. * @@ -107,6 +125,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); jsonWriter.writeArrayField("subscribedResultStates", this.subscribedResultStates, (writer, element) -> writer.writeString(element == null ? null : element.toString())); + jsonWriter.writeStringField("locale", this.Locale); return jsonWriter.writeEndObject(); } @@ -134,6 +153,8 @@ public static TranscriptionSubscription fromJson(JsonReader jsonReader) throws I List subscribedResultTypes = reader.readArray(reader1 -> TranscriptionResultState.fromString(reader1.getString())); deserializedTranscriptionSubscription.subscribedResultStates = subscribedResultTypes; + } else if ("locale".equals(fieldName)) { + deserializedTranscriptionSubscription.Locale = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnholdOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnholdOptions.java index 02aafab059b2..c09cfda02eb0 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnholdOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnholdOptions.java @@ -10,8 +10,9 @@ */ public final class UnholdOptions { - /** - * Participant to put on unhold. + /* + * Participants to be hold from the call. + * Only ACS Users are supported. */ private final CommunicationIdentifier targetParticipant; @@ -20,6 +21,12 @@ public final class UnholdOptions { */ private String operationContext; + /* + * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation. + * This setup is per-action. If this is not set, the default callback URL set by CreateCall/AnswerCall will be used. + */ + private String operationCallbackUrl; + /** * Create a new UnholdOptions object. * @param targetParticipant Participant to be put on unhold. @@ -53,4 +60,28 @@ public UnholdOptions setOperationContext(String operationContext) { this.operationContext = operationContext; return this; } + + /** + * Get the operationCallbackUrl property: Set a callback URI that overrides the default callback URL set by + * CreateCall/AnswerCall for this operation. + * This setup is per-action. If this is not set, the default callback URL set by CreateCall/AnswerCall will be used. + * + * @return the operationCallbackUrl value. + */ + public String getOperationCallbackUrl() { + return this.operationCallbackUrl; + } + + /** + * Set the operationCallbackUrl property: Set a callback URI that overrides the default callback URI set by + * CreateCall/AnswerCall for this operation. + * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. + * + * @param operationCallbackUrl the operationCallbackUrl value to set. + * @return the UnholdRequest object itself. + */ + public UnholdOptions setOperationCallbackUri(String operationCallbackUrl) { + this.operationCallbackUrl = operationCallbackUrl; + return this; + } } From 50ad4c799055a60214fc7527b2bf42fcfa021041 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Thu, 22 May 2025 13:55:24 -0700 Subject: [PATCH 11/31] lint errors --- .../callautomation/models/UnholdOptions.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnholdOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnholdOptions.java index c09cfda02eb0..7e8c49278c33 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnholdOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnholdOptions.java @@ -26,7 +26,7 @@ public final class UnholdOptions { * This setup is per-action. If this is not set, the default callback URL set by CreateCall/AnswerCall will be used. */ private String operationCallbackUrl; - + /** * Create a new UnholdOptions object. * @param targetParticipant Participant to be put on unhold. @@ -61,13 +61,13 @@ public UnholdOptions setOperationContext(String operationContext) { return this; } - /** - * Get the operationCallbackUrl property: Set a callback URI that overrides the default callback URL set by - * CreateCall/AnswerCall for this operation. - * This setup is per-action. If this is not set, the default callback URL set by CreateCall/AnswerCall will be used. - * - * @return the operationCallbackUrl value. - */ + /** + * Get the operationCallbackUrl property: Set a callback URI that overrides the default callback URL set by + * CreateCall/AnswerCall for this operation. + * This setup is per-action. If this is not set, the default callback URL set by CreateCall/AnswerCall will be used. + * + * @return the operationCallbackUrl value. + */ public String getOperationCallbackUrl() { return this.operationCallbackUrl; } From 6fafaf3e9b37ee2a1d4fc0f8412e4e555a2b44aa Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Fri, 23 May 2025 14:39:19 -0700 Subject: [PATCH 12/31] moving transport url --- .../CallAutomationAsyncClient.java | 3 +- .../models/MediaStreamingOptions.java | 25 ++++++++++-- .../models/TranscriptionOptions.java | 39 ++++++++++++++----- .../CallAutomationUnitTestBase.java | 4 +- .../CallMediaAsyncAutomatedLiveTests.java | 5 ++- 5 files changed, 58 insertions(+), 18 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java index 2314d820c46c..f9410a4e7de3 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java @@ -292,7 +292,8 @@ private CreateCallRequestInternal getCreateCallRequestInternal(CreateGroupCallOp .setEnableBidirectional(mediaStreamingOptions.isEnableBidirectional()) .setAudioFormat(AudioFormatInternal.fromString(mediaStreamingOptions.getAudioFormat() != null ? mediaStreamingOptions.getAudioFormat().toString() - : null)); + : null)) + .setEnableDtmfTones(mediaStreamingOptions.isEnableDtmfTones()); } private TranscriptionOptionsInternal getTranscriptionOptionsInternal(TranscriptionOptions transcriptionOptions) { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java index 760c0fcdfe1c..5014bf2641d4 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java @@ -11,7 +11,7 @@ public final class MediaStreamingOptions { /* * Transport URL for media streaming */ - private final String transportUrl; + private String transportUrl; /* * The type of transport to be used for media streaming, eg. Websocket @@ -53,14 +53,22 @@ public final class MediaStreamingOptions { * @param transportUrl - The Transport URL * @param audioChannelType - Audio Channel Type */ - public MediaStreamingOptions(String transportUrl, MediaStreamingAudioChannel audioChannelType) { - this.transportUrl = transportUrl; + public MediaStreamingOptions(MediaStreamingAudioChannel audioChannelType, StreamingTransport transportType) { this.transportType = StreamingTransport.WEBSOCKET; this.contentType = MediaStreamingContentType.AUDIO; this.audioChannelType = audioChannelType; this.startMediaStreaming = false; } + /** + * Creates a new instance of TranscriptionOptions with default transportType as WEBSOCKET. + * @param transportUrl - The Transport URL + * @param locale - Locale + */ + public MediaStreamingOptions(MediaStreamingAudioChannel audioChannelType) { + this(audioChannelType, StreamingTransport.WEBSOCKET); + } + /** * Get the transportUrl property: Transport URL for media streaming. * @@ -70,6 +78,17 @@ public String getTransportUrl() { return this.transportUrl; } + /** + * Set the transportUrl property: Transport URL for media streaming. + * + * @param transportUrl the transportUrl value to set. + * @return the MediaStreamingOptions object itself. + */ + public MediaStreamingOptions setTransportUrl(String transportUrl) { + this.transportUrl = transportUrl; + return this; + } + /** * Get the transportType property: The type of tranport to be used for media streaming, eg. Websocket. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java index cbf792e9f2b8..0929d23314f6 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java @@ -8,11 +8,6 @@ /** The TranscriptionOptions model. */ @Fluent public final class TranscriptionOptions { - /* - * Transport URL for live transcription - */ - private final String transportUrl; - /* * The type of transport to be used for live transcription, eg. Websocket */ @@ -38,18 +33,31 @@ public final class TranscriptionOptions { */ private Boolean enableIntermediateResults; + /* + * Transport URL for live transcription + */ + private String transportUrl; + /** - * Creates a new instance of MediaStreamingConfiguration - * @param transportUrl - The Transport URL + * Creates a new instance of TranscriptionOptions * @param locale - Locale + * @param transportType - The type of transport to be used for live transcription */ - public TranscriptionOptions(String transportUrl, String locale) { - this.transportUrl = transportUrl; - this.transportType = StreamingTransport.WEBSOCKET; + public TranscriptionOptions(String locale, StreamingTransport transportType) { + this.transportType = transportType; this.locale = locale; this.startTranscription = false; } + /** + * Creates a new instance of TranscriptionOptions with default transportType as WEBSOCKET. + * @param transportUrl - The Transport URL + * @param locale - Locale + */ + public TranscriptionOptions(String locale) { + this(locale, StreamingTransport.WEBSOCKET); + } + /** * Get the transportUrl property: Transport URL for live transcription. * @@ -59,6 +67,17 @@ public String getTransportUrl() { return this.transportUrl; } + /** + * Set the transportUrl property: Transport URL for live transcription. + * + * @param transportUrl the transportUrl value to set. + * @return the TranscriptionOptions object itself. + */ + public TranscriptionOptions setTransportUrl(String transportUrl) { + this.transportUrl = transportUrl; + return this; + } + /** * Get the transportType property: The type of transport to be used for live transcription, eg. Websocket. * diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java index ee4430361b34..b95b90201352 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallAutomationUnitTestBase.java @@ -60,11 +60,11 @@ public class CallAutomationUnitTestBase { static final String BOT_APP_ID = "botAppId"; static final MediaStreamingOptions MEDIA_STREAMING_CONFIGURATION - = new MediaStreamingOptions("https://websocket.url.com", MediaStreamingAudioChannel.MIXED) + = new MediaStreamingOptions(MediaStreamingAudioChannel.MIXED).setTransportUrl("https://websocket.url.com") .setStartMediaStreaming(true); static final TranscriptionOptions TRANSCRIPTION_CONFIGURATION - = new TranscriptionOptions("https://websocket.url.com", "en-US").setStartTranscription(true); + = new TranscriptionOptions("en-US").setTransportUrl("https://websocket.url.com").setStartTranscription(true); public static String generateDownloadResult(String content) { return content; diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java index df9d34d90848..dbe4e6148d5c 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallMediaAsyncAutomatedLiveTests.java @@ -422,7 +422,7 @@ public void createVOIPCallAndMediaStreamingTest(HttpClient httpClient) { // create options List targets = new ArrayList<>(Collections.singletonList(target)); MediaStreamingOptions mediaStreamingOptions - = new MediaStreamingOptions(TRANSPORT_URL, MediaStreamingAudioChannel.MIXED); + = new MediaStreamingOptions(MediaStreamingAudioChannel.MIXED).setTransportUrl(TRANSPORT_URL); CreateGroupCallOptions createCallOptions = new CreateGroupCallOptions(targets, DISPATCHER_CALLBACK + String.format("?q=%s", uniqueId)); @@ -537,7 +537,8 @@ public void createVOIPCallAndTranscriptionTest(HttpClient httpClient) { // create a call List targets = new ArrayList<>(Collections.singletonList(target)); - TranscriptionOptions transcriptionOptions = new TranscriptionOptions(TRANSPORT_URL, "en-US"); + TranscriptionOptions transcriptionOptions + = new TranscriptionOptions("en-US").setTransportUrl(TRANSPORT_URL); CreateGroupCallOptions createCallOptions = new CreateGroupCallOptions(targets, DISPATCHER_CALLBACK + String.format("?q=%s", uniqueId)); createCallOptions.setTranscriptionOptions(transcriptionOptions); From 0b8acfaba98d8e9e4252e06715243cac27eeee8d Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Tue, 27 May 2025 07:02:16 -0700 Subject: [PATCH 13/31] Addressing the ARB Comments --- .../accesshelpers/AudioDataContructorProxy.java | 15 +++++++++++++-- .../AudioMetadataContructorProxy.java | 9 ++++++++- ...ediaStreamingSubscriptionConstructorProxy.java | 9 ++++++++- .../TranscriptionDataContructorProxy.java | 9 ++++++++- .../TranscriptionMetadataContructorProxy.java | 9 ++++++++- ...TranscriptionSubscriptionConstructorProxy.java | 9 ++++++++- .../callautomation/models/AudioData.java | 11 ----------- .../callautomation/models/AudioMetadata.java | 11 ----------- .../models/MediaStreamingSubscription.java | 2 +- .../callautomation/models/TranscriptionData.java | 15 --------------- .../models/TranscriptionMetadata.java | 12 ------------ .../models/TranscriptionSubscription.java | 2 +- .../callautomation/models/UnholdOptions.java | 2 +- 13 files changed, 56 insertions(+), 59 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioDataContructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioDataContructorProxy.java index 62ec75f50006..507377cfa7fb 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioDataContructorProxy.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioDataContructorProxy.java @@ -6,11 +6,14 @@ import com.azure.communication.callautomation.implementation.converters.AudioDataConverter; import com.azure.communication.callautomation.models.AudioData; import com.azure.core.util.BinaryData; +import com.azure.core.util.logging.ClientLogger; /** * Helper class to access private values of {@link AudioData} across package boundaries. */ public final class AudioDataContructorProxy { + private static final ClientLogger LOGGER = new ClientLogger(AudioDataContructorProxy.class); + private static AudioDataContructorProxyAccessor accessor; private AudioDataContructorProxy() { @@ -60,7 +63,11 @@ public static AudioData create(AudioDataConverter internalResponse) { // application accesses AudioData which triggers the accessor to be configured. So, if the accessor // is null this effectively pokes the class to set up the accessor. if (accessor == null) { - new AudioData(); + try { + Class.forName(AudioData.class.getName(), true, AudioDataContructorProxyAccessor.class.getClassLoader()); + } catch (ClassNotFoundException e) { + throw LOGGER.logExceptionAsError(new RuntimeException(e)); + } } assert accessor != null; @@ -78,7 +85,11 @@ public static AudioData create(BinaryData data) { // application accesses AudioData which triggers the accessor to be configured. So, if the accessor // is null this effectively pokes the class to set up the accessor. if (accessor == null) { - new AudioData(); + try { + Class.forName(AudioData.class.getName(), true, AudioDataContructorProxyAccessor.class.getClassLoader()); + } catch (ClassNotFoundException e) { + throw LOGGER.logExceptionAsError(new RuntimeException(e)); + } } assert accessor != null; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioMetadataContructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioMetadataContructorProxy.java index 3e44104475e1..5386f652c307 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioMetadataContructorProxy.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/AudioMetadataContructorProxy.java @@ -5,11 +5,13 @@ import com.azure.communication.callautomation.implementation.converters.AudioMetadataConverter; import com.azure.communication.callautomation.models.AudioMetadata; +import com.azure.core.util.logging.ClientLogger; /** * Helper class to access private values of {@link AudioMetaData} across package boundaries. */ public final class AudioMetadataContructorProxy { + private static final ClientLogger LOGGER = new ClientLogger(AudioMetadataContructorProxy.class); private static AudioMetadataContructorProxyAccessor accessor; private AudioMetadataContructorProxy() { @@ -51,7 +53,12 @@ public static AudioMetadata create(AudioMetadataConverter internalResponse) { // application accesses AudioMetadata which triggers the accessor to be configured. So, if the accessor // is null this effectively pokes the class to set up the accessor. if (accessor == null) { - new AudioMetadata(); + try { + Class.forName(AudioMetadata.class.getName(), true, + AudioMetadataContructorProxyAccessor.class.getClassLoader()); + } catch (ClassNotFoundException e) { + throw LOGGER.logExceptionAsError(new RuntimeException(e)); + } } assert accessor != null; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/MediaStreamingSubscriptionConstructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/MediaStreamingSubscriptionConstructorProxy.java index a018a16ce9a7..c3d09b4acc35 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/MediaStreamingSubscriptionConstructorProxy.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/MediaStreamingSubscriptionConstructorProxy.java @@ -5,11 +5,13 @@ import com.azure.communication.callautomation.implementation.models.MediaStreamingSubscriptionInternal; import com.azure.communication.callautomation.models.MediaStreamingSubscription; +import com.azure.core.util.logging.ClientLogger; /** * Helper class to access private values of {@link MediaStreamingSubscriptionInternal} across package boundaries. */ public final class MediaStreamingSubscriptionConstructorProxy { + private static final ClientLogger LOGGER = new ClientLogger(MediaStreamingSubscriptionConstructorProxy.class); private static MediaStreamingSubscriptionConstructorAccessor accessor; private MediaStreamingSubscriptionConstructorProxy() { @@ -51,7 +53,12 @@ public static MediaStreamingSubscription create(MediaStreamingSubscriptionIntern // application accesses MediaStreamingSubscription which triggers the accessor to be configured. So, if the accessor // is null this effectively pokes the class to set up the accessor. if (accessor == null) { - new MediaStreamingSubscription(); + try { + Class.forName(MediaStreamingSubscription.class.getName(), true, + MediaStreamingSubscriptionConstructorAccessor.class.getClassLoader()); + } catch (ClassNotFoundException e) { + throw LOGGER.logExceptionAsError(new RuntimeException(e)); + } } assert accessor != null; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionDataContructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionDataContructorProxy.java index 75dcc0af02fa..2aa945b2b10b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionDataContructorProxy.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionDataContructorProxy.java @@ -5,11 +5,13 @@ import com.azure.communication.callautomation.implementation.converters.TranscriptionDataConverter; import com.azure.communication.callautomation.models.TranscriptionData; +import com.azure.core.util.logging.ClientLogger; /** * Helper class to access private values of {@link TranscriptionData} across package boundaries. */ public final class TranscriptionDataContructorProxy { + private static final ClientLogger LOGGER = new ClientLogger(TranscriptionDataContructorProxy.class); private static TranscriptionDataContructorProxyAccessor accessor; private TranscriptionDataContructorProxy() { @@ -51,7 +53,12 @@ public static TranscriptionData create(TranscriptionDataConverter internalRespon // application accesses AudioData which triggers the accessor to be configured. So, if the accessor // is null this effectively pokes the class to set up the accessor. if (accessor == null) { - new TranscriptionData(); + try { + Class.forName(TranscriptionData.class.getName(), true, + TranscriptionDataContructorProxyAccessor.class.getClassLoader()); + } catch (ClassNotFoundException e) { + throw LOGGER.logExceptionAsError(new RuntimeException(e)); + } } assert accessor != null; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionMetadataContructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionMetadataContructorProxy.java index 94bd5e35ad78..4441b00bf9b7 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionMetadataContructorProxy.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionMetadataContructorProxy.java @@ -5,11 +5,13 @@ import com.azure.communication.callautomation.implementation.converters.TranscriptionMetadataConverter; import com.azure.communication.callautomation.models.TranscriptionMetadata; +import com.azure.core.util.logging.ClientLogger; /** * Helper class to access private values of {@link TranscriptionMetadata} across package boundaries. */ public final class TranscriptionMetadataContructorProxy { + private static final ClientLogger LOGGER = new ClientLogger(TranscriptionMetadataContructorProxy.class); private static TranscriptionMetadataContructorProxyAccessor accessor; private TranscriptionMetadataContructorProxy() { @@ -51,7 +53,12 @@ public static TranscriptionMetadata create(TranscriptionMetadataConverter intern // application accesses TranscriptionMetadata which triggers the accessor to be configured. So, if the accessor // is null this effectively pokes the class to set up the accessor. if (accessor == null) { - new TranscriptionMetadata(); + try { + Class.forName(TranscriptionMetadata.class.getName(), true, + TranscriptionMetadataContructorProxyAccessor.class.getClassLoader()); + } catch (ClassNotFoundException e) { + throw LOGGER.logExceptionAsError(new RuntimeException(e)); + } } assert accessor != null; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionSubscriptionConstructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionSubscriptionConstructorProxy.java index fe72968a6ad6..0222094755af 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionSubscriptionConstructorProxy.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/TranscriptionSubscriptionConstructorProxy.java @@ -5,11 +5,13 @@ import com.azure.communication.callautomation.implementation.models.TranscriptionSubscriptionInternal; import com.azure.communication.callautomation.models.TranscriptionSubscription; +import com.azure.core.util.logging.ClientLogger; /** * Helper class to access private values of {@link TranscriptionSubscriptionInternal} across package boundaries. */ public final class TranscriptionSubscriptionConstructorProxy { + private static final ClientLogger LOGGER = new ClientLogger(TranscriptionSubscriptionConstructorProxy.class); private static TranscriptionSubscriptionConstructorAccessor accessor; private TranscriptionSubscriptionConstructorProxy() { @@ -51,7 +53,12 @@ public static TranscriptionSubscription create(TranscriptionSubscriptionInternal // application accesses TranscriptionSubscription which triggers the accessor to be configured. So, if the accessor // is null this effectively pokes the class to set up the accessor. if (accessor == null) { - new TranscriptionSubscription(); + try { + Class.forName(TranscriptionSubscription.class.getName(), true, + TranscriptionSubscriptionConstructorAccessor.class.getClassLoader()); + } catch (ClassNotFoundException e) { + throw LOGGER.logExceptionAsError(new RuntimeException(e)); + } } assert accessor != null; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java index 69944f0b144a..a29e6b77c571 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java @@ -65,17 +65,6 @@ public AudioData create(BinaryData data) { this.silent = internalData.isSilent(); } - /** - * The constructor - */ - public AudioData() { - super(StreamingDataKind.AUDIO_DATA); - this.data = null; - this.timestamp = null; - this.participant = null; - this.silent = false; - } - /** * The constructor * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java index 8d88583d0e7b..a2045733ef99 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioMetadata.java @@ -55,17 +55,6 @@ public AudioMetadata create(AudioMetadataConverter internalData) { this.channels = convertToChannelsEnum(internalData.getChannels()); } - /** - * Creats the audiometadata instance - */ - public AudioMetadata() { - super(StreamingDataKind.AUDIO_METADATA); - this.mediaSubscriptionId = null; - this.encoding = null; - this.sampleRate = null; - this.channels = null; - } - /** * A unique identifier for the media subscription. * Get the mediaSubscriptionId property. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingSubscription.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingSubscription.java index 4cec4a411c6b..bdc870b3d49b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingSubscription.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingSubscription.java @@ -49,7 +49,7 @@ public MediaStreamingSubscription create(MediaStreamingSubscriptionInternal inte /** * Creates an instance of MediaStreamingSubscription class. */ - public MediaStreamingSubscription() { + MediaStreamingSubscription() { id = null; state = null; subscribedContentTypes = null; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java index 985fb64a0230..0216b0d06a27 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java @@ -95,21 +95,6 @@ protected TranscriptionData(TranscriptionDataConverter internalData) { this.resultState = convertToResultStatusEnum(internalData.getResultStatus()); } - /** - * Create instance of transcription data - */ - public TranscriptionData() { - super(StreamingDataKind.TRANSCRIPTION_DATA); - this.text = null; - this.format = null; - this.confidence = null; - this.offset = null; - this.duration = null; - this.words = null; - this.participant = null; - this.resultState = null; - } - private TranscriptionResultState convertToResultStatusEnum(String resultStatus) { if ("Intermediate".equalsIgnoreCase(resultStatus)) { return TranscriptionResultState.INTERMEDIATE; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java index 69e1fa3cb4fe..98fd0c09b139 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java @@ -59,18 +59,6 @@ public TranscriptionMetadata create(TranscriptionMetadataConverter internalData) this.speechRecognitionModelEndpointId = internalData.getSpeechRecognitionModelEndpointId(); } - /** - * Creates an instance of TranscriptionMetadata class. - */ - public TranscriptionMetadata() { - super(StreamingDataKind.TRANSCRIPTION_METADATA); - this.transcriptionSubscriptionId = null; - this.locale = null; - this.callConnectionId = null; - this.correlationId = null; - this.speechRecognitionModelEndpointId = null; - } - /** * Get the transcriptionSubscriptionId property. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java index 25d170d2b5d2..b9a1063b066d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java @@ -54,7 +54,7 @@ public TranscriptionSubscription create(TranscriptionSubscriptionInternal intern /** * Creates an instance of TranscriptionSubscriptionInternal class. */ - public TranscriptionSubscription() { + TranscriptionSubscription() { id = null; state = null; subscribedResultStates = null; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnholdOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnholdOptions.java index 7e8c49278c33..3b3debc065bf 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnholdOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/UnholdOptions.java @@ -80,7 +80,7 @@ public String getOperationCallbackUrl() { * @param operationCallbackUrl the operationCallbackUrl value to set. * @return the UnholdRequest object itself. */ - public UnholdOptions setOperationCallbackUri(String operationCallbackUrl) { + public UnholdOptions setOperationCallbackUrl(String operationCallbackUrl) { this.operationCallbackUrl = operationCallbackUrl; return this; } From 2fe8f6532f2740d3ef2a6f1e247bcfb1f3010ada Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Tue, 27 May 2025 11:29:10 -0700 Subject: [PATCH 14/31] addressing the arb comments --- .../callautomation/CallMediaAsync.java | 4 +- .../DtmfDataContructorProxy.java | 14 +++++- .../callautomation/models/AudioData.java | 8 ++-- .../callautomation/models/DtmfData.java | 47 ------------------- .../models/OutStreamingData.java | 12 ++--- .../models/TranscriptionData.java | 9 ++-- .../models/TranscriptionMetadata.java | 4 +- 7 files changed, 33 insertions(+), 65 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java index ae9b940eb0cc..82a07eee4b96 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallMediaAsync.java @@ -882,7 +882,7 @@ Mono> stopTranscriptionWithResponseInternal(StopTranscriptionOpti } /** - * Updates transcription language + * API to change transcription language * * @param locale Defines new locale for transcription. * @return Response for successful operation. @@ -893,7 +893,7 @@ public Mono updateTranscription(String locale) { } /** - * Updates transcription language + * API to change transcription language * @param options Options for the Update Transcription operation. * @return Response for successful operation. */ diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DtmfDataContructorProxy.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DtmfDataContructorProxy.java index 6e33f9a6aef1..64932060a695 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DtmfDataContructorProxy.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/DtmfDataContructorProxy.java @@ -5,11 +5,13 @@ import com.azure.communication.callautomation.implementation.converters.DtmfDataConverter; import com.azure.communication.callautomation.models.DtmfData; +import com.azure.core.util.logging.ClientLogger; /** * Helper class to access private values of {@link DtmdfData} across package boundaries. */ public final class DtmfDataContructorProxy { + private static final ClientLogger LOGGER = new ClientLogger(DtmfDataContructorProxy.class); private static DtmfDataContructorProxyAccessor accessor; private DtmfDataContructorProxy() { @@ -59,7 +61,11 @@ public static DtmfData create(DtmfDataConverter internalResponse) { // application accesses DtmfData which triggers the accessor to be configured. So, if the accessor // is null this effectively pokes the class to set up the accessor. if (accessor == null) { - new DtmfData(); + try { + Class.forName(DtmfData.class.getName(), true, DtmfDataContructorProxyAccessor.class.getClassLoader()); + } catch (ClassNotFoundException e) { + throw LOGGER.logExceptionAsError(new RuntimeException(e)); + } } assert accessor != null; @@ -77,7 +83,11 @@ public static DtmfData create(String data) { // application accesses DtmfData which triggers the accessor to be configured. So, if the accessor // is null this effectively pokes the class to set up the accessor. if (accessor == null) { - new DtmfData(); + try { + Class.forName(DtmfData.class.getName(), true, DtmfDataContructorProxyAccessor.class.getClassLoader()); + } catch (ClassNotFoundException e) { + throw LOGGER.logExceptionAsError(new RuntimeException(e)); + } } assert accessor != null; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java index a29e6b77c571..4ef8ec30ca7d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AudioData.java @@ -11,7 +11,8 @@ import com.azure.communication.common.CommunicationIdentifier; import com.azure.core.util.BinaryData; -/** The MediaStreamingAudio model. */ +/** The data which contains the audio data stream information such as timestamp, data.. + */ public final class AudioData extends StreamingData { /* * The audio data, encoded as a binary data. @@ -79,10 +80,10 @@ public AudioData create(BinaryData data) { } /** - * The audio data, encoded as a binary data. + * The audio data, encoded audio binary data. * Get the data property. * - * @return the data value. + * @return the encoded audio binary data. */ public BinaryData getData() { return data; @@ -110,6 +111,7 @@ public CommunicationIdentifier getParticipant() { } /** + * Indicates if the received audio buffer contains only silence * Get the silent property. * * @return the silent value. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java index b71f39f392dc..0db95854bcaf 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java @@ -17,17 +17,6 @@ public final class DtmfData extends StreamingData { */ private final String data; - /* - * The timestamp indicating when the media content was received by the bot, or if the bot is sending media, - * the timestamp of when the media was sourced. The format is ISO 8601 (yyyy-mm-ddThh:mm) - */ - private final OffsetDateTime timestamp; - - /* - * The raw ID of the participant. - */ - private final CommunicationIdentifier participant; - static { DtmfDataContructorProxy.setAccessor(new DtmfDataContructorProxy.DtmfDataContructorProxyAccessor() { @Override @@ -50,22 +39,6 @@ public DtmfData create(String data) { DtmfData(DtmfDataConverter internalData) { super(StreamingDataKind.DTMF_DATA); this.data = internalData.getData(); - this.timestamp = OffsetDateTime.parse(internalData.getTimestamp(), DateTimeFormatter.ISO_OFFSET_DATE_TIME); - if (internalData.getParticipantRawID() != null && !internalData.getParticipantRawID().isEmpty()) { - this.participant = CommunicationIdentifier.fromRawId(internalData.getParticipantRawID()); - } else { - participant = null; - } - } - - /** - * The constructor - */ - public DtmfData() { - super(StreamingDataKind.DTMF_DATA); - this.data = null; - this.timestamp = null; - this.participant = null; } /** @@ -76,8 +49,6 @@ public DtmfData() { DtmfData(String data) { super(StreamingDataKind.DTMF_DATA); this.data = data; - this.timestamp = null; - this.participant = null; } /** @@ -88,22 +59,4 @@ public DtmfData() { public String getData() { return data; } - - /** - * Get the timestamp property. - * - * @return the timestamp value. - */ - public OffsetDateTime getTimestamp() { - return timestamp; - } - - /** - * Get the participantRawID property. - * - * @return the participantRawID value. - */ - public CommunicationIdentifier getParticipant() { - return participant; - } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java index 950f4f284597..fd316b1cc0a5 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java @@ -8,14 +8,12 @@ import java.io.Writer; import java.util.Base64; -import com.azure.core.annotation.Fluent; import com.azure.core.util.BinaryData; import com.azure.json.JsonProviders; import com.azure.json.JsonWriter; -/** The PlaySource model. */ -@Fluent -public class OutStreamingData { +/** This class stream audio data back to Azure Communication Services, which plays the audio into the cal */ +public final class OutStreamingData { /** * Out streaming data kind ex. StopAudio, AudioData @@ -37,7 +35,7 @@ public class OutStreamingData { * * @param kind media kind type on the out streaming data */ - public OutStreamingData(MediaKind kind) { + OutStreamingData(MediaKind kind) { this.kind = kind; } @@ -81,10 +79,10 @@ OutStreamingData setStopAudio() { } /** + * Serialized audio data to play back into the cal * Get the streaming data for outbound * @param audioData the audioData to set * @return the string of outstreaming data - * @throws IOException when failed to serilize the data * */ public static String getStreamingDataForOutbound(BinaryData audioData) throws IOException { @@ -94,9 +92,9 @@ public static String getStreamingDataForOutbound(BinaryData audioData) throws IO } /** + * Serialized stop data to stop playing audio back into the call * Get the stop audiofor outbound * @return the string of outstreaming data - * @throws IOException throws exception when failed to serialize * */ public static String getStopAudioForOutbound() throws IOException { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java index 0216b0d06a27..97153b4c4a0c 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionData.java @@ -13,7 +13,7 @@ import java.time.Duration; /** - * The TranscriptionData model. + * The data which contains the transcription data stream information such as DisplayText.. */ @Immutable public final class TranscriptionData extends StreamingData { @@ -125,7 +125,8 @@ public String getText() { } /** - * Get the format property. + * The format of tex + * Get the format property. * * @return the format value. */ @@ -144,7 +145,7 @@ public double getConfidence() { } /** - * The position of this payload + * The starting position of this payload * Get the offset property. * * @return the offset value. @@ -154,6 +155,7 @@ public Long getOffset() { } /** + * Duration of this payload in the media * Duration in ticks. 1 tick = 100 nanoseconds. * Get the duration property. * @@ -183,6 +185,7 @@ public CommunicationIdentifier getParticipant() { } /** + * Status of the result of transcription * Get the resultState property. * * @return the resultState value. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java index 98fd0c09b139..8bfd7d65904e 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionMetadata.java @@ -7,7 +7,7 @@ import com.azure.communication.callautomation.implementation.converters.TranscriptionMetadataConverter; /** - * Metadata for Transcription Streaming. + * The metadata of transcription which contains the information such as subscriptionId, locale ... */ public final class TranscriptionMetadata extends StreamingData { @@ -60,6 +60,7 @@ public TranscriptionMetadata create(TranscriptionMetadataConverter internalData) } /** + * The custom speech recognition model endpoint id * Get the transcriptionSubscriptionId property. * * @return the transcriptionSubscriptionId value. @@ -97,6 +98,7 @@ public String getCorrelationId() { } /** + * The custom speech recognition model endpoint id * Get the speechRecognitionModelEndpointId property. * * @return the speechRecognitionModelEndpointId value. From b83c48e20e3274ef2b8ac973bddae56a8db46284 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Tue, 27 May 2025 13:32:02 -0700 Subject: [PATCH 15/31] addressing all arb comments --- .../CallAutomationAsyncClient.java | 2 +- .../models/OutStreamingData.java | 26 ++++++++++++------- .../models/TranscriptionOptions.java | 9 ------- 3 files changed, 17 insertions(+), 20 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java index f9410a4e7de3..a077519d1ed2 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java @@ -299,7 +299,7 @@ private CreateCallRequestInternal getCreateCallRequestInternal(CreateGroupCallOp private TranscriptionOptionsInternal getTranscriptionOptionsInternal(TranscriptionOptions transcriptionOptions) { return new WebSocketTranscriptionOptionsInternal().setTransportUrl(transcriptionOptions.getTransportUrl()) .setLocale(transcriptionOptions.getLocale()) - .setStartTranscription(transcriptionOptions.getStartTranscription()) + .setStartTranscription(transcriptionOptions.isStartTranscription()) .setEnableIntermediateResults(transcriptionOptions.isIntermediateResultsEnabled()) .setSpeechModelEndpointId(transcriptionOptions.getSpeechRecognitionModelEndpointId()); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java index fd316b1cc0a5..520748cfc7e0 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java @@ -83,24 +83,30 @@ OutStreamingData setStopAudio() { * Get the streaming data for outbound * @param audioData the audioData to set * @return the string of outstreaming data - * */ - public static String getStreamingDataForOutbound(BinaryData audioData) throws IOException { - OutStreamingData data = new OutStreamingData(MediaKind.AUDIO_DATA); - data.setAudioData(audioData); - return serializeOutStreamingData(data); + public static String getStreamingDataForOutbound(BinaryData audioData) { + try { + OutStreamingData data = new OutStreamingData(MediaKind.AUDIO_DATA); + data.setAudioData(audioData); + return serializeOutStreamingData(data); + } catch (IOException e) { + throw new RuntimeException("Failed to serialize OutStreamingData", e); + } } /** * Serialized stop data to stop playing audio back into the call * Get the stop audiofor outbound * @return the string of outstreaming data - * */ - public static String getStopAudioForOutbound() throws IOException { - OutStreamingData data = new OutStreamingData(MediaKind.STOP_AUDIO); - data.setStopAudio(); - return serializeOutStreamingData(data); + public static String getStopAudioForOutbound() { + try { + OutStreamingData data = new OutStreamingData(MediaKind.STOP_AUDIO); + data.setStopAudio(); + return serializeOutStreamingData(data); + } catch (IOException e) { + throw new RuntimeException("Failed to serialize OutStreamingData", e); + } } /** diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java index 0929d23314f6..a266abfb6c47 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java @@ -96,15 +96,6 @@ public String getLocale() { return this.locale; } - /** - * Get the startTranscription property: Which determines if the transcription should be started immediately after call is answered or not. - * - * @return the startTranscription value. - */ - public boolean getStartTranscription() { - return this.startTranscription; - } - /** * Get the startTranscription property: Indicates whether the transcription should start immediately after the call * is answered. From 1a568e4a3e304f6d124b0c15a5e1c9a07305b2db Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Wed, 28 May 2025 09:44:49 -0700 Subject: [PATCH 16/31] updating the transcription and media streaming options --- .../callautomation/CallAutomationAsyncClient.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java index a077519d1ed2..53ab302185bd 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java @@ -531,6 +531,18 @@ Mono> connectCallWithResponseInternal(ConnectCallOpt request.setCallIntelligenceOptions(callIntelligenceOptionsInternal); } + if (connectCallOptions.getMediaStreamingOptions() != null) { + MediaStreamingOptionsInternal streamingOptionsInternal + = getMediaStreamingOptionsInternal(connectCallOptions.getMediaStreamingOptions()); + request.setMediaStreamingOptions(streamingOptionsInternal); + } + + if (connectCallOptions.getTranscriptionOptions() != null) { + TranscriptionOptionsInternal transcriptionOptionsInternal + = getTranscriptionOptionsInternal(connectCallOptions.getTranscriptionOptions()); + request.setTranscriptionOptions(transcriptionOptionsInternal); + } + return azureCommunicationCallAutomationServiceInternal.connectWithResponseAsync(request, context) .map(response -> { try { From 2a11acf719397bc553ff2c93aa634d1e3d0ba903 Mon Sep 17 00:00:00 2001 From: v-saasomani Date: Wed, 28 May 2025 10:24:22 -0700 Subject: [PATCH 17/31] Fixed Javadoc issues + updated ga5 version. (#45496) --- eng/versioning/version_client.txt | 2 +- .../callautomation/models/MediaStreamingOptions.java | 5 ++--- .../callautomation/models/TranscriptionOptions.java | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 110cc63bbf09..bbf565e043d4 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -67,7 +67,7 @@ com.azure:azure-analytics-synapse-spark;1.0.0-beta.5;1.0.0-beta.6 com.azure:azure-analytics-synapse-managedprivateendpoints;1.0.0-beta.5;1.0.0-beta.6 com.azure:azure-analytics-synapse-monitoring;1.0.0-beta.4;1.0.0-beta.5 com.azure:azure-code-customization-parent;1.0.0-beta.1;1.0.0-beta.1 -com.azure:azure-communication-callautomation;1.3.3;1.5.0-beta.1 +com.azure:azure-communication-callautomation;1.3.3;1.4.0 com.azure:azure-communication-callingserver;1.0.0-beta.4;1.0.0-beta.5 com.azure:azure-communication-chat;1.5.9;1.6.0-beta.1 com.azure:azure-communication-common;1.3.11;1.4.0-beta.1 diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java index 5014bf2641d4..a9f0cbc2510d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingOptions.java @@ -50,8 +50,8 @@ public final class MediaStreamingOptions { /** * Creates a new instance of MediaStreamingOptions - * @param transportUrl - The Transport URL * @param audioChannelType - Audio Channel Type + * @param transportType - The type of transport to be used for media streaming, eg. Websocket */ public MediaStreamingOptions(MediaStreamingAudioChannel audioChannelType, StreamingTransport transportType) { this.transportType = StreamingTransport.WEBSOCKET; @@ -62,8 +62,7 @@ public MediaStreamingOptions(MediaStreamingAudioChannel audioChannelType, Stream /** * Creates a new instance of TranscriptionOptions with default transportType as WEBSOCKET. - * @param transportUrl - The Transport URL - * @param locale - Locale + * @param audioChannelType - Audio Channel Type */ public MediaStreamingOptions(MediaStreamingAudioChannel audioChannelType) { this(audioChannelType, StreamingTransport.WEBSOCKET); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java index a266abfb6c47..aecca7019a47 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionOptions.java @@ -51,7 +51,6 @@ public TranscriptionOptions(String locale, StreamingTransport transportType) { /** * Creates a new instance of TranscriptionOptions with default transportType as WEBSOCKET. - * @param transportUrl - The Transport URL * @param locale - Locale */ public TranscriptionOptions(String locale) { From 0722329e41f26fa0a9a302b0eb8a175e1ca2b4ec Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Wed, 28 May 2025 11:33:48 -0700 Subject: [PATCH 18/31] Fixing the lint errors --- .../azure/communication/callautomation/models/DtmfData.java | 4 ---- .../callautomation/models/OutStreamingData.java | 6 ++++-- .../callautomation/CallRecordingAutomatedLiveTests.java | 3 --- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java index 0db95854bcaf..192f981a7974 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfData.java @@ -3,12 +3,8 @@ package com.azure.communication.callautomation.models; -import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; - import com.azure.communication.callautomation.implementation.accesshelpers.DtmfDataContructorProxy; import com.azure.communication.callautomation.implementation.converters.DtmfDataConverter; -import com.azure.communication.common.CommunicationIdentifier; /** The dtmf data model. */ public final class DtmfData extends StreamingData { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java index 520748cfc7e0..a19e0493c191 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/OutStreamingData.java @@ -9,11 +9,13 @@ import java.util.Base64; import com.azure.core.util.BinaryData; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonProviders; import com.azure.json.JsonWriter; /** This class stream audio data back to Azure Communication Services, which plays the audio into the cal */ public final class OutStreamingData { + private static final ClientLogger LOGGER = new ClientLogger(OutStreamingData.class); /** * Out streaming data kind ex. StopAudio, AudioData @@ -90,7 +92,7 @@ public static String getStreamingDataForOutbound(BinaryData audioData) { data.setAudioData(audioData); return serializeOutStreamingData(data); } catch (IOException e) { - throw new RuntimeException("Failed to serialize OutStreamingData", e); + throw LOGGER.logExceptionAsError(new RuntimeException("Failed to serialize OutStreamingData", e)); } } @@ -105,7 +107,7 @@ public static String getStopAudioForOutbound() { data.setStopAudio(); return serializeOutStreamingData(data); } catch (IOException e) { - throw new RuntimeException("Failed to serialize OutStreamingData", e); + throw LOGGER.logExceptionAsError(new RuntimeException("Failed to serialize OutStreamingData", e)); } } diff --git a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAutomatedLiveTests.java b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAutomatedLiveTests.java index 4a9cf9da62ad..7dd21d7fb41b 100644 --- a/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAutomatedLiveTests.java +++ b/sdk/communication/azure-communication-callautomation/src/test/java/com/azure/communication/callautomation/CallRecordingAutomatedLiveTests.java @@ -20,9 +20,6 @@ import com.azure.communication.common.CommunicationIdentifier; import com.azure.communication.common.CommunicationUserIdentifier; import com.azure.communication.identity.CommunicationIdentityClient; -import com.azure.communication.callautomation.models.FileSource; -import com.azure.core.exception.HttpResponseException; -import com.azure.communication.callautomation.models.RecordingState; import com.azure.core.http.HttpClient; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; From f0b6caaf7152fd946a0f45c8e0538fb7d049250c Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Wed, 28 May 2025 11:50:03 -0700 Subject: [PATCH 19/31] fixing the lint error --- .../callautomation/models/TranscriptionSubscription.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java index b9a1063b066d..bca71492aaee 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java @@ -32,7 +32,7 @@ public final class TranscriptionSubscription implements JsonSerializable Date: Fri, 30 May 2025 12:45:14 -0700 Subject: [PATCH 20/31] updating the changelog --- .../azure-communication-callautomation/CHANGELOG.md | 11 +++++------ .../models/TranscriptionSubscription.java | 12 ++++++------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/CHANGELOG.md b/sdk/communication/azure-communication-callautomation/CHANGELOG.md index 7aad649cc4ad..f37d9d643138 100644 --- a/sdk/communication/azure-communication-callautomation/CHANGELOG.md +++ b/sdk/communication/azure-communication-callautomation/CHANGELOG.md @@ -1,14 +1,13 @@ # Release History -## 1.4.0 (Unreleased) +## 1.4.0 (2025-06-02) ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Real-time transcription support +- Audio and DTMF streaming capabilities +- Integration of ConnectAPI for seamless streaming and transcription +- Improved media streaming with bidirectional functionality, allowing audio formats in both directions, currently supporting sample rates of 24kHz and 16kHz ## 1.3.3 (2025-03-24) diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java index bca71492aaee..bc04ca33efe9 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TranscriptionSubscription.java @@ -34,7 +34,7 @@ public final class TranscriptionSubscription implements JsonSerializable TranscriptionResultState.fromString(resultType.toString())) .collect(Collectors.toList()) : null; - this.Locale = transcriptionSubscriptionInternal.getLocale() != null + this.locale = transcriptionSubscriptionInternal.getLocale() != null ? transcriptionSubscriptionInternal.getLocale().toString() : null; } @@ -106,7 +106,7 @@ public TranscriptionSubscriptionState getState() { * @return the state value. */ public String getLocale() { - return this.Locale; + return this.locale; } /** @@ -125,7 +125,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); jsonWriter.writeArrayField("subscribedResultStates", this.subscribedResultStates, (writer, element) -> writer.writeString(element == null ? null : element.toString())); - jsonWriter.writeStringField("locale", this.Locale); + jsonWriter.writeStringField("locale", this.locale); return jsonWriter.writeEndObject(); } @@ -154,7 +154,7 @@ public static TranscriptionSubscription fromJson(JsonReader jsonReader) throws I = reader.readArray(reader1 -> TranscriptionResultState.fromString(reader1.getString())); deserializedTranscriptionSubscription.subscribedResultStates = subscribedResultTypes; } else if ("locale".equals(fieldName)) { - deserializedTranscriptionSubscription.Locale = reader.getString(); + deserializedTranscriptionSubscription.locale = reader.getString(); } else { reader.skipChildren(); } From 2e374f3e785e6b31c8327feacc399f3869b46d85 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Wed, 4 Jun 2025 04:21:48 -0700 Subject: [PATCH 21/31] Updating the changelog and release date --- .../azure-communication-callautomation/CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-callautomation/CHANGELOG.md b/sdk/communication/azure-communication-callautomation/CHANGELOG.md index f37d9d643138..68def2c3b8b5 100644 --- a/sdk/communication/azure-communication-callautomation/CHANGELOG.md +++ b/sdk/communication/azure-communication-callautomation/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.4.0 (2025-06-02) +## 1.4.0 (2025-06-04) ### Features Added @@ -8,6 +8,8 @@ - Audio and DTMF streaming capabilities - Integration of ConnectAPI for seamless streaming and transcription - Improved media streaming with bidirectional functionality, allowing audio formats in both directions, currently supporting sample rates of 24kHz and 16kHz +- Support for custom speech models has been integrated into transcription +- A confidence level for recognized speech has been introduced, ranging from 0.0 to 1.0 when available ## 1.3.3 (2025-03-24) From d1a04d5cd1f24c839970c8d37916c34cdf418fef Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Thu, 5 Jun 2025 04:32:21 -0700 Subject: [PATCH 22/31] changing the release date --- .../azure-communication-callautomation/CHANGELOG.md | 2 +- .../azure-communication-callautomation/swagger/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/CHANGELOG.md b/sdk/communication/azure-communication-callautomation/CHANGELOG.md index 68def2c3b8b5..91d82828c861 100644 --- a/sdk/communication/azure-communication-callautomation/CHANGELOG.md +++ b/sdk/communication/azure-communication-callautomation/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.4.0 (2025-06-04) +## 1.4.0 (2025-06-05) ### Features Added diff --git a/sdk/communication/azure-communication-callautomation/swagger/README.md b/sdk/communication/azure-communication-callautomation/swagger/README.md index f2fd0fe7bb04..e0cbb28d5512 100644 --- a/sdk/communication/azure-communication-callautomation/swagger/README.md +++ b/sdk/communication/azure-communication-callautomation/swagger/README.md @@ -32,7 +32,7 @@ autorest README.md --java --v4 tag: package-2025-05-15 use: '@autorest/java@4.1.29' require: - - https://github.com/Azure/azure-rest-api-specs/blob/8bf7f264d186b52eccb579accd3f584788511049/specification/communication/data-plane/CallAutomation/readme.md + - https://github.com/Azure/azure-rest-api-specs/blob/d87c0a3d1abbd1d1aa1b487d99e77769b6895ef4/specification/communication/data-plane/CallAutomation/readme.md java: true output-folder: ../ license-header: MICROSOFT_MIT_SMALL From b1b754de77741a5be7d1c15d41663021c9484afe Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 16 Jun 2025 05:59:34 -0700 Subject: [PATCH 23/31] Increment package versions for communication/azure-communication-callautomation releases (#45603) --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 44 +++++++++---------- .../pom.xml | 2 +- 3 files changed, 22 insertions(+), 26 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index f5ef5ad2b1c1..ca6cd88c3891 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -67,7 +67,7 @@ com.azure:azure-analytics-synapse-spark;1.0.0-beta.5;1.0.0-beta.6 com.azure:azure-analytics-synapse-managedprivateendpoints;1.0.0-beta.5;1.0.0-beta.6 com.azure:azure-analytics-synapse-monitoring;1.0.0-beta.4;1.0.0-beta.5 com.azure:azure-code-customization-parent;1.0.0-beta.1;1.0.0-beta.1 -com.azure:azure-communication-callautomation;1.3.3;1.4.0 +com.azure:azure-communication-callautomation;1.4.0;1.5.0-beta.1 com.azure:azure-communication-callingserver;1.0.0-beta.4;1.0.0-beta.5 com.azure:azure-communication-chat;1.5.9;1.6.0-beta.1 com.azure:azure-communication-common;1.3.11;1.4.0-beta.1 diff --git a/sdk/communication/azure-communication-callautomation/CHANGELOG.md b/sdk/communication/azure-communication-callautomation/CHANGELOG.md index 91d82828c861..9f9e1540e589 100644 --- a/sdk/communication/azure-communication-callautomation/CHANGELOG.md +++ b/sdk/communication/azure-communication-callautomation/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.5.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.4.0 (2025-06-05) ### Features Added @@ -32,6 +42,16 @@ - Upgraded `azure-core-http-netty` from `1.15.7` to version `1.15.10`. - Upgraded `azure-core` from `1.54.1` to version `1.55.2`. +## 1.3.1 (2024-12-04) + +### Other Changes + +#### Dependency Updates + +- Upgraded `azure-core` from `1.53.0` to version `1.54.1`. +- Upgraded `azure-core-http-netty` from `1.15.5` to version `1.15.7`. +- Upgraded `azure-communication-common` from `1.3.7` to version `1.3.8`. + ## 1.4.0-beta.1 (2024-11-22) ### Features Added @@ -43,16 +63,6 @@ - Introduced audio streaming and transcription data parsing capabilities. -## 1.3.1 (2024-12-04) - -### Other Changes - -#### Dependency Updates - -- Upgraded `azure-core` from `1.53.0` to version `1.54.1`. -- Upgraded `azure-core-http-netty` from `1.15.5` to version `1.15.7`. -- Upgraded `azure-communication-common` from `1.3.7` to version `1.3.8`. - ## 1.3.0 (2024-11-22) ### Features Added @@ -76,20 +86,6 @@ - Added CreateCallFailed event to signify when create call API fails to establish a call -## 1.3.0-beta.1 (2024-08-02) - -### Features Added - -- Support multiple play sources for Play and Recognize -- Support for PlayStarted event in Play/Recognize -- Support for the real time transcription -- Monetization for real-time transcription and audio streaming -- Hold and Unhold the participant -- Support to manage the rooms/servercall/group call using connect API -- Support for the audio streaming -- Expose original PSTN number target from incoming call event in call connection properties -- Support for VoIP to PSTN transfer scenario - ## 1.2.6 (2024-10-25) ### Other Changes diff --git a/sdk/communication/azure-communication-callautomation/pom.xml b/sdk/communication/azure-communication-callautomation/pom.xml index 14772403f8d4..b3a46bcb4f33 100644 --- a/sdk/communication/azure-communication-callautomation/pom.xml +++ b/sdk/communication/azure-communication-callautomation/pom.xml @@ -15,7 +15,7 @@ com.azure azure-communication-callautomation jar - 1.4.0 + 1.5.0-beta.1 Microsoft Azure client library for Call Automation service From 3ff78708272d8478174baf73986ed0624ac65776 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Mon, 30 Jun 2025 16:11:27 -0700 Subject: [PATCH 24/31] taking the main changes for the dependancy package updates --- .../CHANGELOG.md | 34 +++++++++++++++++++ .../pom.xml | 6 ++-- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/CHANGELOG.md b/sdk/communication/azure-communication-callautomation/CHANGELOG.md index 9f9e1540e589..1a4f8136946f 100644 --- a/sdk/communication/azure-communication-callautomation/CHANGELOG.md +++ b/sdk/communication/azure-communication-callautomation/CHANGELOG.md @@ -10,6 +10,16 @@ ### Other Changes +## 1.4.1 (2025-06-19) + +### Other Changes + +#### Dependency Updates + +- Upgraded `azure-communication-common` from `1.3.11` to version `1.4.0`. +- Upgraded `azure-core-http-netty` from `1.15.11` to version `1.15.12`. +- Upgraded `azure-core` from `1.55.3` to version `1.55.4`. + ## 1.4.0 (2025-06-05) ### Features Added @@ -63,6 +73,16 @@ - Introduced audio streaming and transcription data parsing capabilities. +## 1.3.1 (2024-12-04) + +### Other Changes + +#### Dependency Updates + +- Upgraded `azure-core` from `1.53.0` to version `1.54.1`. +- Upgraded `azure-core-http-netty` from `1.15.5` to version `1.15.7`. +- Upgraded `azure-communication-common` from `1.3.7` to version `1.3.8`. + ## 1.3.0 (2024-11-22) ### Features Added @@ -86,6 +106,20 @@ - Added CreateCallFailed event to signify when create call API fails to establish a call +## 1.3.0-beta.1 (2024-08-02) + +### Features Added + +- Support multiple play sources for Play and Recognize +- Support for PlayStarted event in Play/Recognize +- Support for the real time transcription +- Monetization for real-time transcription and audio streaming +- Hold and Unhold the participant +- Support to manage the rooms/servercall/group call using connect API +- Support for the audio streaming +- Expose original PSTN number target from incoming call event in call connection properties +- Support for VoIP to PSTN transfer scenario + ## 1.2.6 (2024-10-25) ### Other Changes diff --git a/sdk/communication/azure-communication-callautomation/pom.xml b/sdk/communication/azure-communication-callautomation/pom.xml index b3a46bcb4f33..2cd6d6708c61 100644 --- a/sdk/communication/azure-communication-callautomation/pom.xml +++ b/sdk/communication/azure-communication-callautomation/pom.xml @@ -59,17 +59,17 @@ com.azure azure-core - 1.55.3 + 1.55.5 com.azure azure-core-http-netty - 1.15.11 + 1.15.13 com.azure azure-communication-common - 1.3.11 + 1.4.0 com.azure From 801001f3ef477083d823bdeac69a858ca6546124 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Mon, 30 Jun 2025 16:16:03 -0700 Subject: [PATCH 25/31] dependancy package updates --- .../azure-communication-callautomation/pom.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/pom.xml b/sdk/communication/azure-communication-callautomation/pom.xml index 2cd6d6708c61..5862ce47d2d2 100644 --- a/sdk/communication/azure-communication-callautomation/pom.xml +++ b/sdk/communication/azure-communication-callautomation/pom.xml @@ -80,13 +80,13 @@ com.azure azure-messaging-servicebus - 7.17.11 + 7.17.12 test com.azure azure-core-test - 1.27.0-beta.8 + 1.27.0-beta.10 test @@ -104,13 +104,13 @@ com.azure azure-identity - 1.16.1 + 1.16.2 test com.azure azure-communication-phonenumbers - 1.2.2 + 1.3.0 test From 999d2946fed74a487aa175549007607c7c77afc9 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Mon, 30 Jun 2025 16:18:33 -0700 Subject: [PATCH 26/31] updating the identity package --- sdk/communication/azure-communication-callautomation/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-callautomation/pom.xml b/sdk/communication/azure-communication-callautomation/pom.xml index 5862ce47d2d2..7598f476794f 100644 --- a/sdk/communication/azure-communication-callautomation/pom.xml +++ b/sdk/communication/azure-communication-callautomation/pom.xml @@ -74,7 +74,7 @@ com.azure azure-communication-identity - 1.6.4 + 1.6.5 test From a9b3ffbbb9733e863490affa1514718f7a756bad Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Tue, 1 Jul 2025 10:48:03 -0700 Subject: [PATCH 27/31] updating the cutomization for the getparticipant --- .../swagger/README.md | 14 +++++ .../java/CallautomationCustomizations.java | 63 ++++++------------- 2 files changed, 32 insertions(+), 45 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/swagger/README.md b/sdk/communication/azure-communication-callautomation/swagger/README.md index e0cbb28d5512..0c2f1cc6b67a 100644 --- a/sdk/communication/azure-communication-callautomation/swagger/README.md +++ b/sdk/communication/azure-communication-callautomation/swagger/README.md @@ -556,3 +556,17 @@ directive: transform: > $.name = "AudioFormatInternal"; ``` + +### Configure participantRawId to skip path encoding + +getParticipant participantRawId is not encoded which results HMAC failures on the backend, to fix the issue, currently +overriding the getParticipant signature and sending the participantRawId as encoded +This needs to be fixed in the GA release + +``` yaml +directive: +- from: swagger-document + where: $.paths["/calling/callConnections/{callConnectionId}/participants/{participantRawId}"].get.parameters + transform: > + $.find(param => param.name === "participantRawId")["x-ms-skip-url-encoding"] = true; +``` diff --git a/sdk/communication/azure-communication-callautomation/swagger/src/main/java/CallautomationCustomizations.java b/sdk/communication/azure-communication-callautomation/swagger/src/main/java/CallautomationCustomizations.java index 95c6ca9ab676..f3f0462fdb71 100644 --- a/sdk/communication/azure-communication-callautomation/swagger/src/main/java/CallautomationCustomizations.java +++ b/sdk/communication/azure-communication-callautomation/swagger/src/main/java/CallautomationCustomizations.java @@ -1,63 +1,36 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import com.azure.autorest.customization.ClassCustomization; -import com.azure.autorest.customization.PropertyCustomization; import com.azure.autorest.customization.Customization; import com.azure.autorest.customization.LibraryCustomization; +import com.azure.autorest.customization.PackageCustomization; import org.slf4j.Logger; /** * Contains customizations for call automation configuration. */ public class CallautomationCustomizations extends Customization { - private static final String BASE_PACKAGE = "com.azure.communication.callautomation."; - private static final String IMPLEMENTATION_MODELS_PACKAGE = BASE_PACKAGE + "implementation.models"; - - // Enum class names - public static final String RECORDING_STORAGE_TYPE_INTERNAL_CLASS = "RecordingStorageTypeInternal"; - public static final String AUDIO_FORMAT_INTERNAL_CLASS = "AudioFormatInternal"; - public static final String MEDIA_STREAMING_STATUS_DETAILS_CLASS = "MediaStreamingStatusDetails"; - @Override public void customize(LibraryCustomization customization, Logger logger) { - - try { - customizeCallAutomationEnumMembers(customization); - encodePathParam(customization, logger); - } catch (IllegalArgumentException e) { - logger.info("Package Not Found: " + e.getMessage()); - } catch (Exception e) { - logger.info("Exception Thrown: " + e.getMessage()); - } - logger.info("Customization pass"); + customizeCallAutomationEnumMembers(customization.getPackage("com.azure.communication.callautomation.implementation.models")); } - // getParticipant participantRawId is not encoded which results HMAC failures on the backend, - // to fix the issue, currently overriding the getParticipant signature and sending the participantRawId as encoded - // This needs to be fixed in the GA release - private void encodePathParam(LibraryCustomization customization, Logger logger) { - String replace = customization.getRawEditor().getFileContent("src/main/java/com/azure/communication/callautomation/implementation/CallConnectionsImpl.java") - .replace("@PathParam(\"participantRawId\") String participantRawId,", "@PathParam(value = \"participantRawId\", encoded = true) String participantRawId,"); - customization.getRawEditor().replaceFile("src/main/java/com/azure/communication/callautomation/implementation/CallConnectionsImpl.java", replace); - } - - private void customizeCallAutomationEnumMembers(LibraryCustomization customization) { - ClassCustomization recordingStorageTypeInternalConfigurationClass = customization.getPackage(IMPLEMENTATION_MODELS_PACKAGE) - .getClass(RECORDING_STORAGE_TYPE_INTERNAL_CLASS); - recordingStorageTypeInternalConfigurationClass - .renameEnumMember("AZURE_COMMUNICATION_SERVICES", "ACS"); + private void customizeCallAutomationEnumMembers(PackageCustomization customization) { + customization.getClass("RecordingStorageTypeInternal").customizeAst(ast -> ast.getClassByName( + "RecordingStorageTypeInternal") + .flatMap(clazz -> clazz.getFieldByName("AZURE_COMMUNICATION_SERVICES")) + .ifPresent(field -> field.getVariable(0).setName("ACS"))); // As per azure board review renaming the PCM16KMONO to PCM_16K_MONO,PCM24KMONO to PCM_24K_MONO - ClassCustomization audioFormatInternalClass = customization.getPackage(IMPLEMENTATION_MODELS_PACKAGE) - .getClass(AUDIO_FORMAT_INTERNAL_CLASS); - audioFormatInternalClass - .renameEnumMember("PCM16KMONO", "PCM_16K_MONO") - .renameEnumMember("PCM24KMONO", "PCM_24K_MONO"); - - ClassCustomization mediaStreamingStatusDetailsClass = customization.getPackage(IMPLEMENTATION_MODELS_PACKAGE) - .getClass(MEDIA_STREAMING_STATUS_DETAILS_CLASS); - mediaStreamingStatusDetailsClass - .renameEnumMember("INITIAL_WEB_SOCKET_CONNECTION_FAILED", "INITIAL_WEBSOCKET_CONNECTION_FAILED"); + customization.getClass("AudioFormatInternal").customizeAst(ast -> ast.getClassByName("AudioFormatInternal") + .ifPresent(clazz -> { + clazz.getFieldByName("PCM16KMONO").ifPresent(field -> field.getVariable(0).setName("PCM_16K_MONO")); + clazz.getFieldByName("PCM24KMONO").ifPresent(field -> field.getVariable(0).setName("PCM_24K_MONO")); + })); + + customization.getClass("MediaStreamingStatusDetails").customizeAst(ast -> ast.getClassByName( + "MediaStreamingStatusDetails") + .flatMap(clazz -> clazz.getFieldByName("INITIAL_WEB_SOCKET_CONNECTION_FAILED")) + .ifPresent(field -> field.getVariable(0).setName("INITIAL_WEBSOCKET_CONNECTION_FAILED"))); } -} \ No newline at end of file +} From 09fe53b8cfede4448e078729c6ead08ad8d00728 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Mon, 7 Jul 2025 13:04:56 -0700 Subject: [PATCH 28/31] version number update --- eng/versioning/version_client.txt | 2 +- .../azure-communication-callautomation/CHANGELOG.md | 2 +- sdk/communication/azure-communication-callautomation/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index c3b2eb531200..9e6922fded6e 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -68,7 +68,7 @@ com.azure:azure-analytics-synapse-spark;1.0.0-beta.5;1.0.0-beta.6 com.azure:azure-analytics-synapse-managedprivateendpoints;1.0.0-beta.5;1.0.0-beta.6 com.azure:azure-analytics-synapse-monitoring;1.0.0-beta.4;1.0.0-beta.5 com.azure:azure-code-customization-parent;1.0.0-beta.1;1.0.0-beta.1 -com.azure:azure-communication-callautomation;1.4.1;1.5.0-beta.1 +com.azure:azure-communication-callautomation;1.4.1;1.4.2 com.azure:azure-communication-callingserver;1.0.0-beta.4;1.0.0-beta.5 com.azure:azure-communication-chat;1.6.0;1.7.0-beta.1 com.azure:azure-communication-common;1.4.0;1.5.0-beta.1 diff --git a/sdk/communication/azure-communication-callautomation/CHANGELOG.md b/sdk/communication/azure-communication-callautomation/CHANGELOG.md index 1a4f8136946f..f8c345813b63 100644 --- a/sdk/communication/azure-communication-callautomation/CHANGELOG.md +++ b/sdk/communication/azure-communication-callautomation/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.5.0-beta.1 (Unreleased) +## 1.4.2 (Unreleased) ### Features Added diff --git a/sdk/communication/azure-communication-callautomation/pom.xml b/sdk/communication/azure-communication-callautomation/pom.xml index 7598f476794f..12e17d023c97 100644 --- a/sdk/communication/azure-communication-callautomation/pom.xml +++ b/sdk/communication/azure-communication-callautomation/pom.xml @@ -15,7 +15,7 @@ com.azure azure-communication-callautomation jar - 1.5.0-beta.1 + 1.4.2 Microsoft Azure client library for Call Automation service From 8b4c32df7e59c562f5b80c185d6b627135c85622 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Mon, 7 Jul 2025 13:19:03 -0700 Subject: [PATCH 29/31] running latest autorest --- ...ommunicationCallAutomationServiceImpl.java | 56 ++------ ...ationCallAutomationServiceImplBuilder.java | 40 ++++-- .../implementation/CallConnectionsImpl.java | 120 ++++++------------ .../implementation/CallMediasImpl.java | 72 ++++------- .../implementation/CallRecordingsImpl.java | 31 ++--- .../models/AddParticipantRequestInternal.java | 27 +++- .../AddParticipantResponseInternal.java | 13 ++ .../models/AnswerCallRequestInternal.java | 25 ++++ .../models/AudioFormatInternal.java | 14 +- .../CallConnectionPropertiesInternal.java | 46 ++++++- .../CallConnectionStateModelInternal.java | 11 ++ .../CallIntelligenceOptionsInternal.java | 7 + .../models/CallLocatorInternal.java | 16 +++ .../models/CallLocatorKindInternal.java | 7 + .../models/CallParticipantInternal.java | 13 ++ .../models/CallRejectReasonInternal.java | 7 + .../models/CancelAddParticipantRequest.java | 13 ++ .../models/CancelAddParticipantResponse.java | 10 ++ .../models/ChannelAffinityInternal.java | 12 +- .../models/ChoiceResultInternal.java | 16 ++- .../CommunicationCloudEnvironmentModel.java | 7 + .../models/CommunicationError.java | 16 +++ .../models/CommunicationErrorResponse.java | 7 + .../models/CommunicationIdentifierModel.java | 22 ++++ .../CommunicationIdentifierModelKind.java | 9 ++ .../CommunicationUserIdentifierModel.java | 7 + .../models/ConnectRequestInternal.java | 22 ++++ ...tinuousDtmfRecognitionRequestInternal.java | 13 ++ .../models/CreateCallRequestInternal.java | 31 +++++ .../models/CustomCallingContext.java | 10 ++ .../models/DtmfOptionsInternal.java | 13 ++ .../implementation/models/DtmfResult.java | 6 + .../models/DtmfToneInternal.java | 20 +++ .../models/FileSourceInternal.java | 7 + .../GetParticipantsResponseInternal.java | 10 ++ .../implementation/models/HoldRequest.java | 16 +++ ...ediaStreamingAudioChannelTypeInternal.java | 6 + .../MediaStreamingContentTypeInternal.java | 5 + .../models/MediaStreamingOptionsInternal.java | 17 ++- .../models/MediaStreamingStatus.java | 8 ++ .../models/MediaStreamingStatusDetails.java | 27 +++- .../MediaStreamingSubscriptionInternal.java | 13 ++ ...diaStreamingSubscriptionStateInternal.java | 7 + .../models/MediaStreamingUpdate.java | 13 ++ .../MicrosoftTeamsAppIdentifierModel.java | 10 ++ .../MicrosoftTeamsUserIdentifierModel.java | 13 ++ .../MuteParticipantsRequestInternal.java | 10 ++ .../MuteParticipantsResultInternal.java | 7 + .../models/PhoneNumberIdentifierModel.java | 7 + .../models/PlayOptionsInternal.java | 7 + .../implementation/models/PlayRequest.java | 22 ++++ .../models/PlaySourceInternal.java | 19 +++ .../models/PlaySourceTypeInternal.java | 7 + .../models/RecognitionChoiceInternal.java | 13 ++ .../models/RecognitionTypeInternal.java | 7 + .../models/RecognizeInputTypeInternal.java | 8 ++ .../models/RecognizeOptionsInternal.java | 28 ++++ .../models/RecognizeRequest.java | 25 ++++ .../models/RecordingChannelInternal.java | 6 + .../models/RecordingContentInternal.java | 6 + .../models/RecordingFormatInternal.java | 7 + .../models/RecordingKindInternal.java | 7 + .../models/RecordingStateInternal.java | 6 + .../RecordingStateResponseInternal.java | 13 ++ .../models/RecordingStorageInternal.java | 10 ++ .../models/RecordingStorageTypeInternal.java | 14 +- .../models/RedirectCallRequestInternal.java | 10 ++ .../models/RejectCallRequestInternal.java | 10 ++ .../models/RemoveParticipantFailed.java | 22 ++++ .../RemoveParticipantRequestInternal.java | 13 ++ .../RemoveParticipantResponseInternal.java | 7 + .../models/RemoveParticipantSucceeded.java | 22 ++++ .../models/ResultInformation.java | 19 ++- .../models/SendDtmfTonesRequestInternal.java | 16 +++ .../models/SendDtmfTonesResultInternal.java | 7 + .../models/SpeechOptionsInternal.java | 7 + .../models/SpeechResultInternal.java | 10 ++ .../models/SsmlSourceInternal.java | 10 ++ .../StartCallRecordingRequestInternal.java | 36 +++++- .../models/StartMediaStreamingRequest.java | 10 ++ .../StartTranscriptionRequestInternal.java | 19 ++- .../models/StopMediaStreamingRequest.java | 10 ++ .../StopTranscriptionRequestInternal.java | 10 ++ .../StreamingTransportTypeInternal.java | 5 + .../models/TextSourceInternal.java | 25 +++- .../models/TranscriptionOptionsInternal.java | 17 ++- .../TranscriptionResultTypeInternal.java | 6 + .../models/TranscriptionStatus.java | 10 ++ .../models/TranscriptionStatusDetails.java | 19 +++ .../TranscriptionSubscriptionInternal.java | 16 +++ ...ranscriptionSubscriptionStateInternal.java | 7 + .../models/TranscriptionUpdate.java | 10 ++ .../models/TransferCallResponseInternal.java | 7 + .../TransferToParticipantRequestInternal.java | 25 +++- .../implementation/models/UnholdRequest.java | 13 ++ .../UpdateTranscriptionRequestInternal.java | 16 +++ .../models/VoiceKindInternal.java | 6 + ...ebSocketMediaStreamingOptionsInternal.java | 28 +++- ...WebSocketTranscriptionOptionsInternal.java | 25 +++- .../swagger/README.md | 2 +- 100 files changed, 1352 insertions(+), 243 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImpl.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImpl.java index a1cf281a34a0..1ff31f5c9527 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImpl.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImpl.java @@ -29,12 +29,12 @@ import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; import com.azure.core.util.DateTimeRfc1123; import com.azure.core.util.FluxUtil; import com.azure.core.util.serializer.JacksonAdapter; import com.azure.core.util.serializer.SerializerAdapter; import java.time.OffsetDateTime; -import java.util.UUID; import reactor.core.publisher.Mono; /** @@ -192,7 +192,7 @@ public CallRecordingsImpl getCallRecordings() { * service to perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AzureCommunicationCa") + @ServiceInterface(name = "AzureCommunicationCallAutomationService") public interface AzureCommunicationCallAutomationServiceService { @Post("/calling/callConnections") @ExpectedResponses({ 201 }) @@ -256,11 +256,7 @@ Mono> connect(@HostParam("endpoint") @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createCallWithResponseAsync(CreateCallRequestInternal createCallRequest) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil.withContext(context -> service.createCall(this.getEndpoint(), this.getApiVersion(), - createCallRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context)); + return FluxUtil.withContext(context -> createCallWithResponseAsync(createCallRequest, context)); } /** @@ -277,10 +273,8 @@ Mono> connect(@HostParam("endpoint") public Mono> createCallWithResponseAsync(CreateCallRequestInternal createCallRequest, Context context) { final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); return service.createCall(this.getEndpoint(), this.getApiVersion(), createCallRequest, accept, - repeatabilityRequestId, repeatabilityFirstSent, context); + CoreUtils.randomUuid().toString(), DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()), context); } /** @@ -357,11 +351,7 @@ public CallConnectionPropertiesInternal createCall(CreateCallRequestInternal cre @ServiceMethod(returns = ReturnType.SINGLE) public Mono> answerCallWithResponseAsync(AnswerCallRequestInternal answerCallRequest) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil.withContext(context -> service.answerCall(this.getEndpoint(), this.getApiVersion(), - answerCallRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context)); + return FluxUtil.withContext(context -> answerCallWithResponseAsync(answerCallRequest, context)); } /** @@ -380,10 +370,8 @@ public CallConnectionPropertiesInternal createCall(CreateCallRequestInternal cre public Mono> answerCallWithResponseAsync(AnswerCallRequestInternal answerCallRequest, Context context) { final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); return service.answerCall(this.getEndpoint(), this.getApiVersion(), answerCallRequest, accept, - repeatabilityRequestId, repeatabilityFirstSent, context); + CoreUtils.randomUuid().toString(), DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()), context); } /** @@ -465,11 +453,7 @@ public CallConnectionPropertiesInternal answerCall(AnswerCallRequestInternal ans */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> redirectCallWithResponseAsync(RedirectCallRequestInternal redirectCallRequest) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil.withContext(context -> service.redirectCall(this.getEndpoint(), this.getApiVersion(), - redirectCallRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context)); + return FluxUtil.withContext(context -> redirectCallWithResponseAsync(redirectCallRequest, context)); } /** @@ -486,10 +470,8 @@ public Mono> redirectCallWithResponseAsync(RedirectCallRequestInt public Mono> redirectCallWithResponseAsync(RedirectCallRequestInternal redirectCallRequest, Context context) { final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); return service.redirectCall(this.getEndpoint(), this.getApiVersion(), redirectCallRequest, accept, - repeatabilityRequestId, repeatabilityFirstSent, context); + CoreUtils.randomUuid().toString(), DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()), context); } /** @@ -560,11 +542,7 @@ public void redirectCall(RedirectCallRequestInternal redirectCallRequest) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> rejectCallWithResponseAsync(RejectCallRequestInternal rejectCallRequest) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil.withContext(context -> service.rejectCall(this.getEndpoint(), this.getApiVersion(), - rejectCallRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context)); + return FluxUtil.withContext(context -> rejectCallWithResponseAsync(rejectCallRequest, context)); } /** @@ -581,10 +559,8 @@ public Mono> rejectCallWithResponseAsync(RejectCallRequestInterna public Mono> rejectCallWithResponseAsync(RejectCallRequestInternal rejectCallRequest, Context context) { final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); return service.rejectCall(this.getEndpoint(), this.getApiVersion(), rejectCallRequest, accept, - repeatabilityRequestId, repeatabilityFirstSent, context); + CoreUtils.randomUuid().toString(), DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()), context); } /** @@ -658,11 +634,7 @@ public void rejectCall(RejectCallRequestInternal rejectCallRequest) { @ServiceMethod(returns = ReturnType.SINGLE) public Mono> connectWithResponseAsync(ConnectRequestInternal connectRequest) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil.withContext(context -> service.connect(this.getEndpoint(), this.getApiVersion(), connectRequest, - accept, repeatabilityRequestId, repeatabilityFirstSent, context)); + return FluxUtil.withContext(context -> connectWithResponseAsync(connectRequest, context)); } /** @@ -681,10 +653,8 @@ public void rejectCall(RejectCallRequestInternal rejectCallRequest) { public Mono> connectWithResponseAsync(ConnectRequestInternal connectRequest, Context context) { final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return service.connect(this.getEndpoint(), this.getApiVersion(), connectRequest, accept, repeatabilityRequestId, - repeatabilityFirstSent, context); + return service.connect(this.getEndpoint(), this.getApiVersion(), connectRequest, accept, + CoreUtils.randomUuid().toString(), DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()), context); } /** diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImplBuilder.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImplBuilder.java index 199d36e2c4db..27901c896aa5 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImplBuilder.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/AzureCommunicationCallAutomationServiceImplBuilder.java @@ -12,7 +12,6 @@ import com.azure.core.client.traits.HttpTrait; import com.azure.core.credential.AzureKeyCredential; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; @@ -21,8 +20,8 @@ import com.azure.core.http.policy.AddHeadersFromContextPolicy; import com.azure.core.http.policy.AddHeadersPolicy; import com.azure.core.http.policy.AzureKeyCredentialPolicy; -import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.http.policy.HttpPolicyProviders; import com.azure.core.http.policy.RequestIdPolicy; @@ -33,6 +32,7 @@ import com.azure.core.util.Configuration; import com.azure.core.util.CoreUtils; import com.azure.core.util.builder.ClientBuilderUtil; +import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.serializer.JacksonAdapter; import com.azure.core.util.serializer.SerializerAdapter; import java.util.ArrayList; @@ -71,34 +71,37 @@ public AzureCommunicationCallAutomationServiceImplBuilder() { } /* - * The HTTP pipeline to send requests through. + * The HTTP client used to send the request. */ @Generated - private HttpPipeline pipeline; + private HttpClient httpClient; /** * {@inheritDoc}. */ @Generated @Override - public AzureCommunicationCallAutomationServiceImplBuilder pipeline(HttpPipeline pipeline) { - this.pipeline = pipeline; + public AzureCommunicationCallAutomationServiceImplBuilder httpClient(HttpClient httpClient) { + this.httpClient = httpClient; return this; } /* - * The HTTP client used to send the request. + * The HTTP pipeline to send requests through. */ @Generated - private HttpClient httpClient; + private HttpPipeline pipeline; /** * {@inheritDoc}. */ @Generated @Override - public AzureCommunicationCallAutomationServiceImplBuilder httpClient(HttpClient httpClient) { - this.httpClient = httpClient; + public AzureCommunicationCallAutomationServiceImplBuilder pipeline(HttpPipeline pipeline) { + if (this.pipeline != null && pipeline == null) { + LOGGER.atInfo().log("HttpPipeline is being set to 'null' when it was previously configured."); + } + this.pipeline = pipeline; return this; } @@ -270,6 +273,7 @@ public AzureCommunicationCallAutomationServiceImplBuilder retryPolicy(RetryPolic */ @Generated public AzureCommunicationCallAutomationServiceImpl buildClient() { + this.validateClient(); HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline(); String localApiVersion = (apiVersion != null) ? apiVersion : "2025-05-15"; SerializerAdapter localSerializerAdapter @@ -279,6 +283,13 @@ public AzureCommunicationCallAutomationServiceImpl buildClient() { return client; } + @Generated + private void validateClient() { + // This method is invoked from 'buildInnerClient'/'buildClient' method. + // Developer can customize this method, to validate that the necessary conditions are met for the new client. + Objects.requireNonNull(endpoint, "'endpoint' cannot be null."); + } + @Generated private HttpPipeline createHttpPipeline() { Configuration buildConfiguration @@ -292,10 +303,8 @@ private HttpPipeline createHttpPipeline() { policies.add(new UserAgentPolicy(applicationId, clientName, clientVersion, buildConfiguration)); policies.add(new RequestIdPolicy()); policies.add(new AddHeadersFromContextPolicy()); - HttpHeaders headers = new HttpHeaders(); - localClientOptions.getHeaders() - .forEach(header -> headers.set(HttpHeaderName.fromString(header.getName()), header.getValue())); - if (headers.getSize() > 0) { + HttpHeaders headers = CoreUtils.createHttpHeadersFromClientOptions(localClientOptions); + if (headers != null) { policies.add(new AddHeadersPolicy(headers)); } this.pipelinePolicies.stream() @@ -318,4 +327,7 @@ private HttpPipeline createHttpPipeline() { .build(); return httpPipeline; } + + private static final ClientLogger LOGGER + = new ClientLogger(AzureCommunicationCallAutomationServiceImplBuilder.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallConnectionsImpl.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallConnectionsImpl.java index f473a974953d..2d12c1a429e7 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallConnectionsImpl.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallConnectionsImpl.java @@ -39,10 +39,10 @@ import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; import com.azure.core.util.DateTimeRfc1123; import com.azure.core.util.FluxUtil; import java.time.OffsetDateTime; -import java.util.UUID; import reactor.core.publisher.Mono; /** @@ -75,7 +75,7 @@ public final class CallConnectionsImpl { * the proxy service to perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AzureCommunicationCa") + @ServiceInterface(name = "AzureCommunicationCallAutomationServiceCallConnections") public interface CallConnectionsService { @Get("/calling/callConnections/{callConnectionId}") @ExpectedResponses({ 200 }) @@ -185,9 +185,7 @@ Mono> getParticipantsNext( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getCallWithResponseAsync(String callConnectionId) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.getCall(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), accept, context)); + return FluxUtil.withContext(context -> getCallWithResponseAsync(callConnectionId, context)); } /** @@ -279,9 +277,7 @@ public CallConnectionPropertiesInternal getCall(String callConnectionId) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> hangupCallWithResponseAsync(String callConnectionId) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.hangupCall(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), accept, context)); + return FluxUtil.withContext(context -> hangupCallWithResponseAsync(callConnectionId, context)); } /** @@ -374,11 +370,7 @@ public void hangupCall(String callConnectionId) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> terminateCallWithResponseAsync(String callConnectionId) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil.withContext(context -> service.terminateCall(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), accept, repeatabilityRequestId, repeatabilityFirstSent, context)); + return FluxUtil.withContext(context -> terminateCallWithResponseAsync(callConnectionId, context)); } /** @@ -394,10 +386,8 @@ public Mono> terminateCallWithResponseAsync(String callConnection @ServiceMethod(returns = ReturnType.SINGLE) public Mono> terminateCallWithResponseAsync(String callConnectionId, Context context) { final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); return service.terminateCall(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), accept, - repeatabilityRequestId, repeatabilityFirstSent, context); + CoreUtils.randomUuid().toString(), DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()), context); } /** @@ -471,12 +461,8 @@ public void terminateCall(String callConnectionId) { @ServiceMethod(returns = ReturnType.SINGLE) public Mono> transferToParticipantWithResponseAsync(String callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequest) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil.withContext(context -> service.transferToParticipant(this.client.getEndpoint(), - callConnectionId, this.client.getApiVersion(), transferToParticipantRequest, accept, repeatabilityRequestId, - repeatabilityFirstSent, context)); + return FluxUtil.withContext( + context -> transferToParticipantWithResponseAsync(callConnectionId, transferToParticipantRequest, context)); } /** @@ -495,10 +481,9 @@ public Mono> transferToParticipantWithRes public Mono> transferToParticipantWithResponseAsync(String callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequest, Context context) { final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); return service.transferToParticipant(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), - transferToParticipantRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context); + transferToParticipantRequest, accept, CoreUtils.randomUuid().toString(), + DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()), context); } /** @@ -702,7 +687,7 @@ public PagedIterable getParticipants(String callConnect * Add a participant to the call. * * @param callConnectionId The call connection Id. - * @param addParticipantRequest The request payload for adding participant to the call. + * @param addParticipantRequest The addParticipantRequest parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -712,19 +697,15 @@ public PagedIterable getParticipants(String callConnect @ServiceMethod(returns = ReturnType.SINGLE) public Mono> addParticipantWithResponseAsync(String callConnectionId, AddParticipantRequestInternal addParticipantRequest) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil.withContext( - context -> service.addParticipant(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), - addParticipantRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context)); + return FluxUtil + .withContext(context -> addParticipantWithResponseAsync(callConnectionId, addParticipantRequest, context)); } /** * Add a participant to the call. * * @param callConnectionId The call connection Id. - * @param addParticipantRequest The request payload for adding participant to the call. + * @param addParticipantRequest The addParticipantRequest parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. @@ -736,17 +717,16 @@ public Mono> addParticipantWithResponse public Mono> addParticipantWithResponseAsync(String callConnectionId, AddParticipantRequestInternal addParticipantRequest, Context context) { final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); return service.addParticipant(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), - addParticipantRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context); + addParticipantRequest, accept, CoreUtils.randomUuid().toString(), + DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()), context); } /** * Add a participant to the call. * * @param callConnectionId The call connection Id. - * @param addParticipantRequest The request payload for adding participant to the call. + * @param addParticipantRequest The addParticipantRequest parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -763,7 +743,7 @@ public Mono addParticipantAsync(String callConne * Add a participant to the call. * * @param callConnectionId The call connection Id. - * @param addParticipantRequest The request payload for adding participant to the call. + * @param addParticipantRequest The addParticipantRequest parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. @@ -781,7 +761,7 @@ public Mono addParticipantAsync(String callConne * Add a participant to the call. * * @param callConnectionId The call connection Id. - * @param addParticipantRequest The request payload for adding participant to the call. + * @param addParticipantRequest The addParticipantRequest parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. @@ -798,7 +778,7 @@ public Response addParticipantWithResponse(Strin * Add a participant to the call. * * @param callConnectionId The call connection Id. - * @param addParticipantRequest The request payload for adding participant to the call. + * @param addParticipantRequest The addParticipantRequest parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -824,12 +804,8 @@ public AddParticipantResponseInternal addParticipant(String callConnectionId, @ServiceMethod(returns = ReturnType.SINGLE) public Mono> removeParticipantWithResponseAsync(String callConnectionId, RemoveParticipantRequestInternal removeParticipantRequest) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil.withContext(context -> service.removeParticipant(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), removeParticipantRequest, accept, repeatabilityRequestId, - repeatabilityFirstSent, context)); + return FluxUtil.withContext( + context -> removeParticipantWithResponseAsync(callConnectionId, removeParticipantRequest, context)); } /** @@ -848,10 +824,9 @@ public Mono> removeParticipantWithRe public Mono> removeParticipantWithResponseAsync(String callConnectionId, RemoveParticipantRequestInternal removeParticipantRequest, Context context) { final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); return service.removeParticipant(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), - removeParticipantRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context); + removeParticipantRequest, accept, CoreUtils.randomUuid().toString(), + DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()), context); } /** @@ -936,12 +911,8 @@ public RemoveParticipantResponseInternal removeParticipant(String callConnection @ServiceMethod(returns = ReturnType.SINGLE) public Mono> muteWithResponseAsync(String callConnectionId, MuteParticipantsRequestInternal muteParticipantsRequest) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil.withContext( - context -> service.mute(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), - muteParticipantsRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context)); + return FluxUtil + .withContext(context -> muteWithResponseAsync(callConnectionId, muteParticipantsRequest, context)); } /** @@ -960,10 +931,9 @@ public Mono> muteWithResponseAsync(Stri public Mono> muteWithResponseAsync(String callConnectionId, MuteParticipantsRequestInternal muteParticipantsRequest, Context context) { final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); return service.mute(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), - muteParticipantsRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context); + muteParticipantsRequest, accept, CoreUtils.randomUuid().toString(), + DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()), context); } /** @@ -1048,12 +1018,8 @@ public MuteParticipantsResultInternal mute(String callConnectionId, @ServiceMethod(returns = ReturnType.SINGLE) public Mono> cancelAddParticipantWithResponseAsync(String callConnectionId, CancelAddParticipantRequest cancelAddParticipantRequest) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil.withContext(context -> service.cancelAddParticipant(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), cancelAddParticipantRequest, accept, repeatabilityRequestId, - repeatabilityFirstSent, context)); + return FluxUtil.withContext( + context -> cancelAddParticipantWithResponseAsync(callConnectionId, cancelAddParticipantRequest, context)); } /** @@ -1072,10 +1038,9 @@ public Mono> cancelAddParticipantWithResp public Mono> cancelAddParticipantWithResponseAsync(String callConnectionId, CancelAddParticipantRequest cancelAddParticipantRequest, Context context) { final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); return service.cancelAddParticipant(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), - cancelAddParticipantRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context); + cancelAddParticipantRequest, accept, CoreUtils.randomUuid().toString(), + DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()), context); } /** @@ -1159,9 +1124,8 @@ public CancelAddParticipantResponse cancelAddParticipant(String callConnectionId @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getParticipantWithResponseAsync(String callConnectionId, String participantRawId) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.getParticipant(this.client.getEndpoint(), callConnectionId, - participantRawId, this.client.getApiVersion(), accept, context)); + return FluxUtil + .withContext(context -> getParticipantWithResponseAsync(callConnectionId, participantRawId, context)); } /** @@ -1252,9 +1216,7 @@ public CallParticipantInternal getParticipant(String callConnectionId, String pa /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1273,9 +1235,7 @@ public Mono> getParticipantsNextSinglePag /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. @@ -1295,9 +1255,7 @@ public Mono> getParticipantsNextSinglePag /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1311,9 +1269,7 @@ public PagedResponse getParticipantsNextSinglePage(Stri /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws CommunicationErrorResponseException thrown if the request is rejected by server. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallMediasImpl.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallMediasImpl.java index a0696ac44a44..0df615d940a4 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallMediasImpl.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallMediasImpl.java @@ -32,10 +32,10 @@ import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; import com.azure.core.util.DateTimeRfc1123; import com.azure.core.util.FluxUtil; import java.time.OffsetDateTime; -import java.util.UUID; import reactor.core.publisher.Mono; /** @@ -68,7 +68,7 @@ public final class CallMediasImpl { * proxy service to perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AzureCommunicationCa") + @ServiceInterface(name = "AzureCommunicationCallAutomationServiceCallMedias") public interface CallMediasService { @Post("/calling/callConnections/{callConnectionId}:play") @ExpectedResponses({ 202 }) @@ -188,9 +188,7 @@ Mono> stopMediaStreaming(@HostParam("endpoint") String endpoint, */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> playWithResponseAsync(String callConnectionId, PlayRequest playRequest) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.play(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), playRequest, accept, context)); + return FluxUtil.withContext(context -> playWithResponseAsync(callConnectionId, playRequest, context)); } /** @@ -286,9 +284,8 @@ public void play(String callConnectionId, PlayRequest playRequest) { @ServiceMethod(returns = ReturnType.SINGLE) public Mono> startTranscriptionWithResponseAsync(String callConnectionId, StartTranscriptionRequestInternal startTranscriptionRequest) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.startTranscription(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), startTranscriptionRequest, accept, context)); + return FluxUtil.withContext( + context -> startTranscriptionWithResponseAsync(callConnectionId, startTranscriptionRequest, context)); } /** @@ -390,9 +387,8 @@ public void startTranscription(String callConnectionId, @ServiceMethod(returns = ReturnType.SINGLE) public Mono> stopTranscriptionWithResponseAsync(String callConnectionId, StopTranscriptionRequestInternal stopTranscriptionRequest) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.stopTranscription(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), stopTranscriptionRequest, accept, context)); + return FluxUtil.withContext( + context -> stopTranscriptionWithResponseAsync(callConnectionId, stopTranscriptionRequest, context)); } /** @@ -495,9 +491,8 @@ public void stopTranscription(String callConnectionId, StopTranscriptionRequestI @ServiceMethod(returns = ReturnType.SINGLE) public Mono> updateTranscriptionWithResponseAsync(String callConnectionId, UpdateTranscriptionRequestInternal updateTranscriptionRequest) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.updateTranscription(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), updateTranscriptionRequest, accept, context)); + return FluxUtil.withContext( + context -> updateTranscriptionWithResponseAsync(callConnectionId, updateTranscriptionRequest, context)); } /** @@ -607,9 +602,7 @@ public void updateTranscription(String callConnectionId, */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> cancelAllMediaOperationsWithResponseAsync(String callConnectionId) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.cancelAllMediaOperations(this.client.getEndpoint(), - callConnectionId, this.client.getApiVersion(), accept, context)); + return FluxUtil.withContext(context -> cancelAllMediaOperationsWithResponseAsync(callConnectionId, context)); } /** @@ -698,9 +691,7 @@ public void cancelAllMediaOperations(String callConnectionId) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> recognizeWithResponseAsync(String callConnectionId, RecognizeRequest recognizeRequest) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.recognize(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), recognizeRequest, accept, context)); + return FluxUtil.withContext(context -> recognizeWithResponseAsync(callConnectionId, recognizeRequest, context)); } /** @@ -797,9 +788,8 @@ public void recognize(String callConnectionId, RecognizeRequest recognizeRequest @ServiceMethod(returns = ReturnType.SINGLE) public Mono> startContinuousDtmfRecognitionWithResponseAsync(String callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequest) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.startContinuousDtmfRecognition(this.client.getEndpoint(), - callConnectionId, this.client.getApiVersion(), continuousDtmfRecognitionRequest, accept, context)); + return FluxUtil.withContext(context -> startContinuousDtmfRecognitionWithResponseAsync(callConnectionId, + continuousDtmfRecognitionRequest, context)); } /** @@ -902,9 +892,8 @@ public void startContinuousDtmfRecognition(String callConnectionId, @ServiceMethod(returns = ReturnType.SINGLE) public Mono> stopContinuousDtmfRecognitionWithResponseAsync(String callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequest) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.stopContinuousDtmfRecognition(this.client.getEndpoint(), - callConnectionId, this.client.getApiVersion(), continuousDtmfRecognitionRequest, accept, context)); + return FluxUtil.withContext(context -> stopContinuousDtmfRecognitionWithResponseAsync(callConnectionId, + continuousDtmfRecognitionRequest, context)); } /** @@ -1007,12 +996,8 @@ public void stopContinuousDtmfRecognition(String callConnectionId, @ServiceMethod(returns = ReturnType.SINGLE) public Mono> sendDtmfTonesWithResponseAsync(String callConnectionId, SendDtmfTonesRequestInternal sendDtmfTonesRequest) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil.withContext( - context -> service.sendDtmfTones(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), - sendDtmfTonesRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context)); + return FluxUtil + .withContext(context -> sendDtmfTonesWithResponseAsync(callConnectionId, sendDtmfTonesRequest, context)); } /** @@ -1030,10 +1015,9 @@ public Mono> sendDtmfTonesWithResponseAsyn public Mono> sendDtmfTonesWithResponseAsync(String callConnectionId, SendDtmfTonesRequestInternal sendDtmfTonesRequest, Context context) { final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); return service.sendDtmfTones(this.client.getEndpoint(), callConnectionId, this.client.getApiVersion(), - sendDtmfTonesRequest, accept, repeatabilityRequestId, repeatabilityFirstSent, context); + sendDtmfTonesRequest, accept, CoreUtils.randomUuid().toString(), + DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()), context); } /** @@ -1116,9 +1100,7 @@ public SendDtmfTonesResultInternal sendDtmfTones(String callConnectionId, */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> holdWithResponseAsync(String callConnectionId, HoldRequest holdRequest) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.hold(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), holdRequest, accept, context)); + return FluxUtil.withContext(context -> holdWithResponseAsync(callConnectionId, holdRequest, context)); } /** @@ -1213,9 +1195,7 @@ public void hold(String callConnectionId, HoldRequest holdRequest) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> unholdWithResponseAsync(String callConnectionId, UnholdRequest unholdRequest) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.unhold(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), unholdRequest, accept, context)); + return FluxUtil.withContext(context -> unholdWithResponseAsync(callConnectionId, unholdRequest, context)); } /** @@ -1313,9 +1293,8 @@ public void unhold(String callConnectionId, UnholdRequest unholdRequest) { @ServiceMethod(returns = ReturnType.SINGLE) public Mono> startMediaStreamingWithResponseAsync(String callConnectionId, StartMediaStreamingRequest startMediaStreamingRequest) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.startMediaStreaming(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), startMediaStreamingRequest, accept, context)); + return FluxUtil.withContext( + context -> startMediaStreamingWithResponseAsync(callConnectionId, startMediaStreamingRequest, context)); } /** @@ -1428,9 +1407,8 @@ public void startMediaStreaming(String callConnectionId, StartMediaStreamingRequ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> stopMediaStreamingWithResponseAsync(String callConnectionId, StopMediaStreamingRequest stopMediaStreamingRequest) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.stopMediaStreaming(this.client.getEndpoint(), callConnectionId, - this.client.getApiVersion(), stopMediaStreamingRequest, accept, context)); + return FluxUtil.withContext( + context -> stopMediaStreamingWithResponseAsync(callConnectionId, stopMediaStreamingRequest, context)); } /** diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallRecordingsImpl.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallRecordingsImpl.java index 4e48ba94799d..454555930fa1 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallRecordingsImpl.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/CallRecordingsImpl.java @@ -24,10 +24,10 @@ import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; import com.azure.core.util.DateTimeRfc1123; import com.azure.core.util.FluxUtil; import java.time.OffsetDateTime; -import java.util.UUID; import reactor.core.publisher.Mono; /** @@ -60,7 +60,7 @@ public final class CallRecordingsImpl { * the proxy service to perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AzureCommunicationCa") + @ServiceInterface(name = "AzureCommunicationCallAutomationServiceCallRecordings") public interface CallRecordingsService { @Post("/calling/recordings") @ExpectedResponses({ 200 }) @@ -113,12 +113,7 @@ Mono> resumeRecording(@HostParam("endpoint") String endpoint, @ServiceMethod(returns = ReturnType.SINGLE) public Mono> startRecordingWithResponseAsync(StartCallRecordingRequestInternal startCallRecording) { - final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); - return FluxUtil - .withContext(context -> service.startRecording(this.client.getEndpoint(), this.client.getApiVersion(), - startCallRecording, accept, repeatabilityRequestId, repeatabilityFirstSent, context)); + return FluxUtil.withContext(context -> startRecordingWithResponseAsync(startCallRecording, context)); } /** @@ -135,10 +130,8 @@ Mono> resumeRecording(@HostParam("endpoint") String endpoint, public Mono> startRecordingWithResponseAsync(StartCallRecordingRequestInternal startCallRecording, Context context) { final String accept = "application/json"; - String repeatabilityRequestId = UUID.randomUUID().toString(); - String repeatabilityFirstSent = DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()); return service.startRecording(this.client.getEndpoint(), this.client.getApiVersion(), startCallRecording, - accept, repeatabilityRequestId, repeatabilityFirstSent, context); + accept, CoreUtils.randomUuid().toString(), DateTimeRfc1123.toRfc1123String(OffsetDateTime.now()), context); } /** @@ -214,9 +207,7 @@ public RecordingStateResponseInternal startRecording(StartCallRecordingRequestIn */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getRecordingPropertiesWithResponseAsync(String recordingId) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.getRecordingProperties(this.client.getEndpoint(), recordingId, - this.client.getApiVersion(), accept, context)); + return FluxUtil.withContext(context -> getRecordingPropertiesWithResponseAsync(recordingId, context)); } /** @@ -308,9 +299,7 @@ public RecordingStateResponseInternal getRecordingProperties(String recordingId) */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> stopRecordingWithResponseAsync(String recordingId) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.stopRecording(this.client.getEndpoint(), recordingId, - this.client.getApiVersion(), accept, context)); + return FluxUtil.withContext(context -> stopRecordingWithResponseAsync(recordingId, context)); } /** @@ -398,9 +387,7 @@ public void stopRecording(String recordingId) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> pauseRecordingWithResponseAsync(String recordingId) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.pauseRecording(this.client.getEndpoint(), recordingId, - this.client.getApiVersion(), accept, context)); + return FluxUtil.withContext(context -> pauseRecordingWithResponseAsync(recordingId, context)); } /** @@ -488,9 +475,7 @@ public void pauseRecording(String recordingId) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> resumeRecordingWithResponseAsync(String recordingId) { - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.resumeRecording(this.client.getEndpoint(), recordingId, - this.client.getApiVersion(), accept, context)); + return FluxUtil.withContext(context -> resumeRecordingWithResponseAsync(recordingId, context)); } /** diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AddParticipantRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AddParticipantRequestInternal.java index 2edb1c69f4c2..8173252e7d39 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AddParticipantRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AddParticipantRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,44 +21,52 @@ public final class AddParticipantRequestInternal implements JsonSerializable { AddParticipantRequestInternal deserializedAddParticipantRequestInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AddParticipantResponseInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AddParticipantResponseInternal.java index aef1e3470767..ef33a5fd38bd 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AddParticipantResponseInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AddParticipantResponseInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,21 +20,25 @@ public final class AddParticipantResponseInternal implements JsonSerializable { AddParticipantResponseInternal deserializedAddParticipantResponseInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AnswerCallRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AnswerCallRequestInternal.java index f6c0b8273c2b..8cf0efeaabe3 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AnswerCallRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AnswerCallRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,41 +20,49 @@ public final class AnswerCallRequestInternal implements JsonSerializable { AnswerCallRequestInternal deserializedAnswerCallRequestInternal = new AnswerCallRequestInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AudioFormatInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AudioFormatInternal.java index b8fae61467b2..3c910182930b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AudioFormatInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/AudioFormatInternal.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. - package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -11,40 +11,46 @@ * The audio format used for encoding, including sample rate and channel type. The default is Pcm16KMono. */ public final class AudioFormatInternal extends ExpandableStringEnum { + /** * Static value pcm16KMono for AudioFormatInternal. */ + @Generated public static final AudioFormatInternal PCM_16K_MONO = fromString("pcm16KMono"); /** * Static value pcm24KMono for AudioFormatInternal. */ + @Generated public static final AudioFormatInternal PCM_24K_MONO = fromString("pcm24KMono"); /** * Creates a new instance of AudioFormatInternal value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ + @Generated @Deprecated public AudioFormatInternal() { } /** * Creates or finds a AudioFormatInternal from its string representation. - * + * * @param name a name to look for. * @return the corresponding AudioFormatInternal. */ + @Generated public static AudioFormatInternal fromString(String name) { return fromString(name, AudioFormatInternal.class); } /** * Gets known AudioFormatInternal values. - * + * * @return known AudioFormatInternal values. */ + @Generated public static Collection values() { return values(AudioFormatInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionPropertiesInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionPropertiesInternal.java index c4b83ed1cce0..da4ef6d9dde3 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionPropertiesInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionPropertiesInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,72 +21,87 @@ public final class CallConnectionPropertiesInternal implements JsonSerializable< /* * The call connection id. */ + @Generated private String callConnectionId; /* * The server call id. */ + @Generated private String serverCallId; /* * The targets of the call. */ + @Generated private List targets; /* * The state of the call connection. */ + @Generated private CallConnectionStateModelInternal callConnectionState; /* * The callback URI. */ + @Generated private String callbackUri; /* * The source caller Id, a phone number, that's shown to the PSTN participant being invited. * Required only when calling a PSTN callee. */ + @Generated private PhoneNumberIdentifierModel sourceCallerIdNumber; /* * Display name of the call if dialing out to a pstn number. */ + @Generated private String sourceDisplayName; /* * Source identity. */ + @Generated private CommunicationIdentifierModel source; /* * The correlation ID. */ + @Generated private String correlationId; /* * Identity of the answering entity. Only populated when identity is provided in the request. */ + @Generated private CommunicationUserIdentifierModel answeredBy; /* * The state of media streaming subscription for the call */ + @Generated private MediaStreamingSubscriptionInternal mediaStreamingSubscription; /* * Transcription Subscription. */ + @Generated private TranscriptionSubscriptionInternal transcriptionSubscription; /* - * Identity of the original Pstn target of an incoming Call. Only populated when the original target is a Pstn number. + * Identity of the original Pstn target of an incoming Call. Only populated when the original target is a Pstn + * number. */ + @Generated private PhoneNumberIdentifierModel answeredFor; /** * Creates an instance of CallConnectionPropertiesInternal class. */ + @Generated public CallConnectionPropertiesInternal() { } @@ -94,6 +110,7 @@ public CallConnectionPropertiesInternal() { * * @return the callConnectionId value. */ + @Generated public String getCallConnectionId() { return this.callConnectionId; } @@ -104,6 +121,7 @@ public String getCallConnectionId() { * @param callConnectionId the callConnectionId value to set. * @return the CallConnectionPropertiesInternal object itself. */ + @Generated public CallConnectionPropertiesInternal setCallConnectionId(String callConnectionId) { this.callConnectionId = callConnectionId; return this; @@ -114,6 +132,7 @@ public CallConnectionPropertiesInternal setCallConnectionId(String callConnectio * * @return the serverCallId value. */ + @Generated public String getServerCallId() { return this.serverCallId; } @@ -124,6 +143,7 @@ public String getServerCallId() { * @param serverCallId the serverCallId value to set. * @return the CallConnectionPropertiesInternal object itself. */ + @Generated public CallConnectionPropertiesInternal setServerCallId(String serverCallId) { this.serverCallId = serverCallId; return this; @@ -134,6 +154,7 @@ public CallConnectionPropertiesInternal setServerCallId(String serverCallId) { * * @return the targets value. */ + @Generated public List getTargets() { return this.targets; } @@ -144,6 +165,7 @@ public List getTargets() { * @param targets the targets value to set. * @return the CallConnectionPropertiesInternal object itself. */ + @Generated public CallConnectionPropertiesInternal setTargets(List targets) { this.targets = targets; return this; @@ -154,6 +176,7 @@ public CallConnectionPropertiesInternal setTargets(List { CallConnectionPropertiesInternal deserializedCallConnectionPropertiesInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionStateModelInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionStateModelInternal.java index b740b1ad5fbd..827398b94be0 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionStateModelInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallConnectionStateModelInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,36 +15,43 @@ public final class CallConnectionStateModelInternal extends ExpandableStringEnum /** * Static value unknown for CallConnectionStateModelInternal. */ + @Generated public static final CallConnectionStateModelInternal UNKNOWN = fromString("unknown"); /** * Static value connecting for CallConnectionStateModelInternal. */ + @Generated public static final CallConnectionStateModelInternal CONNECTING = fromString("connecting"); /** * Static value connected for CallConnectionStateModelInternal. */ + @Generated public static final CallConnectionStateModelInternal CONNECTED = fromString("connected"); /** * Static value transferring for CallConnectionStateModelInternal. */ + @Generated public static final CallConnectionStateModelInternal TRANSFERRING = fromString("transferring"); /** * Static value transferAccepted for CallConnectionStateModelInternal. */ + @Generated public static final CallConnectionStateModelInternal TRANSFER_ACCEPTED = fromString("transferAccepted"); /** * Static value disconnecting for CallConnectionStateModelInternal. */ + @Generated public static final CallConnectionStateModelInternal DISCONNECTING = fromString("disconnecting"); /** * Static value disconnected for CallConnectionStateModelInternal. */ + @Generated public static final CallConnectionStateModelInternal DISCONNECTED = fromString("disconnected"); /** @@ -51,6 +59,7 @@ public final class CallConnectionStateModelInternal extends ExpandableStringEnum * * @deprecated Use the {@link #fromString(String)} factory method. */ + @Generated @Deprecated public CallConnectionStateModelInternal() { } @@ -61,6 +70,7 @@ public CallConnectionStateModelInternal() { * @param name a name to look for. * @return the corresponding CallConnectionStateModelInternal. */ + @Generated public static CallConnectionStateModelInternal fromString(String name) { return fromString(name, CallConnectionStateModelInternal.class); } @@ -70,6 +80,7 @@ public static CallConnectionStateModelInternal fromString(String name) { * * @return known CallConnectionStateModelInternal values. */ + @Generated public static Collection values() { return values(CallConnectionStateModelInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallIntelligenceOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallIntelligenceOptionsInternal.java index 3ee92c645bb8..9523ccda6160 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallIntelligenceOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallIntelligenceOptionsInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,11 +20,13 @@ public final class CallIntelligenceOptionsInternal implements JsonSerializable { CallIntelligenceOptionsInternal deserializedCallIntelligenceOptionsInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallLocatorInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallLocatorInternal.java index 937ab5faa451..9e3b364c2ffb 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallLocatorInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallLocatorInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,26 +20,31 @@ public final class CallLocatorInternal implements JsonSerializable { CallLocatorInternal deserializedCallLocatorInternal = new CallLocatorInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallLocatorKindInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallLocatorKindInternal.java index a9487eb52b51..1d59a108a280 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallLocatorKindInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallLocatorKindInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,16 +15,19 @@ public final class CallLocatorKindInternal extends ExpandableStringEnum values() { return values(CallLocatorKindInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallParticipantInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallParticipantInternal.java index 48ae95e85793..a4b486b04506 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallParticipantInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallParticipantInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,21 +20,25 @@ public final class CallParticipantInternal implements JsonSerializable { CallParticipantInternal deserializedCallParticipantInternal = new CallParticipantInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallRejectReasonInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallRejectReasonInternal.java index 5c20714e9d41..cdc6527414e3 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallRejectReasonInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CallRejectReasonInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,16 +15,19 @@ public final class CallRejectReasonInternal extends ExpandableStringEnum values() { return values(CallRejectReasonInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CancelAddParticipantRequest.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CancelAddParticipantRequest.java index ca03f80f6b83..539223b6f5b4 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CancelAddParticipantRequest.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CancelAddParticipantRequest.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,22 +20,26 @@ public final class CancelAddParticipantRequest implements JsonSerializable { CancelAddParticipantRequest deserializedCancelAddParticipantRequest = new CancelAddParticipantRequest(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CancelAddParticipantResponse.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CancelAddParticipantResponse.java index 16702ca09078..f3b4936605fd 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CancelAddParticipantResponse.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CancelAddParticipantResponse.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,16 +20,19 @@ public final class CancelAddParticipantResponse implements JsonSerializable { CancelAddParticipantResponse deserializedCancelAddParticipantResponse = new CancelAddParticipantResponse(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ChannelAffinityInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ChannelAffinityInternal.java index 23585e9482d5..87eb3f8c5dd6 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ChannelAffinityInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ChannelAffinityInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,17 +20,20 @@ public final class ChannelAffinityInternal implements JsonSerializable { ChannelAffinityInternal deserializedChannelAffinityInternal = new ChannelAffinityInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ChoiceResultInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ChoiceResultInternal.java index 9c5a84966174..cdc428acfc74 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ChoiceResultInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ChoiceResultInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,22 +20,27 @@ public final class ChoiceResultInternal implements JsonSerializable { ChoiceResultInternal deserializedChoiceResultInternal = new ChoiceResultInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationCloudEnvironmentModel.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationCloudEnvironmentModel.java index b23ad2ef21c0..f62ab4ed249e 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationCloudEnvironmentModel.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationCloudEnvironmentModel.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,16 +15,19 @@ public final class CommunicationCloudEnvironmentModel extends ExpandableStringEn /** * Static value public for CommunicationCloudEnvironmentModel. */ + @Generated public static final CommunicationCloudEnvironmentModel PUBLIC = fromString("public"); /** * Static value dod for CommunicationCloudEnvironmentModel. */ + @Generated public static final CommunicationCloudEnvironmentModel DOD = fromString("dod"); /** * Static value gcch for CommunicationCloudEnvironmentModel. */ + @Generated public static final CommunicationCloudEnvironmentModel GCCH = fromString("gcch"); /** @@ -31,6 +35,7 @@ public final class CommunicationCloudEnvironmentModel extends ExpandableStringEn * * @deprecated Use the {@link #fromString(String)} factory method. */ + @Generated @Deprecated public CommunicationCloudEnvironmentModel() { } @@ -41,6 +46,7 @@ public CommunicationCloudEnvironmentModel() { * @param name a name to look for. * @return the corresponding CommunicationCloudEnvironmentModel. */ + @Generated public static CommunicationCloudEnvironmentModel fromString(String name) { return fromString(name, CommunicationCloudEnvironmentModel.class); } @@ -50,6 +56,7 @@ public static CommunicationCloudEnvironmentModel fromString(String name) { * * @return known CommunicationCloudEnvironmentModel values. */ + @Generated public static Collection values() { return values(CommunicationCloudEnvironmentModel.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationError.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationError.java index 5a72635a8cb3..ee6ee352ff83 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationError.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationError.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,31 +21,37 @@ public final class CommunicationError implements JsonSerializable details; /* * The inner error if any. */ + @Generated private CommunicationError innerError; /** * Creates an instance of CommunicationError class. */ + @Generated public CommunicationError() { } @@ -53,6 +60,7 @@ public CommunicationError() { * * @return the code value. */ + @Generated public String getCode() { return this.code; } @@ -63,6 +71,7 @@ public String getCode() { * @param code the code value to set. * @return the CommunicationError object itself. */ + @Generated public CommunicationError setCode(String code) { this.code = code; return this; @@ -73,6 +82,7 @@ public CommunicationError setCode(String code) { * * @return the message value. */ + @Generated public String getMessage() { return this.message; } @@ -83,6 +93,7 @@ public String getMessage() { * @param message the message value to set. * @return the CommunicationError object itself. */ + @Generated public CommunicationError setMessage(String message) { this.message = message; return this; @@ -93,6 +104,7 @@ public CommunicationError setMessage(String message) { * * @return the target value. */ + @Generated public String getTarget() { return this.target; } @@ -102,6 +114,7 @@ public String getTarget() { * * @return the details value. */ + @Generated public List getDetails() { return this.details; } @@ -111,6 +124,7 @@ public List getDetails() { * * @return the innerError value. */ + @Generated public CommunicationError getInnerError() { return this.innerError; } @@ -118,6 +132,7 @@ public CommunicationError getInnerError() { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -135,6 +150,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the CommunicationError. */ + @Generated public static CommunicationError fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { CommunicationError deserializedCommunicationError = new CommunicationError(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationErrorResponse.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationErrorResponse.java index c90df22305bf..db13c642a062 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationErrorResponse.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationErrorResponse.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,11 +20,13 @@ public final class CommunicationErrorResponse implements JsonSerializable { CommunicationErrorResponse deserializedCommunicationErrorResponse = new CommunicationErrorResponse(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationIdentifierModel.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationIdentifierModel.java index e09e308be2c2..ade71b4685a3 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationIdentifierModel.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationIdentifierModel.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -21,36 +22,43 @@ public final class CommunicationIdentifierModel implements JsonSerializable { CommunicationIdentifierModel deserializedCommunicationIdentifierModel = new CommunicationIdentifierModel(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationIdentifierModelKind.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationIdentifierModelKind.java index 2826f290d0c9..c7b7ced08a3f 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationIdentifierModelKind.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationIdentifierModelKind.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,26 +15,31 @@ public final class CommunicationIdentifierModelKind extends ExpandableStringEnum /** * Static value unknown for CommunicationIdentifierModelKind. */ + @Generated public static final CommunicationIdentifierModelKind UNKNOWN = fromString("unknown"); /** * Static value communicationUser for CommunicationIdentifierModelKind. */ + @Generated public static final CommunicationIdentifierModelKind COMMUNICATION_USER = fromString("communicationUser"); /** * Static value phoneNumber for CommunicationIdentifierModelKind. */ + @Generated public static final CommunicationIdentifierModelKind PHONE_NUMBER = fromString("phoneNumber"); /** * Static value microsoftTeamsUser for CommunicationIdentifierModelKind. */ + @Generated public static final CommunicationIdentifierModelKind MICROSOFT_TEAMS_USER = fromString("microsoftTeamsUser"); /** * Static value microsoftTeamsApp for CommunicationIdentifierModelKind. */ + @Generated public static final CommunicationIdentifierModelKind MICROSOFT_TEAMS_APP = fromString("microsoftTeamsApp"); /** @@ -41,6 +47,7 @@ public final class CommunicationIdentifierModelKind extends ExpandableStringEnum * * @deprecated Use the {@link #fromString(String)} factory method. */ + @Generated @Deprecated public CommunicationIdentifierModelKind() { } @@ -51,6 +58,7 @@ public CommunicationIdentifierModelKind() { * @param name a name to look for. * @return the corresponding CommunicationIdentifierModelKind. */ + @Generated public static CommunicationIdentifierModelKind fromString(String name) { return fromString(name, CommunicationIdentifierModelKind.class); } @@ -60,6 +68,7 @@ public static CommunicationIdentifierModelKind fromString(String name) { * * @return known CommunicationIdentifierModelKind values. */ + @Generated public static Collection values() { return values(CommunicationIdentifierModelKind.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationUserIdentifierModel.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationUserIdentifierModel.java index a6eff24d897b..3f4301294193 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationUserIdentifierModel.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CommunicationUserIdentifierModel.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,11 +20,13 @@ public final class CommunicationUserIdentifierModel implements JsonSerializable< /* * The Id of the communication user. */ + @Generated private String id; /** * Creates an instance of CommunicationUserIdentifierModel class. */ + @Generated public CommunicationUserIdentifierModel() { } @@ -32,6 +35,7 @@ public CommunicationUserIdentifierModel() { * * @return the id value. */ + @Generated public String getId() { return this.id; } @@ -42,6 +46,7 @@ public String getId() { * @param id the id value to set. * @return the CommunicationUserIdentifierModel object itself. */ + @Generated public CommunicationUserIdentifierModel setId(String id) { this.id = id; return this; @@ -50,6 +55,7 @@ public CommunicationUserIdentifierModel setId(String id) { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -66,6 +72,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the CommunicationUserIdentifierModel. */ + @Generated public static CommunicationUserIdentifierModel fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { CommunicationUserIdentifierModel deserializedCommunicationUserIdentifierModel diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ConnectRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ConnectRequestInternal.java index 89c9fa0e6030..52cb8e2436fd 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ConnectRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ConnectRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,36 +20,43 @@ public final class ConnectRequestInternal implements JsonSerializable { ConnectRequestInternal deserializedConnectRequestInternal = new ConnectRequestInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ContinuousDtmfRecognitionRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ContinuousDtmfRecognitionRequestInternal.java index 1e557e0cccb9..591e4f320a47 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ContinuousDtmfRecognitionRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ContinuousDtmfRecognitionRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,22 +21,26 @@ public final class ContinuousDtmfRecognitionRequestInternal /* * Defines options for recognition. */ + @Generated private CommunicationIdentifierModel targetParticipant; /* * The value to identify context of the operation. */ + @Generated private String operationContext; /* * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. */ + @Generated private String operationCallbackUri; /** * Creates an instance of ContinuousDtmfRecognitionRequestInternal class. */ + @Generated public ContinuousDtmfRecognitionRequestInternal() { } @@ -44,6 +49,7 @@ public ContinuousDtmfRecognitionRequestInternal() { * * @return the targetParticipant value. */ + @Generated public CommunicationIdentifierModel getTargetParticipant() { return this.targetParticipant; } @@ -54,6 +60,7 @@ public CommunicationIdentifierModel getTargetParticipant() { * @param targetParticipant the targetParticipant value to set. * @return the ContinuousDtmfRecognitionRequestInternal object itself. */ + @Generated public ContinuousDtmfRecognitionRequestInternal setTargetParticipant(CommunicationIdentifierModel targetParticipant) { this.targetParticipant = targetParticipant; @@ -65,6 +72,7 @@ public CommunicationIdentifierModel getTargetParticipant() { * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -75,6 +83,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the ContinuousDtmfRecognitionRequestInternal object itself. */ + @Generated public ContinuousDtmfRecognitionRequestInternal setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -87,6 +96,7 @@ public ContinuousDtmfRecognitionRequestInternal setOperationContext(String opera * * @return the operationCallbackUri value. */ + @Generated public String getOperationCallbackUri() { return this.operationCallbackUri; } @@ -99,6 +109,7 @@ public String getOperationCallbackUri() { * @param operationCallbackUri the operationCallbackUri value to set. * @return the ContinuousDtmfRecognitionRequestInternal object itself. */ + @Generated public ContinuousDtmfRecognitionRequestInternal setOperationCallbackUri(String operationCallbackUri) { this.operationCallbackUri = operationCallbackUri; return this; @@ -107,6 +118,7 @@ public ContinuousDtmfRecognitionRequestInternal setOperationCallbackUri(String o /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -125,6 +137,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ContinuousDtmfRecognitionRequestInternal. */ + @Generated public static ContinuousDtmfRecognitionRequestInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { ContinuousDtmfRecognitionRequestInternal deserializedContinuousDtmfRecognitionRequestInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CreateCallRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CreateCallRequestInternal.java index dc74e0ccd436..3f2265662621 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CreateCallRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CreateCallRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,52 +21,62 @@ public final class CreateCallRequestInternal implements JsonSerializable targets; /* * The source caller Id, a phone number, that's shown to the PSTN participant being invited. * Required only when calling a PSTN callee. */ + @Generated private PhoneNumberIdentifierModel sourceCallerIdNumber; /* * Display name of the call if dialing out to a pstn number */ + @Generated private String sourceDisplayName; /* * The identifier of the source of the call */ + @Generated private CommunicationUserIdentifierModel source; /* * A customer set value used to track the answering of a call. */ + @Generated private String operationContext; /* * The callback URI. */ + @Generated private String callbackUri; /* * AI options for the call. */ + @Generated private CallIntelligenceOptionsInternal callIntelligenceOptions; /* * Media Streaming Options. */ + @Generated private MediaStreamingOptionsInternal mediaStreamingOptions; /* * Transcription Options. */ + @Generated private TranscriptionOptionsInternal transcriptionOptions; /** * Creates an instance of CreateCallRequestInternal class. */ + @Generated public CreateCallRequestInternal() { } @@ -74,6 +85,7 @@ public CreateCallRequestInternal() { * * @return the targets value. */ + @Generated public List getTargets() { return this.targets; } @@ -84,6 +96,7 @@ public List getTargets() { * @param targets the targets value to set. * @return the CreateCallRequestInternal object itself. */ + @Generated public CreateCallRequestInternal setTargets(List targets) { this.targets = targets; return this; @@ -96,6 +109,7 @@ public CreateCallRequestInternal setTargets(List t * * @return the sourceCallerIdNumber value. */ + @Generated public PhoneNumberIdentifierModel getSourceCallerIdNumber() { return this.sourceCallerIdNumber; } @@ -108,6 +122,7 @@ public PhoneNumberIdentifierModel getSourceCallerIdNumber() { * @param sourceCallerIdNumber the sourceCallerIdNumber value to set. * @return the CreateCallRequestInternal object itself. */ + @Generated public CreateCallRequestInternal setSourceCallerIdNumber(PhoneNumberIdentifierModel sourceCallerIdNumber) { this.sourceCallerIdNumber = sourceCallerIdNumber; return this; @@ -118,6 +133,7 @@ public CreateCallRequestInternal setSourceCallerIdNumber(PhoneNumberIdentifierMo * * @return the sourceDisplayName value. */ + @Generated public String getSourceDisplayName() { return this.sourceDisplayName; } @@ -128,6 +144,7 @@ public String getSourceDisplayName() { * @param sourceDisplayName the sourceDisplayName value to set. * @return the CreateCallRequestInternal object itself. */ + @Generated public CreateCallRequestInternal setSourceDisplayName(String sourceDisplayName) { this.sourceDisplayName = sourceDisplayName; return this; @@ -138,6 +155,7 @@ public CreateCallRequestInternal setSourceDisplayName(String sourceDisplayName) * * @return the source value. */ + @Generated public CommunicationUserIdentifierModel getSource() { return this.source; } @@ -148,6 +166,7 @@ public CommunicationUserIdentifierModel getSource() { * @param source the source value to set. * @return the CreateCallRequestInternal object itself. */ + @Generated public CreateCallRequestInternal setSource(CommunicationUserIdentifierModel source) { this.source = source; return this; @@ -158,6 +177,7 @@ public CreateCallRequestInternal setSource(CommunicationUserIdentifierModel sour * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -168,6 +188,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the CreateCallRequestInternal object itself. */ + @Generated public CreateCallRequestInternal setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -178,6 +199,7 @@ public CreateCallRequestInternal setOperationContext(String operationContext) { * * @return the callbackUri value. */ + @Generated public String getCallbackUri() { return this.callbackUri; } @@ -188,6 +210,7 @@ public String getCallbackUri() { * @param callbackUri the callbackUri value to set. * @return the CreateCallRequestInternal object itself. */ + @Generated public CreateCallRequestInternal setCallbackUri(String callbackUri) { this.callbackUri = callbackUri; return this; @@ -198,6 +221,7 @@ public CreateCallRequestInternal setCallbackUri(String callbackUri) { * * @return the callIntelligenceOptions value. */ + @Generated public CallIntelligenceOptionsInternal getCallIntelligenceOptions() { return this.callIntelligenceOptions; } @@ -208,6 +232,7 @@ public CallIntelligenceOptionsInternal getCallIntelligenceOptions() { * @param callIntelligenceOptions the callIntelligenceOptions value to set. * @return the CreateCallRequestInternal object itself. */ + @Generated public CreateCallRequestInternal setCallIntelligenceOptions(CallIntelligenceOptionsInternal callIntelligenceOptions) { this.callIntelligenceOptions = callIntelligenceOptions; @@ -219,6 +244,7 @@ public CallIntelligenceOptionsInternal getCallIntelligenceOptions() { * * @return the mediaStreamingOptions value. */ + @Generated public MediaStreamingOptionsInternal getMediaStreamingOptions() { return this.mediaStreamingOptions; } @@ -229,6 +255,7 @@ public MediaStreamingOptionsInternal getMediaStreamingOptions() { * @param mediaStreamingOptions the mediaStreamingOptions value to set. * @return the CreateCallRequestInternal object itself. */ + @Generated public CreateCallRequestInternal setMediaStreamingOptions(MediaStreamingOptionsInternal mediaStreamingOptions) { this.mediaStreamingOptions = mediaStreamingOptions; return this; @@ -239,6 +266,7 @@ public CreateCallRequestInternal setMediaStreamingOptions(MediaStreamingOptionsI * * @return the transcriptionOptions value. */ + @Generated public TranscriptionOptionsInternal getTranscriptionOptions() { return this.transcriptionOptions; } @@ -249,6 +277,7 @@ public TranscriptionOptionsInternal getTranscriptionOptions() { * @param transcriptionOptions the transcriptionOptions value to set. * @return the CreateCallRequestInternal object itself. */ + @Generated public CreateCallRequestInternal setTranscriptionOptions(TranscriptionOptionsInternal transcriptionOptions) { this.transcriptionOptions = transcriptionOptions; return this; @@ -257,6 +286,7 @@ public CreateCallRequestInternal setTranscriptionOptions(TranscriptionOptionsInt /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -281,6 +311,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the CreateCallRequestInternal. */ + @Generated public static CreateCallRequestInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { CreateCallRequestInternal deserializedCreateCallRequestInternal = new CreateCallRequestInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CustomCallingContext.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CustomCallingContext.java index 5d438677be8e..bd567a3da412 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CustomCallingContext.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/CustomCallingContext.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,16 +21,19 @@ public final class CustomCallingContext implements JsonSerializable voipHeaders; /* * Custom calling context SIP headers */ + @Generated private Map sipHeaders; /** * Creates an instance of CustomCallingContext class. */ + @Generated public CustomCallingContext() { } @@ -38,6 +42,7 @@ public CustomCallingContext() { * * @return the voipHeaders value. */ + @Generated public Map getVoipHeaders() { return this.voipHeaders; } @@ -48,6 +53,7 @@ public Map getVoipHeaders() { * @param voipHeaders the voipHeaders value to set. * @return the CustomCallingContext object itself. */ + @Generated public CustomCallingContext setVoipHeaders(Map voipHeaders) { this.voipHeaders = voipHeaders; return this; @@ -58,6 +64,7 @@ public CustomCallingContext setVoipHeaders(Map voipHeaders) { * * @return the sipHeaders value. */ + @Generated public Map getSipHeaders() { return this.sipHeaders; } @@ -68,6 +75,7 @@ public Map getSipHeaders() { * @param sipHeaders the sipHeaders value to set. * @return the CustomCallingContext object itself. */ + @Generated public CustomCallingContext setSipHeaders(Map sipHeaders) { this.sipHeaders = sipHeaders; return this; @@ -76,6 +84,7 @@ public CustomCallingContext setSipHeaders(Map sipHeaders) { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -92,6 +101,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * was pointing to JSON null. * @throws IOException If an error occurs while reading the CustomCallingContext. */ + @Generated public static CustomCallingContext fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { CustomCallingContext deserializedCustomCallingContext = new CustomCallingContext(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DtmfOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DtmfOptionsInternal.java index 6ddb2d2d5eca..8ef569bde007 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DtmfOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DtmfOptionsInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,21 +21,25 @@ public final class DtmfOptionsInternal implements JsonSerializable stopTones; /** * Creates an instance of DtmfOptionsInternal class. */ + @Generated public DtmfOptionsInternal() { } @@ -43,6 +48,7 @@ public DtmfOptionsInternal() { * * @return the interToneTimeoutInSeconds value. */ + @Generated public Integer getInterToneTimeoutInSeconds() { return this.interToneTimeoutInSeconds; } @@ -53,6 +59,7 @@ public Integer getInterToneTimeoutInSeconds() { * @param interToneTimeoutInSeconds the interToneTimeoutInSeconds value to set. * @return the DtmfOptionsInternal object itself. */ + @Generated public DtmfOptionsInternal setInterToneTimeoutInSeconds(Integer interToneTimeoutInSeconds) { this.interToneTimeoutInSeconds = interToneTimeoutInSeconds; return this; @@ -63,6 +70,7 @@ public DtmfOptionsInternal setInterToneTimeoutInSeconds(Integer interToneTimeout * * @return the maxTonesToCollect value. */ + @Generated public Integer getMaxTonesToCollect() { return this.maxTonesToCollect; } @@ -73,6 +81,7 @@ public Integer getMaxTonesToCollect() { * @param maxTonesToCollect the maxTonesToCollect value to set. * @return the DtmfOptionsInternal object itself. */ + @Generated public DtmfOptionsInternal setMaxTonesToCollect(Integer maxTonesToCollect) { this.maxTonesToCollect = maxTonesToCollect; return this; @@ -83,6 +92,7 @@ public DtmfOptionsInternal setMaxTonesToCollect(Integer maxTonesToCollect) { * * @return the stopTones value. */ + @Generated public List getStopTones() { return this.stopTones; } @@ -93,6 +103,7 @@ public List getStopTones() { * @param stopTones the stopTones value to set. * @return the DtmfOptionsInternal object itself. */ + @Generated public DtmfOptionsInternal setStopTones(List stopTones) { this.stopTones = stopTones; return this; @@ -101,6 +112,7 @@ public DtmfOptionsInternal setStopTones(List stopTones) { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -119,6 +131,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * pointing to JSON null. * @throws IOException If an error occurs while reading the DtmfOptionsInternal. */ + @Generated public static DtmfOptionsInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { DtmfOptionsInternal deserializedDtmfOptionsInternal = new DtmfOptionsInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DtmfResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DtmfResult.java index 6d37ec1004cd..2672c84203fe 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DtmfResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DtmfResult.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -20,11 +21,13 @@ public final class DtmfResult implements JsonSerializable { /* * The tones property. */ + @Generated private List tones; /** * Creates an instance of DtmfResult class. */ + @Generated public DtmfResult() { } @@ -33,6 +36,7 @@ public DtmfResult() { * * @return the tones value. */ + @Generated public List getTones() { return this.tones; } @@ -40,6 +44,7 @@ public List getTones() { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -54,6 +59,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * to JSON null. * @throws IOException If an error occurs while reading the DtmfResult. */ + @Generated public static DtmfResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { DtmfResult deserializedDtmfResult = new DtmfResult(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DtmfToneInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DtmfToneInternal.java index 40746f83352c..979be3a07c3c 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DtmfToneInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/DtmfToneInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,81 +15,97 @@ public final class DtmfToneInternal extends ExpandableStringEnum values() { return values(DtmfToneInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/FileSourceInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/FileSourceInternal.java index d792049c6de9..f8540c841cfb 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/FileSourceInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/FileSourceInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,11 +20,13 @@ public final class FileSourceInternal implements JsonSerializable { FileSourceInternal deserializedFileSourceInternal = new FileSourceInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/GetParticipantsResponseInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/GetParticipantsResponseInternal.java index df9e5573d1c8..0aba88ce5b6b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/GetParticipantsResponseInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/GetParticipantsResponseInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,16 +21,19 @@ public final class GetParticipantsResponseInternal implements JsonSerializable value; /* * Continue of the list of participants */ + @Generated private String nextLink; /** * Creates an instance of GetParticipantsResponseInternal class. */ + @Generated public GetParticipantsResponseInternal() { } @@ -38,6 +42,7 @@ public GetParticipantsResponseInternal() { * * @return the value value. */ + @Generated public List getValue() { return this.value; } @@ -48,6 +53,7 @@ public List getValue() { * @param value the value value to set. * @return the GetParticipantsResponseInternal object itself. */ + @Generated public GetParticipantsResponseInternal setValue(List value) { this.value = value; return this; @@ -58,6 +64,7 @@ public GetParticipantsResponseInternal setValue(List va * * @return the nextLink value. */ + @Generated public String getNextLink() { return this.nextLink; } @@ -68,6 +75,7 @@ public String getNextLink() { * @param nextLink the nextLink value to set. * @return the GetParticipantsResponseInternal object itself. */ + @Generated public GetParticipantsResponseInternal setNextLink(String nextLink) { this.nextLink = nextLink; return this; @@ -76,6 +84,7 @@ public GetParticipantsResponseInternal setNextLink(String nextLink) { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -93,6 +102,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the GetParticipantsResponseInternal. */ + @Generated public static GetParticipantsResponseInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { GetParticipantsResponseInternal deserializedGetParticipantsResponseInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/HoldRequest.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/HoldRequest.java index 47bf9b442c29..68f41b568d95 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/HoldRequest.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/HoldRequest.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,27 +20,32 @@ public final class HoldRequest implements JsonSerializable { /* * Participant to be held from the call. */ + @Generated private CommunicationIdentifierModel targetParticipant; /* * Prompt to play while in hold. */ + @Generated private PlaySourceInternal playSourceInfo; /* * Used by customers when calling mid-call actions to correlate the request to the response event. */ + @Generated private String operationContext; /* * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. */ + @Generated private String operationCallbackUri; /** * Creates an instance of HoldRequest class. */ + @Generated public HoldRequest() { } @@ -48,6 +54,7 @@ public HoldRequest() { * * @return the targetParticipant value. */ + @Generated public CommunicationIdentifierModel getTargetParticipant() { return this.targetParticipant; } @@ -58,6 +65,7 @@ public CommunicationIdentifierModel getTargetParticipant() { * @param targetParticipant the targetParticipant value to set. * @return the HoldRequest object itself. */ + @Generated public HoldRequest setTargetParticipant(CommunicationIdentifierModel targetParticipant) { this.targetParticipant = targetParticipant; return this; @@ -68,6 +76,7 @@ public HoldRequest setTargetParticipant(CommunicationIdentifierModel targetParti * * @return the playSourceInfo value. */ + @Generated public PlaySourceInternal getPlaySourceInfo() { return this.playSourceInfo; } @@ -78,6 +87,7 @@ public PlaySourceInternal getPlaySourceInfo() { * @param playSourceInfo the playSourceInfo value to set. * @return the HoldRequest object itself. */ + @Generated public HoldRequest setPlaySourceInfo(PlaySourceInternal playSourceInfo) { this.playSourceInfo = playSourceInfo; return this; @@ -89,6 +99,7 @@ public HoldRequest setPlaySourceInfo(PlaySourceInternal playSourceInfo) { * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -100,6 +111,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the HoldRequest object itself. */ + @Generated public HoldRequest setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -112,6 +124,7 @@ public HoldRequest setOperationContext(String operationContext) { * * @return the operationCallbackUri value. */ + @Generated public String getOperationCallbackUri() { return this.operationCallbackUri; } @@ -124,6 +137,7 @@ public String getOperationCallbackUri() { * @param operationCallbackUri the operationCallbackUri value to set. * @return the HoldRequest object itself. */ + @Generated public HoldRequest setOperationCallbackUri(String operationCallbackUri) { this.operationCallbackUri = operationCallbackUri; return this; @@ -132,6 +146,7 @@ public HoldRequest setOperationCallbackUri(String operationCallbackUri) { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -151,6 +166,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the HoldRequest. */ + @Generated public static HoldRequest fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { HoldRequest deserializedHoldRequest = new HoldRequest(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingAudioChannelTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingAudioChannelTypeInternal.java index 2037a64958d2..9d6fdf3903eb 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingAudioChannelTypeInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingAudioChannelTypeInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -15,11 +16,13 @@ public final class MediaStreamingAudioChannelTypeInternal /** * Static value mixed for MediaStreamingAudioChannelTypeInternal. */ + @Generated public static final MediaStreamingAudioChannelTypeInternal MIXED = fromString("mixed"); /** * Static value unmixed for MediaStreamingAudioChannelTypeInternal. */ + @Generated public static final MediaStreamingAudioChannelTypeInternal UNMIXED = fromString("unmixed"); /** @@ -27,6 +30,7 @@ public final class MediaStreamingAudioChannelTypeInternal * * @deprecated Use the {@link #fromString(String)} factory method. */ + @Generated @Deprecated public MediaStreamingAudioChannelTypeInternal() { } @@ -37,6 +41,7 @@ public MediaStreamingAudioChannelTypeInternal() { * @param name a name to look for. * @return the corresponding MediaStreamingAudioChannelTypeInternal. */ + @Generated public static MediaStreamingAudioChannelTypeInternal fromString(String name) { return fromString(name, MediaStreamingAudioChannelTypeInternal.class); } @@ -46,6 +51,7 @@ public static MediaStreamingAudioChannelTypeInternal fromString(String name) { * * @return known MediaStreamingAudioChannelTypeInternal values. */ + @Generated public static Collection values() { return values(MediaStreamingAudioChannelTypeInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingContentTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingContentTypeInternal.java index 31a69696762a..372d93c41576 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingContentTypeInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingContentTypeInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,6 +15,7 @@ public final class MediaStreamingContentTypeInternal extends ExpandableStringEnu /** * Static value audio for MediaStreamingContentTypeInternal. */ + @Generated public static final MediaStreamingContentTypeInternal AUDIO = fromString("audio"); /** @@ -21,6 +23,7 @@ public final class MediaStreamingContentTypeInternal extends ExpandableStringEnu * * @deprecated Use the {@link #fromString(String)} factory method. */ + @Generated @Deprecated public MediaStreamingContentTypeInternal() { } @@ -31,6 +34,7 @@ public MediaStreamingContentTypeInternal() { * @param name a name to look for. * @return the corresponding MediaStreamingContentTypeInternal. */ + @Generated public static MediaStreamingContentTypeInternal fromString(String name) { return fromString(name, MediaStreamingContentTypeInternal.class); } @@ -40,6 +44,7 @@ public static MediaStreamingContentTypeInternal fromString(String name) { * * @return known MediaStreamingContentTypeInternal values. */ + @Generated public static Collection values() { return values(MediaStreamingContentTypeInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java index 7f6fc336346d..1e1677fb935a 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingOptionsInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,20 +18,24 @@ @Fluent public class MediaStreamingOptionsInternal implements JsonSerializable { /* - * Defines the transport type used for streaming. Note that future values may be introduced that are not currently documented. + * Defines the transport type used for streaming. Note that future values may be introduced that are not currently + * documented. */ - private StreamingTransportTypeInternal transportType; + @Generated + private StreamingTransportTypeInternal transportType + = StreamingTransportTypeInternal.fromString("MediaStreamingOptionsInternal"); /* * The audio channel type to stream, e.g., unmixed audio, mixed audio. */ + @Generated private MediaStreamingAudioChannelTypeInternal audioChannelType; /** * Creates an instance of MediaStreamingOptionsInternal class. */ + @Generated public MediaStreamingOptionsInternal() { - this.transportType = StreamingTransportTypeInternal.fromString("MediaStreamingOptionsInternal"); } /** @@ -39,6 +44,7 @@ public MediaStreamingOptionsInternal() { * * @return the transportType value. */ + @Generated public StreamingTransportTypeInternal getTransportType() { return this.transportType; } @@ -48,6 +54,7 @@ public StreamingTransportTypeInternal getTransportType() { * * @return the audioChannelType value. */ + @Generated public MediaStreamingAudioChannelTypeInternal getAudioChannelType() { return this.audioChannelType; } @@ -58,6 +65,7 @@ public MediaStreamingAudioChannelTypeInternal getAudioChannelType() { * @param audioChannelType the audioChannelType value to set. * @return the MediaStreamingOptionsInternal object itself. */ + @Generated public MediaStreamingOptionsInternal setAudioChannelType(MediaStreamingAudioChannelTypeInternal audioChannelType) { this.audioChannelType = audioChannelType; return this; @@ -66,6 +74,7 @@ public MediaStreamingOptionsInternal setAudioChannelType(MediaStreamingAudioChan /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -84,6 +93,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the MediaStreamingOptionsInternal. */ + @Generated public static MediaStreamingOptionsInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { String discriminatorValue = null; @@ -109,6 +119,7 @@ public static MediaStreamingOptionsInternal fromJson(JsonReader jsonReader) thro }); } + @Generated static MediaStreamingOptionsInternal fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { MediaStreamingOptionsInternal deserializedMediaStreamingOptionsInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingStatus.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingStatus.java index 655889a33d02..0ea4e774a855 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingStatus.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingStatus.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,21 +15,25 @@ public final class MediaStreamingStatus extends ExpandableStringEnum values() { return values(MediaStreamingStatus.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingStatusDetails.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingStatusDetails.java index df324ab66c55..7c4c9a10a3cd 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingStatusDetails.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingStatusDetails.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. - package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -11,110 +11,129 @@ * Defines values for MediaStreamingStatusDetails. */ public final class MediaStreamingStatusDetails extends ExpandableStringEnum { + /** * Static value subscriptionStarted for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails SUBSCRIPTION_STARTED = fromString("subscriptionStarted"); /** * Static value streamConnectionReestablished for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails STREAM_CONNECTION_REESTABLISHED = fromString("streamConnectionReestablished"); /** * Static value streamConnectionUnsuccessful for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails STREAM_CONNECTION_UNSUCCESSFUL = fromString("streamConnectionUnsuccessful"); /** * Static value streamUrlMissing for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails STREAM_URL_MISSING = fromString("streamUrlMissing"); /** * Static value serviceShutdown for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails SERVICE_SHUTDOWN = fromString("serviceShutdown"); /** * Static value streamConnectionInterrupted for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails STREAM_CONNECTION_INTERRUPTED = fromString("streamConnectionInterrupted"); /** * Static value speechServicesConnectionError for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails SPEECH_SERVICES_CONNECTION_ERROR = fromString("speechServicesConnectionError"); /** * Static value subscriptionStopped for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails SUBSCRIPTION_STOPPED = fromString("subscriptionStopped"); /** * Static value unspecifiedError for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails UNSPECIFIED_ERROR = fromString("unspecifiedError"); /** * Static value authenticationFailure for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails AUTHENTICATION_FAILURE = fromString("authenticationFailure"); /** * Static value badRequest for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails BAD_REQUEST = fromString("badRequest"); /** * Static value tooManyRequests for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails TOO_MANY_REQUESTS = fromString("tooManyRequests"); /** * Static value forbidden for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails FORBIDDEN = fromString("forbidden"); /** * Static value serviceTimeout for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails SERVICE_TIMEOUT = fromString("serviceTimeout"); /** * Static value initialWebSocketConnectionFailed for MediaStreamingStatusDetails. */ + @Generated public static final MediaStreamingStatusDetails INITIAL_WEBSOCKET_CONNECTION_FAILED = fromString("initialWebSocketConnectionFailed"); /** * Creates a new instance of MediaStreamingStatusDetails value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ + @Generated @Deprecated public MediaStreamingStatusDetails() { } /** * Creates or finds a MediaStreamingStatusDetails from its string representation. - * + * * @param name a name to look for. * @return the corresponding MediaStreamingStatusDetails. */ + @Generated public static MediaStreamingStatusDetails fromString(String name) { return fromString(name, MediaStreamingStatusDetails.class); } /** * Gets known MediaStreamingStatusDetails values. - * + * * @return known MediaStreamingStatusDetails values. */ + @Generated public static Collection values() { return values(MediaStreamingStatusDetails.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingSubscriptionInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingSubscriptionInternal.java index ee8a0c5f07ea..c846eea32c4d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingSubscriptionInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingSubscriptionInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,21 +21,25 @@ public final class MediaStreamingSubscriptionInternal implements JsonSerializabl /* * Subscription Id. */ + @Generated private String id; /* * Media streaming subscription state. */ + @Generated private MediaStreamingSubscriptionStateInternal state; /* * Subscribed media streaming content types. */ + @Generated private List subscribedContentTypes; /** * Creates an instance of MediaStreamingSubscriptionInternal class. */ + @Generated public MediaStreamingSubscriptionInternal() { } @@ -43,6 +48,7 @@ public MediaStreamingSubscriptionInternal() { * * @return the id value. */ + @Generated public String getId() { return this.id; } @@ -53,6 +59,7 @@ public String getId() { * @param id the id value to set. * @return the MediaStreamingSubscriptionInternal object itself. */ + @Generated public MediaStreamingSubscriptionInternal setId(String id) { this.id = id; return this; @@ -63,6 +70,7 @@ public MediaStreamingSubscriptionInternal setId(String id) { * * @return the state value. */ + @Generated public MediaStreamingSubscriptionStateInternal getState() { return this.state; } @@ -73,6 +81,7 @@ public MediaStreamingSubscriptionStateInternal getState() { * @param state the state value to set. * @return the MediaStreamingSubscriptionInternal object itself. */ + @Generated public MediaStreamingSubscriptionInternal setState(MediaStreamingSubscriptionStateInternal state) { this.state = state; return this; @@ -83,6 +92,7 @@ public MediaStreamingSubscriptionInternal setState(MediaStreamingSubscriptionSta * * @return the subscribedContentTypes value. */ + @Generated public List getSubscribedContentTypes() { return this.subscribedContentTypes; } @@ -93,6 +103,7 @@ public List getSubscribedContentTypes() { * @param subscribedContentTypes the subscribedContentTypes value to set. * @return the MediaStreamingSubscriptionInternal object itself. */ + @Generated public MediaStreamingSubscriptionInternal setSubscribedContentTypes(List subscribedContentTypes) { this.subscribedContentTypes = subscribedContentTypes; @@ -102,6 +113,7 @@ public List getSubscribedContentTypes() { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -120,6 +132,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * null if it was pointing to JSON null. * @throws IOException If an error occurs while reading the MediaStreamingSubscriptionInternal. */ + @Generated public static MediaStreamingSubscriptionInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { MediaStreamingSubscriptionInternal deserializedMediaStreamingSubscriptionInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingSubscriptionStateInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingSubscriptionStateInternal.java index 9a9676433b53..e50f579cb8cf 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingSubscriptionStateInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingSubscriptionStateInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -15,16 +16,19 @@ public final class MediaStreamingSubscriptionStateInternal /** * Static value disabled for MediaStreamingSubscriptionStateInternal. */ + @Generated public static final MediaStreamingSubscriptionStateInternal DISABLED = fromString("disabled"); /** * Static value inactive for MediaStreamingSubscriptionStateInternal. */ + @Generated public static final MediaStreamingSubscriptionStateInternal INACTIVE = fromString("inactive"); /** * Static value active for MediaStreamingSubscriptionStateInternal. */ + @Generated public static final MediaStreamingSubscriptionStateInternal ACTIVE = fromString("active"); /** @@ -32,6 +36,7 @@ public final class MediaStreamingSubscriptionStateInternal * * @deprecated Use the {@link #fromString(String)} factory method. */ + @Generated @Deprecated public MediaStreamingSubscriptionStateInternal() { } @@ -42,6 +47,7 @@ public MediaStreamingSubscriptionStateInternal() { * @param name a name to look for. * @return the corresponding MediaStreamingSubscriptionStateInternal. */ + @Generated public static MediaStreamingSubscriptionStateInternal fromString(String name) { return fromString(name, MediaStreamingSubscriptionStateInternal.class); } @@ -51,6 +57,7 @@ public static MediaStreamingSubscriptionStateInternal fromString(String name) { * * @return known MediaStreamingSubscriptionStateInternal values. */ + @Generated public static Collection values() { return values(MediaStreamingSubscriptionStateInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingUpdate.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingUpdate.java index cd61a85f9a41..882eed9dda17 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingUpdate.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MediaStreamingUpdate.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,21 +20,25 @@ public final class MediaStreamingUpdate implements JsonSerializable { MediaStreamingUpdate deserializedMediaStreamingUpdate = new MediaStreamingUpdate(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MicrosoftTeamsAppIdentifierModel.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MicrosoftTeamsAppIdentifierModel.java index 5875a69b1631..7a28832bd723 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MicrosoftTeamsAppIdentifierModel.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MicrosoftTeamsAppIdentifierModel.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,16 +20,19 @@ public final class MicrosoftTeamsAppIdentifierModel implements JsonSerializable< /* * The Id of the Microsoft Teams application. */ + @Generated private String appId; /* * The cloud that the Microsoft Teams application belongs to. By default 'public' if missing. */ + @Generated private CommunicationCloudEnvironmentModel cloud; /** * Creates an instance of MicrosoftTeamsAppIdentifierModel class. */ + @Generated public MicrosoftTeamsAppIdentifierModel() { } @@ -37,6 +41,7 @@ public MicrosoftTeamsAppIdentifierModel() { * * @return the appId value. */ + @Generated public String getAppId() { return this.appId; } @@ -47,6 +52,7 @@ public String getAppId() { * @param appId the appId value to set. * @return the MicrosoftTeamsAppIdentifierModel object itself. */ + @Generated public MicrosoftTeamsAppIdentifierModel setAppId(String appId) { this.appId = appId; return this; @@ -58,6 +64,7 @@ public MicrosoftTeamsAppIdentifierModel setAppId(String appId) { * * @return the cloud value. */ + @Generated public CommunicationCloudEnvironmentModel getCloud() { return this.cloud; } @@ -69,6 +76,7 @@ public CommunicationCloudEnvironmentModel getCloud() { * @param cloud the cloud value to set. * @return the MicrosoftTeamsAppIdentifierModel object itself. */ + @Generated public MicrosoftTeamsAppIdentifierModel setCloud(CommunicationCloudEnvironmentModel cloud) { this.cloud = cloud; return this; @@ -77,6 +85,7 @@ public MicrosoftTeamsAppIdentifierModel setCloud(CommunicationCloudEnvironmentMo /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -94,6 +103,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the MicrosoftTeamsAppIdentifierModel. */ + @Generated public static MicrosoftTeamsAppIdentifierModel fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { MicrosoftTeamsAppIdentifierModel deserializedMicrosoftTeamsAppIdentifierModel diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MicrosoftTeamsUserIdentifierModel.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MicrosoftTeamsUserIdentifierModel.java index 6db8298af22c..983ccd3ebba3 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MicrosoftTeamsUserIdentifierModel.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MicrosoftTeamsUserIdentifierModel.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,21 +20,25 @@ public final class MicrosoftTeamsUserIdentifierModel implements JsonSerializable /* * The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user. */ + @Generated private String userId; /* * True if the Microsoft Teams user is anonymous. By default false if missing. */ + @Generated private Boolean isAnonymous; /* * The cloud that the Microsoft Teams user belongs to. By default 'public' if missing. */ + @Generated private CommunicationCloudEnvironmentModel cloud; /** * Creates an instance of MicrosoftTeamsUserIdentifierModel class. */ + @Generated public MicrosoftTeamsUserIdentifierModel() { } @@ -43,6 +48,7 @@ public MicrosoftTeamsUserIdentifierModel() { * * @return the userId value. */ + @Generated public String getUserId() { return this.userId; } @@ -54,6 +60,7 @@ public String getUserId() { * @param userId the userId value to set. * @return the MicrosoftTeamsUserIdentifierModel object itself. */ + @Generated public MicrosoftTeamsUserIdentifierModel setUserId(String userId) { this.userId = userId; return this; @@ -64,6 +71,7 @@ public MicrosoftTeamsUserIdentifierModel setUserId(String userId) { * * @return the isAnonymous value. */ + @Generated public Boolean isAnonymous() { return this.isAnonymous; } @@ -74,6 +82,7 @@ public Boolean isAnonymous() { * @param isAnonymous the isAnonymous value to set. * @return the MicrosoftTeamsUserIdentifierModel object itself. */ + @Generated public MicrosoftTeamsUserIdentifierModel setIsAnonymous(Boolean isAnonymous) { this.isAnonymous = isAnonymous; return this; @@ -84,6 +93,7 @@ public MicrosoftTeamsUserIdentifierModel setIsAnonymous(Boolean isAnonymous) { * * @return the cloud value. */ + @Generated public CommunicationCloudEnvironmentModel getCloud() { return this.cloud; } @@ -94,6 +104,7 @@ public CommunicationCloudEnvironmentModel getCloud() { * @param cloud the cloud value to set. * @return the MicrosoftTeamsUserIdentifierModel object itself. */ + @Generated public MicrosoftTeamsUserIdentifierModel setCloud(CommunicationCloudEnvironmentModel cloud) { this.cloud = cloud; return this; @@ -102,6 +113,7 @@ public MicrosoftTeamsUserIdentifierModel setCloud(CommunicationCloudEnvironmentM /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -120,6 +132,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the MicrosoftTeamsUserIdentifierModel. */ + @Generated public static MicrosoftTeamsUserIdentifierModel fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { MicrosoftTeamsUserIdentifierModel deserializedMicrosoftTeamsUserIdentifierModel diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MuteParticipantsRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MuteParticipantsRequestInternal.java index a8cdc5300701..85816e7fdbc0 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MuteParticipantsRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MuteParticipantsRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -21,16 +22,19 @@ public final class MuteParticipantsRequestInternal implements JsonSerializable targetParticipants; /* * Used by customers when calling mid-call actions to correlate the request to the response event. */ + @Generated private String operationContext; /** * Creates an instance of MuteParticipantsRequestInternal class. */ + @Generated public MuteParticipantsRequestInternal() { } @@ -40,6 +44,7 @@ public MuteParticipantsRequestInternal() { * * @return the targetParticipants value. */ + @Generated public List getTargetParticipants() { return this.targetParticipants; } @@ -51,6 +56,7 @@ public List getTargetParticipants() { * @param targetParticipants the targetParticipants value to set. * @return the MuteParticipantsRequestInternal object itself. */ + @Generated public MuteParticipantsRequestInternal setTargetParticipants(List targetParticipants) { this.targetParticipants = targetParticipants; @@ -63,6 +69,7 @@ public List getTargetParticipants() { * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -74,6 +81,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the MuteParticipantsRequestInternal object itself. */ + @Generated public MuteParticipantsRequestInternal setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -82,6 +90,7 @@ public MuteParticipantsRequestInternal setOperationContext(String operationConte /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -100,6 +109,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the MuteParticipantsRequestInternal. */ + @Generated public static MuteParticipantsRequestInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { MuteParticipantsRequestInternal deserializedMuteParticipantsRequestInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MuteParticipantsResultInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MuteParticipantsResultInternal.java index 9d7de02c7e1f..491db0e59df8 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MuteParticipantsResultInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/MuteParticipantsResultInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,11 +20,13 @@ public final class MuteParticipantsResultInternal implements JsonSerializable { MuteParticipantsResultInternal deserializedMuteParticipantsResultInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PhoneNumberIdentifierModel.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PhoneNumberIdentifierModel.java index 5b41cf288520..c2539c22fadd 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PhoneNumberIdentifierModel.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PhoneNumberIdentifierModel.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,11 +20,13 @@ public final class PhoneNumberIdentifierModel implements JsonSerializable { PhoneNumberIdentifierModel deserializedPhoneNumberIdentifierModel = new PhoneNumberIdentifierModel(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayOptionsInternal.java index 0fba42db686e..6ac127b93f75 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayOptionsInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,11 +20,13 @@ public final class PlayOptionsInternal implements JsonSerializable { PlayOptionsInternal deserializedPlayOptionsInternal = new PlayOptionsInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayRequest.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayRequest.java index a1427bc60b82..cc5ca85475d9 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayRequest.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlayRequest.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,38 +21,45 @@ public final class PlayRequest implements JsonSerializable { /* * The source of the audio to be played. */ + @Generated private List playSources; /* * The list of call participants play provided audio to. * Plays to everyone in the call when not provided. */ + @Generated private List playTo; /* * If set play can barge into other existing queued-up/currently-processing requests. */ + @Generated private Boolean interruptCallMediaOperation; /* * Defines options for playing the audio. */ + @Generated private PlayOptionsInternal playOptions; /* * The value to identify context of the operation. */ + @Generated private String operationContext; /* * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. */ + @Generated private String operationCallbackUri; /** * Creates an instance of PlayRequest class. */ + @Generated public PlayRequest() { } @@ -60,6 +68,7 @@ public PlayRequest() { * * @return the playSources value. */ + @Generated public List getPlaySources() { return this.playSources; } @@ -70,6 +79,7 @@ public List getPlaySources() { * @param playSources the playSources value to set. * @return the PlayRequest object itself. */ + @Generated public PlayRequest setPlaySources(List playSources) { this.playSources = playSources; return this; @@ -81,6 +91,7 @@ public PlayRequest setPlaySources(List playSources) { * * @return the playTo value. */ + @Generated public List getPlayTo() { return this.playTo; } @@ -92,6 +103,7 @@ public List getPlayTo() { * @param playTo the playTo value to set. * @return the PlayRequest object itself. */ + @Generated public PlayRequest setPlayTo(List playTo) { this.playTo = playTo; return this; @@ -103,6 +115,7 @@ public PlayRequest setPlayTo(List playTo) { * * @return the interruptCallMediaOperation value. */ + @Generated public Boolean isInterruptCallMediaOperation() { return this.interruptCallMediaOperation; } @@ -114,6 +127,7 @@ public Boolean isInterruptCallMediaOperation() { * @param interruptCallMediaOperation the interruptCallMediaOperation value to set. * @return the PlayRequest object itself. */ + @Generated public PlayRequest setInterruptCallMediaOperation(Boolean interruptCallMediaOperation) { this.interruptCallMediaOperation = interruptCallMediaOperation; return this; @@ -124,6 +138,7 @@ public PlayRequest setInterruptCallMediaOperation(Boolean interruptCallMediaOper * * @return the playOptions value. */ + @Generated public PlayOptionsInternal getPlayOptions() { return this.playOptions; } @@ -134,6 +149,7 @@ public PlayOptionsInternal getPlayOptions() { * @param playOptions the playOptions value to set. * @return the PlayRequest object itself. */ + @Generated public PlayRequest setPlayOptions(PlayOptionsInternal playOptions) { this.playOptions = playOptions; return this; @@ -144,6 +160,7 @@ public PlayRequest setPlayOptions(PlayOptionsInternal playOptions) { * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -154,6 +171,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the PlayRequest object itself. */ + @Generated public PlayRequest setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -166,6 +184,7 @@ public PlayRequest setOperationContext(String operationContext) { * * @return the operationCallbackUri value. */ + @Generated public String getOperationCallbackUri() { return this.operationCallbackUri; } @@ -178,6 +197,7 @@ public String getOperationCallbackUri() { * @param operationCallbackUri the operationCallbackUri value to set. * @return the PlayRequest object itself. */ + @Generated public PlayRequest setOperationCallbackUri(String operationCallbackUri) { this.operationCallbackUri = operationCallbackUri; return this; @@ -186,6 +206,7 @@ public PlayRequest setOperationCallbackUri(String operationCallbackUri) { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -207,6 +228,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the PlayRequest. */ + @Generated public static PlayRequest fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { PlayRequest deserializedPlayRequest = new PlayRequest(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlaySourceInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlaySourceInternal.java index 8be2076406fa..6c571282b914 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlaySourceInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlaySourceInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,31 +20,37 @@ public final class PlaySourceInternal implements JsonSerializable { PlaySourceInternal deserializedPlaySourceInternal = new PlaySourceInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlaySourceTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlaySourceTypeInternal.java index 040a2d5951e6..cb928a7825f7 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlaySourceTypeInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/PlaySourceTypeInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,16 +15,19 @@ public final class PlaySourceTypeInternal extends ExpandableStringEnum values() { return values(PlaySourceTypeInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognitionChoiceInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognitionChoiceInternal.java index 9832f9743df7..4ebbdc2c85ee 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognitionChoiceInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognitionChoiceInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,21 +21,25 @@ public final class RecognitionChoiceInternal implements JsonSerializable phrases; /* * The tone property. */ + @Generated private DtmfToneInternal tone; /** * Creates an instance of RecognitionChoiceInternal class. */ + @Generated public RecognitionChoiceInternal() { } @@ -43,6 +48,7 @@ public RecognitionChoiceInternal() { * * @return the label value. */ + @Generated public String getLabel() { return this.label; } @@ -53,6 +59,7 @@ public String getLabel() { * @param label the label value to set. * @return the RecognitionChoiceInternal object itself. */ + @Generated public RecognitionChoiceInternal setLabel(String label) { this.label = label; return this; @@ -63,6 +70,7 @@ public RecognitionChoiceInternal setLabel(String label) { * * @return the phrases value. */ + @Generated public List getPhrases() { return this.phrases; } @@ -73,6 +81,7 @@ public List getPhrases() { * @param phrases the phrases value to set. * @return the RecognitionChoiceInternal object itself. */ + @Generated public RecognitionChoiceInternal setPhrases(List phrases) { this.phrases = phrases; return this; @@ -83,6 +92,7 @@ public RecognitionChoiceInternal setPhrases(List phrases) { * * @return the tone value. */ + @Generated public DtmfToneInternal getTone() { return this.tone; } @@ -93,6 +103,7 @@ public DtmfToneInternal getTone() { * @param tone the tone value to set. * @return the RecognitionChoiceInternal object itself. */ + @Generated public RecognitionChoiceInternal setTone(DtmfToneInternal tone) { this.tone = tone; return this; @@ -101,6 +112,7 @@ public RecognitionChoiceInternal setTone(DtmfToneInternal tone) { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -119,6 +131,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RecognitionChoiceInternal. */ + @Generated public static RecognitionChoiceInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { RecognitionChoiceInternal deserializedRecognitionChoiceInternal = new RecognitionChoiceInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognitionTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognitionTypeInternal.java index ba82738db82d..464c5a8c79c4 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognitionTypeInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognitionTypeInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -15,16 +16,19 @@ public final class RecognitionTypeInternal extends ExpandableStringEnum values() { return values(RecognitionTypeInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognizeInputTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognizeInputTypeInternal.java index 43d5b9b5493c..754585150edf 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognizeInputTypeInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognizeInputTypeInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,21 +15,25 @@ public final class RecognizeInputTypeInternal extends ExpandableStringEnum values() { return values(RecognizeInputTypeInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognizeOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognizeOptionsInternal.java index 85abe56d263f..ac1ec213b9c0 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognizeOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognizeOptionsInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,46 +21,55 @@ public final class RecognizeOptionsInternal implements JsonSerializable choices; /* * Defines continuous speech recognition option. */ + @Generated private SpeechOptionsInternal speechOptions; /** * Creates an instance of RecognizeOptionsInternal class. */ + @Generated public RecognizeOptionsInternal() { } @@ -68,6 +78,7 @@ public RecognizeOptionsInternal() { * * @return the interruptPrompt value. */ + @Generated public Boolean isInterruptPrompt() { return this.interruptPrompt; } @@ -78,6 +89,7 @@ public Boolean isInterruptPrompt() { * @param interruptPrompt the interruptPrompt value to set. * @return the RecognizeOptionsInternal object itself. */ + @Generated public RecognizeOptionsInternal setInterruptPrompt(Boolean interruptPrompt) { this.interruptPrompt = interruptPrompt; return this; @@ -88,6 +100,7 @@ public RecognizeOptionsInternal setInterruptPrompt(Boolean interruptPrompt) { * * @return the initialSilenceTimeoutInSeconds value. */ + @Generated public Integer getInitialSilenceTimeoutInSeconds() { return this.initialSilenceTimeoutInSeconds; } @@ -98,6 +111,7 @@ public Integer getInitialSilenceTimeoutInSeconds() { * @param initialSilenceTimeoutInSeconds the initialSilenceTimeoutInSeconds value to set. * @return the RecognizeOptionsInternal object itself. */ + @Generated public RecognizeOptionsInternal setInitialSilenceTimeoutInSeconds(Integer initialSilenceTimeoutInSeconds) { this.initialSilenceTimeoutInSeconds = initialSilenceTimeoutInSeconds; return this; @@ -108,6 +122,7 @@ public RecognizeOptionsInternal setInitialSilenceTimeoutInSeconds(Integer initia * * @return the targetParticipant value. */ + @Generated public CommunicationIdentifierModel getTargetParticipant() { return this.targetParticipant; } @@ -118,6 +133,7 @@ public CommunicationIdentifierModel getTargetParticipant() { * @param targetParticipant the targetParticipant value to set. * @return the RecognizeOptionsInternal object itself. */ + @Generated public RecognizeOptionsInternal setTargetParticipant(CommunicationIdentifierModel targetParticipant) { this.targetParticipant = targetParticipant; return this; @@ -128,6 +144,7 @@ public RecognizeOptionsInternal setTargetParticipant(CommunicationIdentifierMode * * @return the speechLanguage value. */ + @Generated public String getSpeechLanguage() { return this.speechLanguage; } @@ -138,6 +155,7 @@ public String getSpeechLanguage() { * @param speechLanguage the speechLanguage value to set. * @return the RecognizeOptionsInternal object itself. */ + @Generated public RecognizeOptionsInternal setSpeechLanguage(String speechLanguage) { this.speechLanguage = speechLanguage; return this; @@ -148,6 +166,7 @@ public RecognizeOptionsInternal setSpeechLanguage(String speechLanguage) { * * @return the speechRecognitionModelEndpointId value. */ + @Generated public String getSpeechRecognitionModelEndpointId() { return this.speechRecognitionModelEndpointId; } @@ -158,6 +177,7 @@ public String getSpeechRecognitionModelEndpointId() { * @param speechRecognitionModelEndpointId the speechRecognitionModelEndpointId value to set. * @return the RecognizeOptionsInternal object itself. */ + @Generated public RecognizeOptionsInternal setSpeechRecognitionModelEndpointId(String speechRecognitionModelEndpointId) { this.speechRecognitionModelEndpointId = speechRecognitionModelEndpointId; return this; @@ -168,6 +188,7 @@ public RecognizeOptionsInternal setSpeechRecognitionModelEndpointId(String speec * * @return the dtmfOptions value. */ + @Generated public DtmfOptionsInternal getDtmfOptions() { return this.dtmfOptions; } @@ -178,6 +199,7 @@ public DtmfOptionsInternal getDtmfOptions() { * @param dtmfOptions the dtmfOptions value to set. * @return the RecognizeOptionsInternal object itself. */ + @Generated public RecognizeOptionsInternal setDtmfOptions(DtmfOptionsInternal dtmfOptions) { this.dtmfOptions = dtmfOptions; return this; @@ -188,6 +210,7 @@ public RecognizeOptionsInternal setDtmfOptions(DtmfOptionsInternal dtmfOptions) * * @return the choices value. */ + @Generated public List getChoices() { return this.choices; } @@ -198,6 +221,7 @@ public List getChoices() { * @param choices the choices value to set. * @return the RecognizeOptionsInternal object itself. */ + @Generated public RecognizeOptionsInternal setChoices(List choices) { this.choices = choices; return this; @@ -208,6 +232,7 @@ public RecognizeOptionsInternal setChoices(List choic * * @return the speechOptions value. */ + @Generated public SpeechOptionsInternal getSpeechOptions() { return this.speechOptions; } @@ -218,6 +243,7 @@ public SpeechOptionsInternal getSpeechOptions() { * @param speechOptions the speechOptions value to set. * @return the RecognizeOptionsInternal object itself. */ + @Generated public RecognizeOptionsInternal setSpeechOptions(SpeechOptionsInternal speechOptions) { this.speechOptions = speechOptions; return this; @@ -226,6 +252,7 @@ public RecognizeOptionsInternal setSpeechOptions(SpeechOptionsInternal speechOpt /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -249,6 +276,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RecognizeOptionsInternal. */ + @Generated public static RecognizeOptionsInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { RecognizeOptionsInternal deserializedRecognizeOptionsInternal = new RecognizeOptionsInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognizeRequest.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognizeRequest.java index b312d5a92d8f..21bf48c36c2d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognizeRequest.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecognizeRequest.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,42 +21,50 @@ public final class RecognizeRequest implements JsonSerializable playPrompts; /* * If set recognize can barge into other existing queued-up/currently-processing requests. */ + @Generated private Boolean interruptCallMediaOperation; /* * Defines options for recognition. */ + @Generated private RecognizeOptionsInternal recognizeOptions; /* * The value to identify context of the operation. */ + @Generated private String operationContext; /* * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. */ + @Generated private String operationCallbackUri; /** * Creates an instance of RecognizeRequest class. */ + @Generated public RecognizeRequest() { } @@ -64,6 +73,7 @@ public RecognizeRequest() { * * @return the recognizeInputType value. */ + @Generated public RecognizeInputTypeInternal getRecognizeInputType() { return this.recognizeInputType; } @@ -74,6 +84,7 @@ public RecognizeInputTypeInternal getRecognizeInputType() { * @param recognizeInputType the recognizeInputType value to set. * @return the RecognizeRequest object itself. */ + @Generated public RecognizeRequest setRecognizeInputType(RecognizeInputTypeInternal recognizeInputType) { this.recognizeInputType = recognizeInputType; return this; @@ -84,6 +95,7 @@ public RecognizeRequest setRecognizeInputType(RecognizeInputTypeInternal recogni * * @return the playPrompt value. */ + @Generated public PlaySourceInternal getPlayPrompt() { return this.playPrompt; } @@ -94,6 +106,7 @@ public PlaySourceInternal getPlayPrompt() { * @param playPrompt the playPrompt value to set. * @return the RecognizeRequest object itself. */ + @Generated public RecognizeRequest setPlayPrompt(PlaySourceInternal playPrompt) { this.playPrompt = playPrompt; return this; @@ -104,6 +117,7 @@ public RecognizeRequest setPlayPrompt(PlaySourceInternal playPrompt) { * * @return the playPrompts value. */ + @Generated public List getPlayPrompts() { return this.playPrompts; } @@ -114,6 +128,7 @@ public List getPlayPrompts() { * @param playPrompts the playPrompts value to set. * @return the RecognizeRequest object itself. */ + @Generated public RecognizeRequest setPlayPrompts(List playPrompts) { this.playPrompts = playPrompts; return this; @@ -125,6 +140,7 @@ public RecognizeRequest setPlayPrompts(List playPrompts) { * * @return the interruptCallMediaOperation value. */ + @Generated public Boolean isInterruptCallMediaOperation() { return this.interruptCallMediaOperation; } @@ -136,6 +152,7 @@ public Boolean isInterruptCallMediaOperation() { * @param interruptCallMediaOperation the interruptCallMediaOperation value to set. * @return the RecognizeRequest object itself. */ + @Generated public RecognizeRequest setInterruptCallMediaOperation(Boolean interruptCallMediaOperation) { this.interruptCallMediaOperation = interruptCallMediaOperation; return this; @@ -146,6 +163,7 @@ public RecognizeRequest setInterruptCallMediaOperation(Boolean interruptCallMedi * * @return the recognizeOptions value. */ + @Generated public RecognizeOptionsInternal getRecognizeOptions() { return this.recognizeOptions; } @@ -156,6 +174,7 @@ public RecognizeOptionsInternal getRecognizeOptions() { * @param recognizeOptions the recognizeOptions value to set. * @return the RecognizeRequest object itself. */ + @Generated public RecognizeRequest setRecognizeOptions(RecognizeOptionsInternal recognizeOptions) { this.recognizeOptions = recognizeOptions; return this; @@ -166,6 +185,7 @@ public RecognizeRequest setRecognizeOptions(RecognizeOptionsInternal recognizeOp * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -176,6 +196,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the RecognizeRequest object itself. */ + @Generated public RecognizeRequest setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -188,6 +209,7 @@ public RecognizeRequest setOperationContext(String operationContext) { * * @return the operationCallbackUri value. */ + @Generated public String getOperationCallbackUri() { return this.operationCallbackUri; } @@ -200,6 +222,7 @@ public String getOperationCallbackUri() { * @param operationCallbackUri the operationCallbackUri value to set. * @return the RecognizeRequest object itself. */ + @Generated public RecognizeRequest setOperationCallbackUri(String operationCallbackUri) { this.operationCallbackUri = operationCallbackUri; return this; @@ -208,6 +231,7 @@ public RecognizeRequest setOperationCallbackUri(String operationCallbackUri) { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -231,6 +255,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RecognizeRequest. */ + @Generated public static RecognizeRequest fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { RecognizeRequest deserializedRecognizeRequest = new RecognizeRequest(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingChannelInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingChannelInternal.java index 57d8da42a024..3796a7690db7 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingChannelInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingChannelInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,11 +15,13 @@ public final class RecordingChannelInternal extends ExpandableStringEnum values() { return values(RecordingChannelInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingContentInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingContentInternal.java index d611b99a0bbe..aaf478b8f1e8 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingContentInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingContentInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,11 +15,13 @@ public final class RecordingContentInternal extends ExpandableStringEnum values() { return values(RecordingContentInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingFormatInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingFormatInternal.java index 80232d310c87..74dc9346eff8 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingFormatInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingFormatInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,16 +15,19 @@ public final class RecordingFormatInternal extends ExpandableStringEnum values() { return values(RecordingFormatInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingKindInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingKindInternal.java index 8cf967a9ff72..63aea3759a59 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingKindInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingKindInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,16 +15,19 @@ public final class RecordingKindInternal extends ExpandableStringEnum values() { return values(RecordingKindInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStateInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStateInternal.java index 4c76ba4f9cb1..3057f59c3c8f 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStateInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStateInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,11 +15,13 @@ public final class RecordingStateInternal extends ExpandableStringEnum values() { return values(RecordingStateInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStateResponseInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStateResponseInternal.java index 8cfa9c0e1fde..705d3250304e 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStateResponseInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStateResponseInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,21 +20,25 @@ public final class RecordingStateResponseInternal implements JsonSerializable { RecordingStateResponseInternal deserializedRecordingStateResponseInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageInternal.java index 3fe38c83bb66..5ae5bc7bb925 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,16 +20,19 @@ public final class RecordingStorageInternal implements JsonSerializable { RecordingStorageInternal deserializedRecordingStorageInternal = new RecordingStorageInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageTypeInternal.java index a35606e85920..a2fb082d477b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageTypeInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RecordingStorageTypeInternal.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. - package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -11,40 +11,46 @@ * Defines the kind of external storage. */ public final class RecordingStorageTypeInternal extends ExpandableStringEnum { + /** * Storage managed by Azure Communication Services. */ + @Generated public static final RecordingStorageTypeInternal ACS = fromString("AzureCommunicationServices"); /** * Storage managed by provided Azure blob. */ + @Generated public static final RecordingStorageTypeInternal AZURE_BLOB_STORAGE = fromString("AzureBlobStorage"); /** * Creates a new instance of RecordingStorageTypeInternal value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ + @Generated @Deprecated public RecordingStorageTypeInternal() { } /** * Creates or finds a RecordingStorageTypeInternal from its string representation. - * + * * @param name a name to look for. * @return the corresponding RecordingStorageTypeInternal. */ + @Generated public static RecordingStorageTypeInternal fromString(String name) { return fromString(name, RecordingStorageTypeInternal.class); } /** * Gets known RecordingStorageTypeInternal values. - * + * * @return known RecordingStorageTypeInternal values. */ + @Generated public static Collection values() { return values(RecordingStorageTypeInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RedirectCallRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RedirectCallRequestInternal.java index 8fe85bf39e87..beb6d115c980 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RedirectCallRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RedirectCallRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,16 +20,19 @@ public final class RedirectCallRequestInternal implements JsonSerializable { RedirectCallRequestInternal deserializedRedirectCallRequestInternal = new RedirectCallRequestInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RejectCallRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RejectCallRequestInternal.java index a788dcf25f6d..e851dbd35bc5 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RejectCallRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RejectCallRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,16 +20,19 @@ public final class RejectCallRequestInternal implements JsonSerializable { RejectCallRequestInternal deserializedRejectCallRequestInternal = new RejectCallRequestInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantFailed.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantFailed.java index a02a7f976dec..c984056b5171 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantFailed.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantFailed.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,36 +20,43 @@ public final class RemoveParticipantFailed implements JsonSerializable { RemoveParticipantFailed deserializedRemoveParticipantFailed = new RemoveParticipantFailed(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantRequestInternal.java index 53bb0cab7c9a..4f7f1d137ba8 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,22 +20,26 @@ public final class RemoveParticipantRequestInternal implements JsonSerializable< /* * The participants to be removed from the call. */ + @Generated private CommunicationIdentifierModel participantToRemove; /* * Used by customers when calling mid-call actions to correlate the request to the response event. */ + @Generated private String operationContext; /* * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. */ + @Generated private String operationCallbackUri; /** * Creates an instance of RemoveParticipantRequestInternal class. */ + @Generated public RemoveParticipantRequestInternal() { } @@ -43,6 +48,7 @@ public RemoveParticipantRequestInternal() { * * @return the participantToRemove value. */ + @Generated public CommunicationIdentifierModel getParticipantToRemove() { return this.participantToRemove; } @@ -53,6 +59,7 @@ public CommunicationIdentifierModel getParticipantToRemove() { * @param participantToRemove the participantToRemove value to set. * @return the RemoveParticipantRequestInternal object itself. */ + @Generated public RemoveParticipantRequestInternal setParticipantToRemove(CommunicationIdentifierModel participantToRemove) { this.participantToRemove = participantToRemove; return this; @@ -64,6 +71,7 @@ public RemoveParticipantRequestInternal setParticipantToRemove(CommunicationIden * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -75,6 +83,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the RemoveParticipantRequestInternal object itself. */ + @Generated public RemoveParticipantRequestInternal setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -87,6 +96,7 @@ public RemoveParticipantRequestInternal setOperationContext(String operationCont * * @return the operationCallbackUri value. */ + @Generated public String getOperationCallbackUri() { return this.operationCallbackUri; } @@ -99,6 +109,7 @@ public String getOperationCallbackUri() { * @param operationCallbackUri the operationCallbackUri value to set. * @return the RemoveParticipantRequestInternal object itself. */ + @Generated public RemoveParticipantRequestInternal setOperationCallbackUri(String operationCallbackUri) { this.operationCallbackUri = operationCallbackUri; return this; @@ -107,6 +118,7 @@ public RemoveParticipantRequestInternal setOperationCallbackUri(String operation /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -125,6 +137,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RemoveParticipantRequestInternal. */ + @Generated public static RemoveParticipantRequestInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { RemoveParticipantRequestInternal deserializedRemoveParticipantRequestInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantResponseInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantResponseInternal.java index 0b41914f936d..28d7b103e4e9 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantResponseInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantResponseInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,11 +20,13 @@ public final class RemoveParticipantResponseInternal implements JsonSerializable /* * The operation context provided by client. */ + @Generated private String operationContext; /** * Creates an instance of RemoveParticipantResponseInternal class. */ + @Generated public RemoveParticipantResponseInternal() { } @@ -32,6 +35,7 @@ public RemoveParticipantResponseInternal() { * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -42,6 +46,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the RemoveParticipantResponseInternal object itself. */ + @Generated public RemoveParticipantResponseInternal setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -50,6 +55,7 @@ public RemoveParticipantResponseInternal setOperationContext(String operationCon /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -65,6 +71,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * null if it was pointing to JSON null. * @throws IOException If an error occurs while reading the RemoveParticipantResponseInternal. */ + @Generated public static RemoveParticipantResponseInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { RemoveParticipantResponseInternal deserializedRemoveParticipantResponseInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantSucceeded.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantSucceeded.java index a314cc426092..6e74996ed396 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantSucceeded.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/RemoveParticipantSucceeded.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,36 +20,43 @@ public final class RemoveParticipantSucceeded implements JsonSerializable { RemoveParticipantSucceeded deserializedRemoveParticipantSucceeded = new RemoveParticipantSucceeded(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ResultInformation.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ResultInformation.java index d01c7382d657..d0bac6981495 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ResultInformation.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/ResultInformation.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,23 +18,29 @@ @Fluent public final class ResultInformation implements JsonSerializable { /* - * Code of the current result. This can be helpful to Call Automation team to troubleshoot the issue if this result was unexpected. + * Code of the current result. This can be helpful to Call Automation team to troubleshoot the issue if this result + * was unexpected. */ + @Generated private Integer code; /* - * Subcode of the current result. This can be helpful to Call Automation team to troubleshoot the issue if this result was unexpected. + * Subcode of the current result. This can be helpful to Call Automation team to troubleshoot the issue if this + * result was unexpected. */ + @Generated private Integer subCode; /* * Detail message that describes the current result. */ + @Generated private String message; /** * Creates an instance of ResultInformation class. */ + @Generated public ResultInformation() { } @@ -43,6 +50,7 @@ public ResultInformation() { * * @return the code value. */ + @Generated public Integer getCode() { return this.code; } @@ -54,6 +62,7 @@ public Integer getCode() { * @param code the code value to set. * @return the ResultInformation object itself. */ + @Generated public ResultInformation setCode(Integer code) { this.code = code; return this; @@ -65,6 +74,7 @@ public ResultInformation setCode(Integer code) { * * @return the subCode value. */ + @Generated public Integer getSubCode() { return this.subCode; } @@ -76,6 +86,7 @@ public Integer getSubCode() { * @param subCode the subCode value to set. * @return the ResultInformation object itself. */ + @Generated public ResultInformation setSubCode(Integer subCode) { this.subCode = subCode; return this; @@ -86,6 +97,7 @@ public ResultInformation setSubCode(Integer subCode) { * * @return the message value. */ + @Generated public String getMessage() { return this.message; } @@ -96,6 +108,7 @@ public String getMessage() { * @param message the message value to set. * @return the ResultInformation object itself. */ + @Generated public ResultInformation setMessage(String message) { this.message = message; return this; @@ -104,6 +117,7 @@ public ResultInformation setMessage(String message) { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -121,6 +135,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * pointing to JSON null. * @throws IOException If an error occurs while reading the ResultInformation. */ + @Generated public static ResultInformation fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { ResultInformation deserializedResultInformation = new ResultInformation(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SendDtmfTonesRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SendDtmfTonesRequestInternal.java index 85d1dbdc40b2..a11a9176eadd 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SendDtmfTonesRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SendDtmfTonesRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,27 +21,32 @@ public final class SendDtmfTonesRequestInternal implements JsonSerializable tones; /* * Target participant of send Dtmf tones. */ + @Generated private CommunicationIdentifierModel targetParticipant; /* * The value to identify context of the operation. */ + @Generated private String operationContext; /* * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. */ + @Generated private String operationCallbackUri; /** * Creates an instance of SendDtmfTonesRequestInternal class. */ + @Generated public SendDtmfTonesRequestInternal() { } @@ -49,6 +55,7 @@ public SendDtmfTonesRequestInternal() { * * @return the tones value. */ + @Generated public List getTones() { return this.tones; } @@ -59,6 +66,7 @@ public List getTones() { * @param tones the tones value to set. * @return the SendDtmfTonesRequestInternal object itself. */ + @Generated public SendDtmfTonesRequestInternal setTones(List tones) { this.tones = tones; return this; @@ -69,6 +77,7 @@ public SendDtmfTonesRequestInternal setTones(List tones) { * * @return the targetParticipant value. */ + @Generated public CommunicationIdentifierModel getTargetParticipant() { return this.targetParticipant; } @@ -79,6 +88,7 @@ public CommunicationIdentifierModel getTargetParticipant() { * @param targetParticipant the targetParticipant value to set. * @return the SendDtmfTonesRequestInternal object itself. */ + @Generated public SendDtmfTonesRequestInternal setTargetParticipant(CommunicationIdentifierModel targetParticipant) { this.targetParticipant = targetParticipant; return this; @@ -89,6 +99,7 @@ public SendDtmfTonesRequestInternal setTargetParticipant(CommunicationIdentifier * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -99,6 +110,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the SendDtmfTonesRequestInternal object itself. */ + @Generated public SendDtmfTonesRequestInternal setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -111,6 +123,7 @@ public SendDtmfTonesRequestInternal setOperationContext(String operationContext) * * @return the operationCallbackUri value. */ + @Generated public String getOperationCallbackUri() { return this.operationCallbackUri; } @@ -123,6 +136,7 @@ public String getOperationCallbackUri() { * @param operationCallbackUri the operationCallbackUri value to set. * @return the SendDtmfTonesRequestInternal object itself. */ + @Generated public SendDtmfTonesRequestInternal setOperationCallbackUri(String operationCallbackUri) { this.operationCallbackUri = operationCallbackUri; return this; @@ -131,6 +145,7 @@ public SendDtmfTonesRequestInternal setOperationCallbackUri(String operationCall /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -151,6 +166,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SendDtmfTonesRequestInternal. */ + @Generated public static SendDtmfTonesRequestInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { SendDtmfTonesRequestInternal deserializedSendDtmfTonesRequestInternal = new SendDtmfTonesRequestInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SendDtmfTonesResultInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SendDtmfTonesResultInternal.java index 98e37e59c63a..61f7237839c1 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SendDtmfTonesResultInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SendDtmfTonesResultInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,11 +20,13 @@ public final class SendDtmfTonesResultInternal implements JsonSerializable { SendDtmfTonesResultInternal deserializedSendDtmfTonesResultInternal = new SendDtmfTonesResultInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SpeechOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SpeechOptionsInternal.java index 158a2ba69380..963821c62e34 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SpeechOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SpeechOptionsInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,11 +20,13 @@ public final class SpeechOptionsInternal implements JsonSerializable { SpeechOptionsInternal deserializedSpeechOptionsInternal = new SpeechOptionsInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SpeechResultInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SpeechResultInternal.java index 4182f6f3a7b2..cba1163d712d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SpeechResultInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SpeechResultInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,16 +20,19 @@ public final class SpeechResultInternal implements JsonSerializable { SpeechResultInternal deserializedSpeechResultInternal = new SpeechResultInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SsmlSourceInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SsmlSourceInternal.java index e7f747e1d2d0..130a436b2bd1 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SsmlSourceInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/SsmlSourceInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,16 +20,19 @@ public final class SsmlSourceInternal implements JsonSerializable { SsmlSourceInternal deserializedSsmlSourceInternal = new SsmlSourceInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartCallRecordingRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartCallRecordingRequestInternal.java index 29d48e89feb9..3c2fca1789ec 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartCallRecordingRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartCallRecordingRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,57 +21,68 @@ public final class StartCallRecordingRequestInternal implements JsonSerializable /* * The call locator. */ + @Generated private CallLocatorInternal callLocator; /* * The uri to send notifications to. */ + @Generated private String recordingStateCallbackUri; /* * The content type of call recording. */ + @Generated private RecordingContentInternal recordingContentType; /* * The channel type of call recording. */ + @Generated private RecordingChannelInternal recordingChannelType; /* * The format type of call recording. */ + @Generated private RecordingFormatInternal recordingFormatType; /* * The sequential order in which audio channels are assigned to participants in the unmixed recording. * When 'recordingChannelType' is set to 'unmixed' and `audioChannelParticipantOrdering is not specified, * the audio channel to participant mapping will be automatically assigned based on the order in which participant - * first audio was detected. Channel to participant mapping details can be found in the metadata of the recording. + * first audio was detected. Channel to participant mapping details can be found in the metadata of the recording. */ + @Generated private List audioChannelParticipantOrdering; /* * The channel affinity of call recording - * When 'recordingChannelType' is set to 'unmixed', if channelAffinity is not specified, 'channel' will be automatically assigned. + * When 'recordingChannelType' is set to 'unmixed', if channelAffinity is not specified, 'channel' will be + * automatically assigned. * Channel-Participant mapping details can be found in the metadata of the recording. * /// */ + @Generated private List channelAffinity; /* * When set to true will start recording in Pause mode, which can be resumed. */ + @Generated private Boolean pauseOnStart; /* * Optional property to specify location where recording will be stored */ + @Generated private RecordingStorageInternal externalStorage; /** * Creates an instance of StartCallRecordingRequestInternal class. */ + @Generated public StartCallRecordingRequestInternal() { } @@ -79,6 +91,7 @@ public StartCallRecordingRequestInternal() { * * @return the callLocator value. */ + @Generated public CallLocatorInternal getCallLocator() { return this.callLocator; } @@ -89,6 +102,7 @@ public CallLocatorInternal getCallLocator() { * @param callLocator the callLocator value to set. * @return the StartCallRecordingRequestInternal object itself. */ + @Generated public StartCallRecordingRequestInternal setCallLocator(CallLocatorInternal callLocator) { this.callLocator = callLocator; return this; @@ -99,6 +113,7 @@ public StartCallRecordingRequestInternal setCallLocator(CallLocatorInternal call * * @return the recordingStateCallbackUri value. */ + @Generated public String getRecordingStateCallbackUri() { return this.recordingStateCallbackUri; } @@ -109,6 +124,7 @@ public String getRecordingStateCallbackUri() { * @param recordingStateCallbackUri the recordingStateCallbackUri value to set. * @return the StartCallRecordingRequestInternal object itself. */ + @Generated public StartCallRecordingRequestInternal setRecordingStateCallbackUri(String recordingStateCallbackUri) { this.recordingStateCallbackUri = recordingStateCallbackUri; return this; @@ -119,6 +135,7 @@ public StartCallRecordingRequestInternal setRecordingStateCallbackUri(String rec * * @return the recordingContentType value. */ + @Generated public RecordingContentInternal getRecordingContentType() { return this.recordingContentType; } @@ -129,6 +146,7 @@ public RecordingContentInternal getRecordingContentType() { * @param recordingContentType the recordingContentType value to set. * @return the StartCallRecordingRequestInternal object itself. */ + @Generated public StartCallRecordingRequestInternal setRecordingContentType(RecordingContentInternal recordingContentType) { this.recordingContentType = recordingContentType; return this; @@ -139,6 +157,7 @@ public StartCallRecordingRequestInternal setRecordingContentType(RecordingConten * * @return the recordingChannelType value. */ + @Generated public RecordingChannelInternal getRecordingChannelType() { return this.recordingChannelType; } @@ -149,6 +168,7 @@ public RecordingChannelInternal getRecordingChannelType() { * @param recordingChannelType the recordingChannelType value to set. * @return the StartCallRecordingRequestInternal object itself. */ + @Generated public StartCallRecordingRequestInternal setRecordingChannelType(RecordingChannelInternal recordingChannelType) { this.recordingChannelType = recordingChannelType; return this; @@ -159,6 +179,7 @@ public StartCallRecordingRequestInternal setRecordingChannelType(RecordingChanne * * @return the recordingFormatType value. */ + @Generated public RecordingFormatInternal getRecordingFormatType() { return this.recordingFormatType; } @@ -169,6 +190,7 @@ public RecordingFormatInternal getRecordingFormatType() { * @param recordingFormatType the recordingFormatType value to set. * @return the StartCallRecordingRequestInternal object itself. */ + @Generated public StartCallRecordingRequestInternal setRecordingFormatType(RecordingFormatInternal recordingFormatType) { this.recordingFormatType = recordingFormatType; return this; @@ -183,6 +205,7 @@ public StartCallRecordingRequestInternal setRecordingFormatType(RecordingFormatI * * @return the audioChannelParticipantOrdering value. */ + @Generated public List getAudioChannelParticipantOrdering() { return this.audioChannelParticipantOrdering; } @@ -197,6 +220,7 @@ public List getAudioChannelParticipantOrdering() { * @param audioChannelParticipantOrdering the audioChannelParticipantOrdering value to set. * @return the StartCallRecordingRequestInternal object itself. */ + @Generated public StartCallRecordingRequestInternal setAudioChannelParticipantOrdering(List audioChannelParticipantOrdering) { this.audioChannelParticipantOrdering = audioChannelParticipantOrdering; @@ -212,6 +236,7 @@ public List getAudioChannelParticipantOrdering() { * * @return the channelAffinity value. */ + @Generated public List getChannelAffinity() { return this.channelAffinity; } @@ -226,6 +251,7 @@ public List getChannelAffinity() { * @param channelAffinity the channelAffinity value to set. * @return the StartCallRecordingRequestInternal object itself. */ + @Generated public StartCallRecordingRequestInternal setChannelAffinity(List channelAffinity) { this.channelAffinity = channelAffinity; return this; @@ -236,6 +262,7 @@ public StartCallRecordingRequestInternal setChannelAffinity(List { StartCallRecordingRequestInternal deserializedStartCallRecordingRequestInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartMediaStreamingRequest.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartMediaStreamingRequest.java index 608f29b276c2..dfaf5ca7ccd1 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartMediaStreamingRequest.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartMediaStreamingRequest.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,16 +21,19 @@ public final class StartMediaStreamingRequest implements JsonSerializable { StartMediaStreamingRequest deserializedStartMediaStreamingRequest = new StartMediaStreamingRequest(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartTranscriptionRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartTranscriptionRequestInternal.java index 4e15b19b26e2..4beb4e1ed01f 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartTranscriptionRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StartTranscriptionRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,27 +20,33 @@ public final class StartTranscriptionRequestInternal implements JsonSerializable /* * Specifies the Locale used for transcription, e.g., en-CA or en-AU. */ + @Generated private String locale; /* - * The ID of the deployed custom model in GUID format. The GUID is generated by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. + * The ID of the deployed custom model in GUID format. The GUID is generated by Azure Speech Studio, e.g., + * a259c255-1cdw-4ed7-a693-dd58563b6f6a. */ + @Generated private String speechModelEndpointId; /* * The value to identify context of the operation. */ + @Generated private String operationContext; /* * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. */ + @Generated private String operationCallbackUri; /** * Creates an instance of StartTranscriptionRequestInternal class. */ + @Generated public StartTranscriptionRequestInternal() { } @@ -48,6 +55,7 @@ public StartTranscriptionRequestInternal() { * * @return the locale value. */ + @Generated public String getLocale() { return this.locale; } @@ -58,6 +66,7 @@ public String getLocale() { * @param locale the locale value to set. * @return the StartTranscriptionRequestInternal object itself. */ + @Generated public StartTranscriptionRequestInternal setLocale(String locale) { this.locale = locale; return this; @@ -69,6 +78,7 @@ public StartTranscriptionRequestInternal setLocale(String locale) { * * @return the speechModelEndpointId value. */ + @Generated public String getSpeechModelEndpointId() { return this.speechModelEndpointId; } @@ -80,6 +90,7 @@ public String getSpeechModelEndpointId() { * @param speechModelEndpointId the speechModelEndpointId value to set. * @return the StartTranscriptionRequestInternal object itself. */ + @Generated public StartTranscriptionRequestInternal setSpeechModelEndpointId(String speechModelEndpointId) { this.speechModelEndpointId = speechModelEndpointId; return this; @@ -90,6 +101,7 @@ public StartTranscriptionRequestInternal setSpeechModelEndpointId(String speechM * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -100,6 +112,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the StartTranscriptionRequestInternal object itself. */ + @Generated public StartTranscriptionRequestInternal setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -112,6 +125,7 @@ public StartTranscriptionRequestInternal setOperationContext(String operationCon * * @return the operationCallbackUri value. */ + @Generated public String getOperationCallbackUri() { return this.operationCallbackUri; } @@ -124,6 +138,7 @@ public String getOperationCallbackUri() { * @param operationCallbackUri the operationCallbackUri value to set. * @return the StartTranscriptionRequestInternal object itself. */ + @Generated public StartTranscriptionRequestInternal setOperationCallbackUri(String operationCallbackUri) { this.operationCallbackUri = operationCallbackUri; return this; @@ -132,6 +147,7 @@ public StartTranscriptionRequestInternal setOperationCallbackUri(String operatio /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -150,6 +166,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * null if it was pointing to JSON null. * @throws IOException If an error occurs while reading the StartTranscriptionRequestInternal. */ + @Generated public static StartTranscriptionRequestInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { StartTranscriptionRequestInternal deserializedStartTranscriptionRequestInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StopMediaStreamingRequest.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StopMediaStreamingRequest.java index 411ea6b20548..d041f5ff63e9 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StopMediaStreamingRequest.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StopMediaStreamingRequest.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,16 +21,19 @@ public final class StopMediaStreamingRequest implements JsonSerializable { StopMediaStreamingRequest deserializedStopMediaStreamingRequest = new StopMediaStreamingRequest(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StopTranscriptionRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StopTranscriptionRequestInternal.java index 58c0441bb1f1..e1f5cedd3daf 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StopTranscriptionRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StopTranscriptionRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,17 +20,20 @@ public final class StopTranscriptionRequestInternal implements JsonSerializable< /* * The value to identify context of the operation. */ + @Generated private String operationContext; /* * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. */ + @Generated private String operationCallbackUri; /** * Creates an instance of StopTranscriptionRequestInternal class. */ + @Generated public StopTranscriptionRequestInternal() { } @@ -38,6 +42,7 @@ public StopTranscriptionRequestInternal() { * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -48,6 +53,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the StopTranscriptionRequestInternal object itself. */ + @Generated public StopTranscriptionRequestInternal setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -60,6 +66,7 @@ public StopTranscriptionRequestInternal setOperationContext(String operationCont * * @return the operationCallbackUri value. */ + @Generated public String getOperationCallbackUri() { return this.operationCallbackUri; } @@ -72,6 +79,7 @@ public String getOperationCallbackUri() { * @param operationCallbackUri the operationCallbackUri value to set. * @return the StopTranscriptionRequestInternal object itself. */ + @Generated public StopTranscriptionRequestInternal setOperationCallbackUri(String operationCallbackUri) { this.operationCallbackUri = operationCallbackUri; return this; @@ -80,6 +88,7 @@ public StopTranscriptionRequestInternal setOperationCallbackUri(String operation /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -96,6 +105,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * null if it was pointing to JSON null. * @throws IOException If an error occurs while reading the StopTranscriptionRequestInternal. */ + @Generated public static StopTranscriptionRequestInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { StopTranscriptionRequestInternal deserializedStopTranscriptionRequestInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportTypeInternal.java index d7097bde4bc0..b3d97a0718a9 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportTypeInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/StreamingTransportTypeInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -15,6 +16,7 @@ public final class StreamingTransportTypeInternal extends ExpandableStringEnum values() { return values(StreamingTransportTypeInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TextSourceInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TextSourceInternal.java index bca77dda1e8d..bd342711b7ad 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TextSourceInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TextSourceInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,33 +20,41 @@ public final class TextSourceInternal implements JsonSerializable + * Refer to available locales here: */ + @Generated private String sourceLocale; /* * Voice kind type */ + @Generated private VoiceKindInternal voiceKind; /* * Voice name to be played - * Refer to available Text-to-speech voices here: + * Refer to available Text-to-speech voices here: */ + @Generated private String voiceName; /* * Endpoint where the custom voice was deployed. */ + @Generated private String customVoiceEndpointId; /** * Creates an instance of TextSourceInternal class. */ + @Generated public TextSourceInternal() { } @@ -54,6 +63,7 @@ public TextSourceInternal() { * * @return the text value. */ + @Generated public String getText() { return this.text; } @@ -64,6 +74,7 @@ public String getText() { * @param text the text value to set. * @return the TextSourceInternal object itself. */ + @Generated public TextSourceInternal setText(String text) { this.text = text; return this; @@ -77,6 +88,7 @@ public TextSourceInternal setText(String text) { * * @return the sourceLocale value. */ + @Generated public String getSourceLocale() { return this.sourceLocale; } @@ -90,6 +102,7 @@ public String getSourceLocale() { * @param sourceLocale the sourceLocale value to set. * @return the TextSourceInternal object itself. */ + @Generated public TextSourceInternal setSourceLocale(String sourceLocale) { this.sourceLocale = sourceLocale; return this; @@ -100,6 +113,7 @@ public TextSourceInternal setSourceLocale(String sourceLocale) { * * @return the voiceKind value. */ + @Generated public VoiceKindInternal getVoiceKind() { return this.voiceKind; } @@ -110,6 +124,7 @@ public VoiceKindInternal getVoiceKind() { * @param voiceKind the voiceKind value to set. * @return the TextSourceInternal object itself. */ + @Generated public TextSourceInternal setVoiceKind(VoiceKindInternal voiceKind) { this.voiceKind = voiceKind; return this; @@ -123,6 +138,7 @@ public TextSourceInternal setVoiceKind(VoiceKindInternal voiceKind) { * * @return the voiceName value. */ + @Generated public String getVoiceName() { return this.voiceName; } @@ -136,6 +152,7 @@ public String getVoiceName() { * @param voiceName the voiceName value to set. * @return the TextSourceInternal object itself. */ + @Generated public TextSourceInternal setVoiceName(String voiceName) { this.voiceName = voiceName; return this; @@ -146,6 +163,7 @@ public TextSourceInternal setVoiceName(String voiceName) { * * @return the customVoiceEndpointId value. */ + @Generated public String getCustomVoiceEndpointId() { return this.customVoiceEndpointId; } @@ -156,6 +174,7 @@ public String getCustomVoiceEndpointId() { * @param customVoiceEndpointId the customVoiceEndpointId value to set. * @return the TextSourceInternal object itself. */ + @Generated public TextSourceInternal setCustomVoiceEndpointId(String customVoiceEndpointId) { this.customVoiceEndpointId = customVoiceEndpointId; return this; @@ -164,6 +183,7 @@ public TextSourceInternal setCustomVoiceEndpointId(String customVoiceEndpointId) /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -184,6 +204,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the TextSourceInternal. */ + @Generated public static TextSourceInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { TextSourceInternal deserializedTextSourceInternal = new TextSourceInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java index d59345c9d8be..91f544bbfa78 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionOptionsInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,20 +18,24 @@ @Fluent public class TranscriptionOptionsInternal implements JsonSerializable { /* - * Defines the transport type used for streaming. Note that future values may be introduced that are not currently documented. + * Defines the transport type used for streaming. Note that future values may be introduced that are not currently + * documented. */ - private StreamingTransportTypeInternal transportType; + @Generated + private StreamingTransportTypeInternal transportType + = StreamingTransportTypeInternal.fromString("TranscriptionOptionsInternal"); /* * Specifies the Locale used for transcription, e.g., en-CA or en-AU. */ + @Generated private String locale; /** * Creates an instance of TranscriptionOptionsInternal class. */ + @Generated public TranscriptionOptionsInternal() { - this.transportType = StreamingTransportTypeInternal.fromString("TranscriptionOptionsInternal"); } /** @@ -39,6 +44,7 @@ public TranscriptionOptionsInternal() { * * @return the transportType value. */ + @Generated public StreamingTransportTypeInternal getTransportType() { return this.transportType; } @@ -48,6 +54,7 @@ public StreamingTransportTypeInternal getTransportType() { * * @return the locale value. */ + @Generated public String getLocale() { return this.locale; } @@ -58,6 +65,7 @@ public String getLocale() { * @param locale the locale value to set. * @return the TranscriptionOptionsInternal object itself. */ + @Generated public TranscriptionOptionsInternal setLocale(String locale) { this.locale = locale; return this; @@ -66,6 +74,7 @@ public TranscriptionOptionsInternal setLocale(String locale) { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -83,6 +92,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the TranscriptionOptionsInternal. */ + @Generated public static TranscriptionOptionsInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { String discriminatorValue = null; @@ -108,6 +118,7 @@ public static TranscriptionOptionsInternal fromJson(JsonReader jsonReader) throw }); } + @Generated static TranscriptionOptionsInternal fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { TranscriptionOptionsInternal deserializedTranscriptionOptionsInternal = new TranscriptionOptionsInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionResultTypeInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionResultTypeInternal.java index 45ab697ba68b..c8778cf67ebb 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionResultTypeInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionResultTypeInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,11 +15,13 @@ public final class TranscriptionResultTypeInternal extends ExpandableStringEnum< /** * Static value final for TranscriptionResultTypeInternal. */ + @Generated public static final TranscriptionResultTypeInternal FINAL = fromString("final"); /** * Static value intermediate for TranscriptionResultTypeInternal. */ + @Generated public static final TranscriptionResultTypeInternal INTERMEDIATE = fromString("intermediate"); /** @@ -26,6 +29,7 @@ public final class TranscriptionResultTypeInternal extends ExpandableStringEnum< * * @deprecated Use the {@link #fromString(String)} factory method. */ + @Generated @Deprecated public TranscriptionResultTypeInternal() { } @@ -36,6 +40,7 @@ public TranscriptionResultTypeInternal() { * @param name a name to look for. * @return the corresponding TranscriptionResultTypeInternal. */ + @Generated public static TranscriptionResultTypeInternal fromString(String name) { return fromString(name, TranscriptionResultTypeInternal.class); } @@ -45,6 +50,7 @@ public static TranscriptionResultTypeInternal fromString(String name) { * * @return known TranscriptionResultTypeInternal values. */ + @Generated public static Collection values() { return values(TranscriptionResultTypeInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionStatus.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionStatus.java index f3284de0c086..b4f32f173ea8 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionStatus.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionStatus.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,31 +15,37 @@ public final class TranscriptionStatus extends ExpandableStringEnum values() { return values(TranscriptionStatus.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionStatusDetails.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionStatusDetails.java index b30b95838690..0dbe9f2d2b2e 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionStatusDetails.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionStatusDetails.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,80 +15,95 @@ public final class TranscriptionStatusDetails extends ExpandableStringEnum values() { return values(TranscriptionStatusDetails.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionInternal.java index b88e925c1a7b..01cb5093fa45 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,26 +21,31 @@ public final class TranscriptionSubscriptionInternal implements JsonSerializable /* * Subscription Id. */ + @Generated private String id; /* * Transcription subscription state. */ + @Generated private TranscriptionSubscriptionStateInternal state; /* * Subscribed transcription result types. */ + @Generated private List subscribedResultTypes; /* * Specifies the locale used for transcription, e.g., en-CA or en-AU. */ + @Generated private String locale; /** * Creates an instance of TranscriptionSubscriptionInternal class. */ + @Generated public TranscriptionSubscriptionInternal() { } @@ -48,6 +54,7 @@ public TranscriptionSubscriptionInternal() { * * @return the id value. */ + @Generated public String getId() { return this.id; } @@ -58,6 +65,7 @@ public String getId() { * @param id the id value to set. * @return the TranscriptionSubscriptionInternal object itself. */ + @Generated public TranscriptionSubscriptionInternal setId(String id) { this.id = id; return this; @@ -68,6 +76,7 @@ public TranscriptionSubscriptionInternal setId(String id) { * * @return the state value. */ + @Generated public TranscriptionSubscriptionStateInternal getState() { return this.state; } @@ -78,6 +87,7 @@ public TranscriptionSubscriptionStateInternal getState() { * @param state the state value to set. * @return the TranscriptionSubscriptionInternal object itself. */ + @Generated public TranscriptionSubscriptionInternal setState(TranscriptionSubscriptionStateInternal state) { this.state = state; return this; @@ -88,6 +98,7 @@ public TranscriptionSubscriptionInternal setState(TranscriptionSubscriptionState * * @return the subscribedResultTypes value. */ + @Generated public List getSubscribedResultTypes() { return this.subscribedResultTypes; } @@ -98,6 +109,7 @@ public List getSubscribedResultTypes() { * @param subscribedResultTypes the subscribedResultTypes value to set. * @return the TranscriptionSubscriptionInternal object itself. */ + @Generated public TranscriptionSubscriptionInternal setSubscribedResultTypes(List subscribedResultTypes) { this.subscribedResultTypes = subscribedResultTypes; @@ -109,6 +121,7 @@ public List getSubscribedResultTypes() { * * @return the locale value. */ + @Generated public String getLocale() { return this.locale; } @@ -119,6 +132,7 @@ public String getLocale() { * @param locale the locale value to set. * @return the TranscriptionSubscriptionInternal object itself. */ + @Generated public TranscriptionSubscriptionInternal setLocale(String locale) { this.locale = locale; return this; @@ -127,6 +141,7 @@ public TranscriptionSubscriptionInternal setLocale(String locale) { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -146,6 +161,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * null if it was pointing to JSON null. * @throws IOException If an error occurs while reading the TranscriptionSubscriptionInternal. */ + @Generated public static TranscriptionSubscriptionInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { TranscriptionSubscriptionInternal deserializedTranscriptionSubscriptionInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionStateInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionStateInternal.java index c09bc867be5a..ddaa5663279d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionStateInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionSubscriptionStateInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -15,16 +16,19 @@ public final class TranscriptionSubscriptionStateInternal /** * Static value disabled for TranscriptionSubscriptionStateInternal. */ + @Generated public static final TranscriptionSubscriptionStateInternal DISABLED = fromString("disabled"); /** * Static value inactive for TranscriptionSubscriptionStateInternal. */ + @Generated public static final TranscriptionSubscriptionStateInternal INACTIVE = fromString("inactive"); /** * Static value active for TranscriptionSubscriptionStateInternal. */ + @Generated public static final TranscriptionSubscriptionStateInternal ACTIVE = fromString("active"); /** @@ -32,6 +36,7 @@ public final class TranscriptionSubscriptionStateInternal * * @deprecated Use the {@link #fromString(String)} factory method. */ + @Generated @Deprecated public TranscriptionSubscriptionStateInternal() { } @@ -42,6 +47,7 @@ public TranscriptionSubscriptionStateInternal() { * @param name a name to look for. * @return the corresponding TranscriptionSubscriptionStateInternal. */ + @Generated public static TranscriptionSubscriptionStateInternal fromString(String name) { return fromString(name, TranscriptionSubscriptionStateInternal.class); } @@ -51,6 +57,7 @@ public static TranscriptionSubscriptionStateInternal fromString(String name) { * * @return known TranscriptionSubscriptionStateInternal values. */ + @Generated public static Collection values() { return values(TranscriptionSubscriptionStateInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionUpdate.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionUpdate.java index b2e91e67e60a..370e4ab17bc0 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionUpdate.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TranscriptionUpdate.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,16 +20,19 @@ public final class TranscriptionUpdate implements JsonSerializable { TranscriptionUpdate deserializedTranscriptionUpdate = new TranscriptionUpdate(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TransferCallResponseInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TransferCallResponseInternal.java index 751a70c8b46a..037678999899 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TransferCallResponseInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TransferCallResponseInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,11 +20,13 @@ public final class TransferCallResponseInternal implements JsonSerializable { TransferCallResponseInternal deserializedTransferCallResponseInternal = new TransferCallResponseInternal(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TransferToParticipantRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TransferToParticipantRequestInternal.java index 042b525c537b..1e7640741267 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TransferToParticipantRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/TransferToParticipantRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,37 +21,45 @@ public final class TransferToParticipantRequestInternal /* * The identity of the target where call should be transferred to. */ + @Generated private CommunicationIdentifierModel targetParticipant; /* * Used by customers when calling mid-call actions to correlate the request to the response event. */ + @Generated private String operationContext; /* * Transferee is the participant who is transferred away. */ + @Generated private CommunicationIdentifierModel transferee; /* * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. */ + @Generated private String operationCallbackUri; /* * Used by customer to send custom calling context to targets */ + @Generated private CustomCallingContext customCallingContext; /* - * The source caller Id, a phone number, that will be used as the transferor's caller Id when transferring a call to a Pstn target. + * The source caller Id, a phone number, that will be used as the transferor's caller Id when transferring a call to + * a Pstn target. */ + @Generated private PhoneNumberIdentifierModel sourceCallerIdNumber; /** * Creates an instance of TransferToParticipantRequestInternal class. */ + @Generated public TransferToParticipantRequestInternal() { } @@ -59,6 +68,7 @@ public TransferToParticipantRequestInternal() { * * @return the targetParticipant value. */ + @Generated public CommunicationIdentifierModel getTargetParticipant() { return this.targetParticipant; } @@ -69,6 +79,7 @@ public CommunicationIdentifierModel getTargetParticipant() { * @param targetParticipant the targetParticipant value to set. * @return the TransferToParticipantRequestInternal object itself. */ + @Generated public TransferToParticipantRequestInternal setTargetParticipant(CommunicationIdentifierModel targetParticipant) { this.targetParticipant = targetParticipant; return this; @@ -80,6 +91,7 @@ public TransferToParticipantRequestInternal setTargetParticipant(CommunicationId * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -91,6 +103,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the TransferToParticipantRequestInternal object itself. */ + @Generated public TransferToParticipantRequestInternal setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -101,6 +114,7 @@ public TransferToParticipantRequestInternal setOperationContext(String operation * * @return the transferee value. */ + @Generated public CommunicationIdentifierModel getTransferee() { return this.transferee; } @@ -111,6 +125,7 @@ public CommunicationIdentifierModel getTransferee() { * @param transferee the transferee value to set. * @return the TransferToParticipantRequestInternal object itself. */ + @Generated public TransferToParticipantRequestInternal setTransferee(CommunicationIdentifierModel transferee) { this.transferee = transferee; return this; @@ -123,6 +138,7 @@ public TransferToParticipantRequestInternal setTransferee(CommunicationIdentifie * * @return the operationCallbackUri value. */ + @Generated public String getOperationCallbackUri() { return this.operationCallbackUri; } @@ -135,6 +151,7 @@ public String getOperationCallbackUri() { * @param operationCallbackUri the operationCallbackUri value to set. * @return the TransferToParticipantRequestInternal object itself. */ + @Generated public TransferToParticipantRequestInternal setOperationCallbackUri(String operationCallbackUri) { this.operationCallbackUri = operationCallbackUri; return this; @@ -145,6 +162,7 @@ public TransferToParticipantRequestInternal setOperationCallbackUri(String opera * * @return the customCallingContext value. */ + @Generated public CustomCallingContext getCustomCallingContext() { return this.customCallingContext; } @@ -155,6 +173,7 @@ public CustomCallingContext getCustomCallingContext() { * @param customCallingContext the customCallingContext value to set. * @return the TransferToParticipantRequestInternal object itself. */ + @Generated public TransferToParticipantRequestInternal setCustomCallingContext(CustomCallingContext customCallingContext) { this.customCallingContext = customCallingContext; return this; @@ -166,6 +185,7 @@ public TransferToParticipantRequestInternal setCustomCallingContext(CustomCallin * * @return the sourceCallerIdNumber value. */ + @Generated public PhoneNumberIdentifierModel getSourceCallerIdNumber() { return this.sourceCallerIdNumber; } @@ -177,6 +197,7 @@ public PhoneNumberIdentifierModel getSourceCallerIdNumber() { * @param sourceCallerIdNumber the sourceCallerIdNumber value to set. * @return the TransferToParticipantRequestInternal object itself. */ + @Generated public TransferToParticipantRequestInternal setSourceCallerIdNumber(PhoneNumberIdentifierModel sourceCallerIdNumber) { this.sourceCallerIdNumber = sourceCallerIdNumber; @@ -186,6 +207,7 @@ public PhoneNumberIdentifierModel getSourceCallerIdNumber() { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -207,6 +229,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the TransferToParticipantRequestInternal. */ + @Generated public static TransferToParticipantRequestInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { TransferToParticipantRequestInternal deserializedTransferToParticipantRequestInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnholdRequest.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnholdRequest.java index bfe55fc2401a..c9c6a6a72043 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnholdRequest.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UnholdRequest.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,22 +21,26 @@ public final class UnholdRequest implements JsonSerializable { * Participants to be hold from the call. * Only ACS Users are supported. */ + @Generated private CommunicationIdentifierModel targetParticipant; /* * Used by customers when calling mid-call actions to correlate the request to the response event. */ + @Generated private String operationContext; /* * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. */ + @Generated private String operationCallbackUri; /** * Creates an instance of UnholdRequest class. */ + @Generated public UnholdRequest() { } @@ -45,6 +50,7 @@ public UnholdRequest() { * * @return the targetParticipant value. */ + @Generated public CommunicationIdentifierModel getTargetParticipant() { return this.targetParticipant; } @@ -56,6 +62,7 @@ public CommunicationIdentifierModel getTargetParticipant() { * @param targetParticipant the targetParticipant value to set. * @return the UnholdRequest object itself. */ + @Generated public UnholdRequest setTargetParticipant(CommunicationIdentifierModel targetParticipant) { this.targetParticipant = targetParticipant; return this; @@ -67,6 +74,7 @@ public UnholdRequest setTargetParticipant(CommunicationIdentifierModel targetPar * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -78,6 +86,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the UnholdRequest object itself. */ + @Generated public UnholdRequest setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -90,6 +99,7 @@ public UnholdRequest setOperationContext(String operationContext) { * * @return the operationCallbackUri value. */ + @Generated public String getOperationCallbackUri() { return this.operationCallbackUri; } @@ -102,6 +112,7 @@ public String getOperationCallbackUri() { * @param operationCallbackUri the operationCallbackUri value to set. * @return the UnholdRequest object itself. */ + @Generated public UnholdRequest setOperationCallbackUri(String operationCallbackUri) { this.operationCallbackUri = operationCallbackUri; return this; @@ -110,6 +121,7 @@ public UnholdRequest setOperationCallbackUri(String operationCallbackUri) { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -128,6 +140,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the UnholdRequest. */ + @Generated public static UnholdRequest fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { UnholdRequest deserializedUnholdRequest = new UnholdRequest(); diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UpdateTranscriptionRequestInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UpdateTranscriptionRequestInternal.java index 24f9861f4210..9058f74a7b6c 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UpdateTranscriptionRequestInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/UpdateTranscriptionRequestInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,27 +20,32 @@ public final class UpdateTranscriptionRequestInternal implements JsonSerializabl /* * Specifies the Locale used for transcription, e.g., en-CA or en-AU. */ + @Generated private String locale; /* * The ID of the deployed custom model, in GUID format, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. */ + @Generated private String speechModelEndpointId; /* * The value to identify context of the operation. */ + @Generated private String operationContext; /* * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. */ + @Generated private String operationCallbackUri; /** * Creates an instance of UpdateTranscriptionRequestInternal class. */ + @Generated public UpdateTranscriptionRequestInternal() { } @@ -48,6 +54,7 @@ public UpdateTranscriptionRequestInternal() { * * @return the locale value. */ + @Generated public String getLocale() { return this.locale; } @@ -58,6 +65,7 @@ public String getLocale() { * @param locale the locale value to set. * @return the UpdateTranscriptionRequestInternal object itself. */ + @Generated public UpdateTranscriptionRequestInternal setLocale(String locale) { this.locale = locale; return this; @@ -69,6 +77,7 @@ public UpdateTranscriptionRequestInternal setLocale(String locale) { * * @return the speechModelEndpointId value. */ + @Generated public String getSpeechModelEndpointId() { return this.speechModelEndpointId; } @@ -80,6 +89,7 @@ public String getSpeechModelEndpointId() { * @param speechModelEndpointId the speechModelEndpointId value to set. * @return the UpdateTranscriptionRequestInternal object itself. */ + @Generated public UpdateTranscriptionRequestInternal setSpeechModelEndpointId(String speechModelEndpointId) { this.speechModelEndpointId = speechModelEndpointId; return this; @@ -90,6 +100,7 @@ public UpdateTranscriptionRequestInternal setSpeechModelEndpointId(String speech * * @return the operationContext value. */ + @Generated public String getOperationContext() { return this.operationContext; } @@ -100,6 +111,7 @@ public String getOperationContext() { * @param operationContext the operationContext value to set. * @return the UpdateTranscriptionRequestInternal object itself. */ + @Generated public UpdateTranscriptionRequestInternal setOperationContext(String operationContext) { this.operationContext = operationContext; return this; @@ -112,6 +124,7 @@ public UpdateTranscriptionRequestInternal setOperationContext(String operationCo * * @return the operationCallbackUri value. */ + @Generated public String getOperationCallbackUri() { return this.operationCallbackUri; } @@ -124,6 +137,7 @@ public String getOperationCallbackUri() { * @param operationCallbackUri the operationCallbackUri value to set. * @return the UpdateTranscriptionRequestInternal object itself. */ + @Generated public UpdateTranscriptionRequestInternal setOperationCallbackUri(String operationCallbackUri) { this.operationCallbackUri = operationCallbackUri; return this; @@ -132,6 +146,7 @@ public UpdateTranscriptionRequestInternal setOperationCallbackUri(String operati /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -150,6 +165,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * null if it was pointing to JSON null. * @throws IOException If an error occurs while reading the UpdateTranscriptionRequestInternal. */ + @Generated public static UpdateTranscriptionRequestInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { UpdateTranscriptionRequestInternal deserializedUpdateTranscriptionRequestInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/VoiceKindInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/VoiceKindInternal.java index 3d6520116dad..d5eaa75d4a6c 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/VoiceKindInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/VoiceKindInternal.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.implementation.models; +import com.azure.core.annotation.Generated; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; @@ -14,11 +15,13 @@ public final class VoiceKindInternal extends ExpandableStringEnum values() { return values(VoiceKindInternal.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptionsInternal.java index 2f825022d5d8..3e8b5e864850 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketMediaStreamingOptionsInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -16,43 +17,52 @@ @Fluent public final class WebSocketMediaStreamingOptionsInternal extends MediaStreamingOptionsInternal { /* - * Defines the transport type used for streaming. Note that future values may be introduced that are not currently documented. + * Defines the transport type used for streaming. Note that future values may be introduced that are not currently + * documented. */ + @Generated private StreamingTransportTypeInternal transportType = StreamingTransportTypeInternal.WEBSOCKET; /* * The transport URL for media streaming. */ + @Generated private String transportUrl; /* * The contentType property. */ + @Generated private MediaStreamingContentTypeInternal contentType; /* * A value indicating whether the media streaming should start immediately after the call is answered. */ + @Generated private Boolean startMediaStreaming; /* * A value indicating whether bidirectional streaming is enabled. */ + @Generated private Boolean enableBidirectional; /* * The audio format used for encoding, including sample rate and channel type. The default is Pcm16KMono. */ + @Generated private AudioFormatInternal audioFormat; /* * A value that indicates whether to stream the DTMF tones. */ + @Generated private Boolean enableDtmfTones; /** * Creates an instance of WebSocketMediaStreamingOptionsInternal class. */ + @Generated public WebSocketMediaStreamingOptionsInternal() { } @@ -62,6 +72,7 @@ public WebSocketMediaStreamingOptionsInternal() { * * @return the transportType value. */ + @Generated @Override public StreamingTransportTypeInternal getTransportType() { return this.transportType; @@ -72,6 +83,7 @@ public StreamingTransportTypeInternal getTransportType() { * * @return the transportUrl value. */ + @Generated public String getTransportUrl() { return this.transportUrl; } @@ -82,6 +94,7 @@ public String getTransportUrl() { * @param transportUrl the transportUrl value to set. * @return the WebSocketMediaStreamingOptionsInternal object itself. */ + @Generated public WebSocketMediaStreamingOptionsInternal setTransportUrl(String transportUrl) { this.transportUrl = transportUrl; return this; @@ -92,6 +105,7 @@ public WebSocketMediaStreamingOptionsInternal setTransportUrl(String transportUr * * @return the contentType value. */ + @Generated public MediaStreamingContentTypeInternal getContentType() { return this.contentType; } @@ -102,6 +116,7 @@ public MediaStreamingContentTypeInternal getContentType() { * @param contentType the contentType value to set. * @return the WebSocketMediaStreamingOptionsInternal object itself. */ + @Generated public WebSocketMediaStreamingOptionsInternal setContentType(MediaStreamingContentTypeInternal contentType) { this.contentType = contentType; return this; @@ -113,6 +128,7 @@ public WebSocketMediaStreamingOptionsInternal setContentType(MediaStreamingConte * * @return the startMediaStreaming value. */ + @Generated public Boolean isStartMediaStreaming() { return this.startMediaStreaming; } @@ -124,6 +140,7 @@ public Boolean isStartMediaStreaming() { * @param startMediaStreaming the startMediaStreaming value to set. * @return the WebSocketMediaStreamingOptionsInternal object itself. */ + @Generated public WebSocketMediaStreamingOptionsInternal setStartMediaStreaming(Boolean startMediaStreaming) { this.startMediaStreaming = startMediaStreaming; return this; @@ -134,6 +151,7 @@ public WebSocketMediaStreamingOptionsInternal setStartMediaStreaming(Boolean sta * * @return the enableBidirectional value. */ + @Generated public Boolean isEnableBidirectional() { return this.enableBidirectional; } @@ -144,6 +162,7 @@ public Boolean isEnableBidirectional() { * @param enableBidirectional the enableBidirectional value to set. * @return the WebSocketMediaStreamingOptionsInternal object itself. */ + @Generated public WebSocketMediaStreamingOptionsInternal setEnableBidirectional(Boolean enableBidirectional) { this.enableBidirectional = enableBidirectional; return this; @@ -155,6 +174,7 @@ public WebSocketMediaStreamingOptionsInternal setEnableBidirectional(Boolean ena * * @return the audioFormat value. */ + @Generated public AudioFormatInternal getAudioFormat() { return this.audioFormat; } @@ -166,6 +186,7 @@ public AudioFormatInternal getAudioFormat() { * @param audioFormat the audioFormat value to set. * @return the WebSocketMediaStreamingOptionsInternal object itself. */ + @Generated public WebSocketMediaStreamingOptionsInternal setAudioFormat(AudioFormatInternal audioFormat) { this.audioFormat = audioFormat; return this; @@ -176,6 +197,7 @@ public WebSocketMediaStreamingOptionsInternal setAudioFormat(AudioFormatInternal * * @return the enableDtmfTones value. */ + @Generated public Boolean isEnableDtmfTones() { return this.enableDtmfTones; } @@ -186,6 +208,7 @@ public Boolean isEnableDtmfTones() { * @param enableDtmfTones the enableDtmfTones value to set. * @return the WebSocketMediaStreamingOptionsInternal object itself. */ + @Generated public WebSocketMediaStreamingOptionsInternal setEnableDtmfTones(Boolean enableDtmfTones) { this.enableDtmfTones = enableDtmfTones; return this; @@ -194,6 +217,7 @@ public WebSocketMediaStreamingOptionsInternal setEnableDtmfTones(Boolean enableD /** * {@inheritDoc} */ + @Generated @Override public WebSocketMediaStreamingOptionsInternal setAudioChannelType(MediaStreamingAudioChannelTypeInternal audioChannelType) { @@ -204,6 +228,7 @@ public WebSocketMediaStreamingOptionsInternal setEnableDtmfTones(Boolean enableD /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -228,6 +253,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the WebSocketMediaStreamingOptionsInternal. */ + @Generated public static WebSocketMediaStreamingOptionsInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { WebSocketMediaStreamingOptionsInternal deserializedWebSocketMediaStreamingOptionsInternal diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptionsInternal.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptionsInternal.java index 07a3ee543a5d..e6ea0a00543e 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptionsInternal.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/models/WebSocketTranscriptionOptionsInternal.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -16,33 +17,41 @@ @Fluent public final class WebSocketTranscriptionOptionsInternal extends TranscriptionOptionsInternal { /* - * Defines the transport type used for streaming. Note that future values may be introduced that are not currently documented. + * Defines the transport type used for streaming. Note that future values may be introduced that are not currently + * documented. */ + @Generated private StreamingTransportTypeInternal transportType = StreamingTransportTypeInternal.WEBSOCKET; /* * The URL used for live transcription transport. */ + @Generated private String transportUrl; /* - * The ID of the deployed custom model in GUID format. The GUID is generated by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. + * The ID of the deployed custom model in GUID format. The GUID is generated by Azure Speech Studio, e.g., + * a259c255-1cdw-4ed7-a693-dd58563b6f6a. */ + @Generated private String speechModelEndpointId; /* * Indicates whether the transcription should start immediately after the call is answered. */ + @Generated private Boolean startTranscription; /* * Enables intermediate results for the transcribed speech. */ + @Generated private Boolean enableIntermediateResults; /** * Creates an instance of WebSocketTranscriptionOptionsInternal class. */ + @Generated public WebSocketTranscriptionOptionsInternal() { } @@ -52,6 +61,7 @@ public WebSocketTranscriptionOptionsInternal() { * * @return the transportType value. */ + @Generated @Override public StreamingTransportTypeInternal getTransportType() { return this.transportType; @@ -62,6 +72,7 @@ public StreamingTransportTypeInternal getTransportType() { * * @return the transportUrl value. */ + @Generated public String getTransportUrl() { return this.transportUrl; } @@ -72,6 +83,7 @@ public String getTransportUrl() { * @param transportUrl the transportUrl value to set. * @return the WebSocketTranscriptionOptionsInternal object itself. */ + @Generated public WebSocketTranscriptionOptionsInternal setTransportUrl(String transportUrl) { this.transportUrl = transportUrl; return this; @@ -83,6 +95,7 @@ public WebSocketTranscriptionOptionsInternal setTransportUrl(String transportUrl * * @return the speechModelEndpointId value. */ + @Generated public String getSpeechModelEndpointId() { return this.speechModelEndpointId; } @@ -94,6 +107,7 @@ public String getSpeechModelEndpointId() { * @param speechModelEndpointId the speechModelEndpointId value to set. * @return the WebSocketTranscriptionOptionsInternal object itself. */ + @Generated public WebSocketTranscriptionOptionsInternal setSpeechModelEndpointId(String speechModelEndpointId) { this.speechModelEndpointId = speechModelEndpointId; return this; @@ -105,6 +119,7 @@ public WebSocketTranscriptionOptionsInternal setSpeechModelEndpointId(String spe * * @return the startTranscription value. */ + @Generated public Boolean isStartTranscription() { return this.startTranscription; } @@ -116,6 +131,7 @@ public Boolean isStartTranscription() { * @param startTranscription the startTranscription value to set. * @return the WebSocketTranscriptionOptionsInternal object itself. */ + @Generated public WebSocketTranscriptionOptionsInternal setStartTranscription(Boolean startTranscription) { this.startTranscription = startTranscription; return this; @@ -126,6 +142,7 @@ public WebSocketTranscriptionOptionsInternal setStartTranscription(Boolean start * * @return the enableIntermediateResults value. */ + @Generated public Boolean isEnableIntermediateResults() { return this.enableIntermediateResults; } @@ -136,6 +153,7 @@ public Boolean isEnableIntermediateResults() { * @param enableIntermediateResults the enableIntermediateResults value to set. * @return the WebSocketTranscriptionOptionsInternal object itself. */ + @Generated public WebSocketTranscriptionOptionsInternal setEnableIntermediateResults(Boolean enableIntermediateResults) { this.enableIntermediateResults = enableIntermediateResults; return this; @@ -144,6 +162,7 @@ public WebSocketTranscriptionOptionsInternal setEnableIntermediateResults(Boolea /** * {@inheritDoc} */ + @Generated @Override public WebSocketTranscriptionOptionsInternal setLocale(String locale) { super.setLocale(locale); @@ -153,6 +172,7 @@ public WebSocketTranscriptionOptionsInternal setLocale(String locale) { /** * {@inheritDoc} */ + @Generated @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -174,6 +194,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the WebSocketTranscriptionOptionsInternal. */ + @Generated public static WebSocketTranscriptionOptionsInternal fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { WebSocketTranscriptionOptionsInternal deserializedWebSocketTranscriptionOptionsInternal diff --git a/sdk/communication/azure-communication-callautomation/swagger/README.md b/sdk/communication/azure-communication-callautomation/swagger/README.md index 0c2f1cc6b67a..06f4ab66e47e 100644 --- a/sdk/communication/azure-communication-callautomation/swagger/README.md +++ b/sdk/communication/azure-communication-callautomation/swagger/README.md @@ -30,7 +30,7 @@ autorest README.md --java --v4 ``` yaml tag: package-2025-05-15 -use: '@autorest/java@4.1.29' +use: '@autorest/java@4.1.52' require: - https://github.com/Azure/azure-rest-api-specs/blob/d87c0a3d1abbd1d1aa1b487d99e77769b6895ef4/specification/communication/data-plane/CallAutomation/readme.md java: true From 59c9ca4bd77dc6c6628a57d3bd096a6005c7543c Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Mon, 7 Jul 2025 15:15:17 -0700 Subject: [PATCH 30/31] version update --- eng/versioning/version_client.txt | 2 +- .../azure-communication-callautomation/CHANGELOG.md | 2 +- sdk/communication/azure-communication-callautomation/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 6aa04410d847..6a140e5f60ad 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -70,7 +70,7 @@ com.azure:azure-analytics-synapse-spark;1.0.0-beta.5;1.0.0-beta.6 com.azure:azure-analytics-synapse-managedprivateendpoints;1.0.0-beta.5;1.0.0-beta.6 com.azure:azure-analytics-synapse-monitoring;1.0.0-beta.4;1.0.0-beta.5 com.azure:azure-code-customization-parent;1.0.0-beta.1;1.0.0-beta.1 -com.azure:azure-communication-callautomation;1.4.1;1.4.2 +com.azure:azure-communication-callautomation;1.4.1;1.5.0-beta.1 com.azure:azure-communication-callingserver;1.0.0-beta.4;1.0.0-beta.5 com.azure:azure-communication-chat;1.6.0;1.7.0-beta.1 com.azure:azure-communication-common;1.4.0;1.5.0-beta.1 diff --git a/sdk/communication/azure-communication-callautomation/CHANGELOG.md b/sdk/communication/azure-communication-callautomation/CHANGELOG.md index f8c345813b63..1a4f8136946f 100644 --- a/sdk/communication/azure-communication-callautomation/CHANGELOG.md +++ b/sdk/communication/azure-communication-callautomation/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.4.2 (Unreleased) +## 1.5.0-beta.1 (Unreleased) ### Features Added diff --git a/sdk/communication/azure-communication-callautomation/pom.xml b/sdk/communication/azure-communication-callautomation/pom.xml index 12e17d023c97..7598f476794f 100644 --- a/sdk/communication/azure-communication-callautomation/pom.xml +++ b/sdk/communication/azure-communication-callautomation/pom.xml @@ -15,7 +15,7 @@ com.azure azure-communication-callautomation jar - 1.4.2 + 1.5.0-beta.1 Microsoft Azure client library for Call Automation service From 66b974861c40c5cffc1150e5735da5754d1a7af0 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Mon, 7 Jul 2025 15:37:09 -0700 Subject: [PATCH 31/31] updating readme version --- sdk/communication/azure-communication-callautomation/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-callautomation/README.md b/sdk/communication/azure-communication-callautomation/README.md index cc3b24a868ae..91a892677c5d 100644 --- a/sdk/communication/azure-communication-callautomation/README.md +++ b/sdk/communication/azure-communication-callautomation/README.md @@ -22,7 +22,7 @@ This package contains a Java SDK for Azure Communication Call Automation Service com.azure azure-communication-callautomation - 1.4.0 + 1.4.1 ```