-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Expand file tree
/
Copy pathAnswerCallEventResult.cs
More file actions
32 lines (28 loc) · 1.17 KB
/
AnswerCallEventResult.cs
File metadata and controls
32 lines (28 loc) · 1.17 KB
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
32
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Azure.Communication.CallAutomation
{
/// <summary><see cref="AnswerCallEventResult"/> is returned from WaitForEvent of <see cref="AnswerCallResult"/>.</summary>
public class AnswerCallEventResult
{
/// <summary>
/// Indicates whether the returned event is considered successful or not.
/// </summary>
public bool IsSuccess { get; internal set; }
/// <summary>
/// <see cref="CallConnected"/> event will be returned once the call is established with AnswerCall.
/// </summary>
public CallConnected SuccessResult { get; }
/// <summary>
/// <see cref="AnswerFailed"/> event will be returned once the call is established with AnswerCall.
/// </summary>
/// <value></value>
public AnswerFailed FailureResult { get; }
internal AnswerCallEventResult(bool isSuccess, CallConnected successResult, AnswerFailed failureResult)
{
IsSuccess = isSuccess;
SuccessResult = successResult;
FailureResult = failureResult;
}
}
}