Skip to content
Snippets Groups Projects
Commit 79c6319e authored by Georgios Diamantopoulos's avatar Georgios Diamantopoulos
Browse files

add missing members from domain objects

parent 0b33a4c6
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ using System.Collections.ObjectModel;
using System.Text;
using System.Linq;
using System;
using Newtonsoft.Json;
namespace MasterDevs.ChromeDevTools.ProtocolGenerator
{
......@@ -54,6 +55,9 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator
set;
}
[JsonProperty("experimental")]
public bool IsExperimental { get; set; }
public override bool Equals(object obj)
{
var other = obj as Command;
......@@ -81,7 +85,7 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator
{
hash = hash * 23 + this.Error.GetHashCode();
}
hash = hash * 23 + this.Parameters.GetCollectionHashCode();
return hash;
}
......
......@@ -2,6 +2,7 @@
using System;
using System.Collections.ObjectModel;
using System.Linq;
using Newtonsoft.Json.Linq;
namespace MasterDevs.ChromeDevTools.ProtocolGenerator
{
......@@ -51,6 +52,11 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator
set;
}
[JsonProperty("experimental")]
public bool IsExperimental { get; set; }
public string[] Dependencies { get; set; }
public Command GetCommand(string name)
{
return this.Commands.SingleOrDefault(c => string.Equals(c.Name, name, StringComparison.OrdinalIgnoreCase));
......
using System.Collections.ObjectModel;
using Newtonsoft.Json;
namespace MasterDevs.ChromeDevTools.ProtocolGenerator
{
......@@ -27,5 +28,8 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator
get;
set;
}
[JsonProperty("experimental")]
public bool IsExperimental { get; set; }
}
}
......@@ -16,5 +16,8 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator
get;
set;
}
[JsonProperty("deprecated")]
public bool IsDeprecated { get; set; }
}
}
......@@ -87,6 +87,10 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator
}
}
}
[JsonProperty("experimental")]
public bool IsExperimental { get; set; }
public override bool Equals(object obj)
{
var other = obj as Type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment