Skip to content

Commit f725a62

Browse files
committed
Most API View comments
1 parent e360ec3 commit f725a62

12 files changed

+780
-727
lines changed

sdk/ai/Azure.AI.VoiceLive/src/Generated/AzureCustomVoice.Serialization.cs

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/ai/Azure.AI.VoiceLive/src/Generated/AzureCustomVoice.cs

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/ai/Azure.AI.VoiceLive/src/Generated/IceServer.Serialization.cs

Lines changed: 17 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/ai/Azure.AI.VoiceLive/src/Generated/IceServer.cs

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/ai/Azure.AI.VoiceLive/src/Generated/Point2D.Serialization.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/ai/Azure.AI.VoiceLive/src/Generated/Point2D.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/ai/Azure.AI.VoiceLive/src/Generated/VideoCrop.Serialization.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/ai/Azure.AI.VoiceLive/src/Generated/VideoCrop.cs

Lines changed: 5 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using System;
7+
using System.Drawing;
8+
using System.Collections.Generic;
9+
10+
namespace Azure.AI.VoiceLive
11+
{
12+
/// <summary> Defines a video crop rectangle. </summary>
13+
public partial class VideoCrop
14+
{
15+
/// <summary> Initializes a new instance of <see cref="VideoCrop"/>. </summary>
16+
/// <param name="topLeftInternal"> Top-left corner of the crop region. </param>
17+
/// <param name="bottomRightInternal"> Bottom-right corner of the crop region. </param>
18+
/// <exception cref="ArgumentNullException"> <paramref name="topLeftInternal"/> or <paramref name="bottomRightInternal"/> is null. </exception>
19+
internal VideoCrop(Point2D topLeftInternal, Point2D bottomRightInternal)
20+
{
21+
Argument.AssertNotNull(topLeftInternal, nameof(topLeftInternal));
22+
Argument.AssertNotNull(bottomRightInternal, nameof(bottomRightInternal));
23+
24+
TopLeftInternal = topLeftInternal;
25+
BottomRightInternal = bottomRightInternal;
26+
}
27+
28+
/// <summary> Initializes a new instance of <see cref="VideoCrop"/>. </summary>
29+
/// <param name="topLeft"> Top-left corner of the crop region. </param>
30+
/// <param name="bottomRight"> Bottom-right corner of the crop region. </param>
31+
/// <exception cref="ArgumentNullException"> <paramref name="topLeft"/> or <paramref name="bottomRight"/> is null. </exception>
32+
public VideoCrop(Point topLeft, Point bottomRight)
33+
{
34+
Argument.AssertNotNull(topLeft, nameof(topLeft));
35+
Argument.AssertNotNull(bottomRight, nameof(bottomRight));
36+
37+
TopLeft = topLeft;
38+
BottomRight = bottomRight;
39+
}
40+
41+
/// <summary> Top-left corner of the crop region. </summary>
42+
internal Point2D TopLeftInternal
43+
{
44+
get
45+
{
46+
return new Point2D(TopLeft.X, TopLeft.Y);
47+
}
48+
set
49+
{
50+
TopLeft = new Point(value.X, value.Y);
51+
}
52+
}
53+
54+
/// <summary> Bottom-right corner of the crop region. </summary>
55+
internal Point2D BottomRightInternal
56+
{
57+
get
58+
{
59+
return new Point2D(BottomRight.X, BottomRight.Y);
60+
}
61+
set
62+
{
63+
BottomRight = new Point(value.X, value.Y);
64+
}
65+
}
66+
67+
/// <summary> Top-left corner of the crop region. </summary>
68+
public Point TopLeft { get; set; }
69+
70+
/// <summary> Bottom-right corner of the crop region. </summary>
71+
public Point BottomRight { get; set; }
72+
}
73+
}

sdk/ai/Azure.AI.VoiceLive/src/VoiceLiveClient.WebSockets.cs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ namespace Azure.AI.VoiceLive
1212
#pragma warning disable AZC0015, AZC0107 // Client methods should return approved types
1313
public partial class VoiceLiveClient
1414
{
15-
/// <summary>
16-
/// Occurs when a command is being sent to the service via WebSocket.
17-
/// </summary>
18-
public event EventHandler<BinaryData> SendingCommand;
19-
20-
/// <summary>
21-
/// Occurs when a message is received from the service via WebSocket.
22-
/// </summary>
23-
public event EventHandler<BinaryData> ReceivingMessage;
24-
2515
/// <summary>
2616
/// Starts a new <see cref="VoiceLiveSession"/> for real-time voice communication.
2717
/// </summary>
@@ -99,26 +89,6 @@ public virtual VoiceLiveSession StartSession(
9989
return StartSessionAsync(sessionConfig, cancellationToken).EnsureCompleted();
10090
}
10191

102-
/// <summary>
103-
/// Raises the <see cref="SendingCommand"/> event.
104-
/// </summary>
105-
/// <param name="sender">The event sender.</param>
106-
/// <param name="command">The command being sent.</param>
107-
protected internal virtual void OnSendingCommand(object sender, BinaryData command)
108-
{
109-
SendingCommand?.Invoke(sender, command);
110-
}
111-
112-
/// <summary>
113-
/// Raises the <see cref="ReceivingMessage"/> event.
114-
/// </summary>
115-
/// <param name="sender">The event sender.</param>
116-
/// <param name="message">The message being received.</param>
117-
protected internal virtual void OnReceivingMessage(object sender, BinaryData message)
118-
{
119-
ReceivingMessage?.Invoke(sender, message);
120-
}
121-
12292
/// <summary>
12393
/// Converts an HTTP endpoint to a WebSocket endpoint.
12494
/// </summary>

0 commit comments

Comments
 (0)