Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions dotnet/src/webdriver/BiDi/Communication/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,19 @@ namespace OpenQA.Selenium.BiDi.Communication;

public abstract class Command
{
protected Command(string method, Type resultType)
protected Command(string method)
{
Method = method;
ResultType = resultType;
}

[JsonPropertyOrder(1)]
public string Method { get; }

[JsonPropertyOrder(0)]
public long Id { get; internal set; }

[JsonIgnore]
public Type ResultType { get; }
}

internal abstract class Command<TParameters, TResult>(TParameters @params, string method) : Command(method, typeof(TResult))
internal abstract class Command<TParameters, TResult>(TParameters @params, string method) : Command(method)
where TParameters : Parameters
where TResult : EmptyResult
{
Expand Down