We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ca35e3 commit fbe97c9Copy full SHA for fbe97c9
dotnet/src/webdriver/BiDi/Communication/Command.cs
@@ -17,6 +17,8 @@
17
// under the License.
18
// </copyright>
19
20
+using System.Text.Json.Serialization;
21
+
22
namespace OpenQA.Selenium.BiDi.Communication;
23
24
public abstract class Command
@@ -26,14 +28,17 @@ protected Command(string method)
26
28
Method = method;
27
29
}
30
31
+ [JsonPropertyOrder(1)]
32
public string Method { get; }
33
34
+ [JsonPropertyOrder(0)]
35
public int Id { get; internal set; }
36
37
38
internal abstract class Command<TCommandParameters>(TCommandParameters @params, string method) : Command(method)
39
where TCommandParameters : CommandParameters
40
{
41
+ [JsonPropertyOrder(2)]
42
public TCommandParameters Params { get; } = @params;
43
44
0 commit comments