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; ...@@ -3,6 +3,7 @@ using System.Collections.ObjectModel;
using System.Text; using System.Text;
using System.Linq; using System.Linq;
using System; using System;
using Newtonsoft.Json;
namespace MasterDevs.ChromeDevTools.ProtocolGenerator namespace MasterDevs.ChromeDevTools.ProtocolGenerator
{ {
...@@ -54,6 +55,9 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator ...@@ -54,6 +55,9 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator
set; set;
} }
[JsonProperty("experimental")]
public bool IsExperimental { get; set; }
public override bool Equals(object obj) public override bool Equals(object obj)
{ {
var other = obj as Command; var other = obj as Command;
...@@ -81,7 +85,7 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator ...@@ -81,7 +85,7 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator
{ {
hash = hash * 23 + this.Error.GetHashCode(); hash = hash * 23 + this.Error.GetHashCode();
} }
hash = hash * 23 + this.Parameters.GetCollectionHashCode(); hash = hash * 23 + this.Parameters.GetCollectionHashCode();
return hash; return hash;
} }
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
using System; using System;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Linq; using System.Linq;
using Newtonsoft.Json.Linq;
namespace MasterDevs.ChromeDevTools.ProtocolGenerator namespace MasterDevs.ChromeDevTools.ProtocolGenerator
{ {
...@@ -51,6 +52,11 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator ...@@ -51,6 +52,11 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator
set; set;
} }
[JsonProperty("experimental")]
public bool IsExperimental { get; set; }
public string[] Dependencies { get; set; }
public Command GetCommand(string name) public Command GetCommand(string name)
{ {
return this.Commands.SingleOrDefault(c => string.Equals(c.Name, name, StringComparison.OrdinalIgnoreCase)); return this.Commands.SingleOrDefault(c => string.Equals(c.Name, name, StringComparison.OrdinalIgnoreCase));
......
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using Newtonsoft.Json;
namespace MasterDevs.ChromeDevTools.ProtocolGenerator namespace MasterDevs.ChromeDevTools.ProtocolGenerator
{ {
...@@ -27,5 +28,8 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator ...@@ -27,5 +28,8 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator
get; get;
set; set;
} }
[JsonProperty("experimental")]
public bool IsExperimental { get; set; }
} }
} }
...@@ -16,5 +16,8 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator ...@@ -16,5 +16,8 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator
get; get;
set; set;
} }
[JsonProperty("deprecated")]
public bool IsDeprecated { get; set; }
} }
} }
...@@ -87,6 +87,10 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator ...@@ -87,6 +87,10 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator
} }
} }
} }
[JsonProperty("experimental")]
public bool IsExperimental { get; set; }
public override bool Equals(object obj) public override bool Equals(object obj)
{ {
var other = obj as Type; 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