-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Interrupt audio and announce api (#47533)
* Added Interrupt audio and announce api * pushed assets.json file * updating the live test * adding the events * updating the playoptions --------- Co-authored-by: Vinothini Dharmaraj <[email protected]>
- Loading branch information
1 parent
525faf2
commit 67033da
Showing
35 changed files
with
2,100 additions
and
208 deletions.
There are no files selected for viewing
76 changes: 76 additions & 0 deletions
76
...ation/Azure.Communication.CallAutomation/api/Azure.Communication.CallAutomation.net8.0.cs
Large diffs are not rendered by default.
Oops, something went wrong.
76 changes: 76 additions & 0 deletions
76
...ure.Communication.CallAutomation/api/Azure.Communication.CallAutomation.netstandard2.0.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...tion/src/CallAutomationEventProcessor/EventResult/InterruptAudioAndAnnounceEventResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Azure.Communication.CallAutomation | ||
{ | ||
/// <summary><see cref="InterruptAudioAndAnnounceEventResult"/> is returned from WaitForEvent of <see cref="InterruptAudioAndAnnounceResult"/>.</summary> | ||
public class InterruptAudioAndAnnounceEventResult | ||
{ | ||
/// <summary> | ||
/// Indicates whether the returned event is considered successful or not. | ||
/// </summary> | ||
public bool IsSuccess { get; internal set; } | ||
|
||
/// <summary> | ||
/// <see cref="PlayStarted"/> event will be returned once the play has started successfully. | ||
/// </summary> | ||
public PlayStarted StartResult { get; } | ||
|
||
/// <summary> | ||
/// <see cref="PlayPaused"/> event will be returned once the play is paused successfully. | ||
/// </summary> | ||
public PlayPaused PauseResult { get; } | ||
|
||
/// <summary> | ||
/// <see cref="PlayResumed"/> event will be returned once the play is resumed successfully. | ||
/// </summary> | ||
public PlayResumed ResumeResult { get; } | ||
|
||
/// <summary> | ||
/// <see cref="PlayCompleted"/> event will be returned once the play is completed successfully. | ||
/// </summary> | ||
public PlayCompleted SuccessResult { get; } | ||
|
||
/// <summary> | ||
/// <see cref="PlayFailed"/> event will be returned once the play failed. | ||
/// </summary> | ||
public PlayFailed FailureResult { get; } | ||
|
||
internal InterruptAudioAndAnnounceEventResult(bool isSuccess, PlayCompleted successResult, PlayFailed failureResult, PlayStarted startResult, PlayPaused pauseResult, PlayResumed resumeResult) | ||
{ | ||
IsSuccess = isSuccess; | ||
SuccessResult = successResult; | ||
FailureResult = failureResult; | ||
StartResult = startResult; | ||
PauseResult = pauseResult; | ||
ResumeResult = resumeResult; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
...ure.Communication.CallAutomation/src/Generated/Models/HoldAudioCompleted.Serialization.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
28 changes: 1 addition & 27 deletions
28
...mmunication/Azure.Communication.CallAutomation/src/Generated/Models/HoldAudioCompleted.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
68 changes: 68 additions & 0 deletions
68
.../Azure.Communication.CallAutomation/src/Generated/Models/HoldAudioPaused.Serialization.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.