-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
StartRecognizingEventResult.cs
31 lines (27 loc) · 1.2 KB
/
StartRecognizingEventResult.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Azure.Communication.CallAutomation
{
/// <summary><see cref="StartRecognizingEventResult"/> is returned from WaitForEvent of <see cref="StartRecognizingCallMediaResult"/>.</summary>
public class StartRecognizingEventResult
{
/// <summary>
/// Indicates whether the returned event is considered successful or not.
/// </summary>
public bool IsSuccess { get; internal set; }
/// <summary>
/// <see cref="RecognizeCompleted"/> event will be returned once the recognize is completed successfully.
/// </summary>
public RecognizeCompleted SuccessResult { get; }
/// <summary>
/// <see cref="RecognizeFailed"/> event will be returned once the recognize is completed unsuccessfully.
/// </summary>
public RecognizeFailed FailureResult { get; }
internal StartRecognizingEventResult(bool isSuccess, RecognizeCompleted successResult, RecognizeFailed failureResult)
{
IsSuccess = isSuccess;
SuccessResult = successResult;
FailureResult = failureResult;
}
}
}