Skip to content
Snippets Groups Projects
Commit 3d77cb94 authored by brewdente's avatar brewdente
Browse files

CodeMaid cleanup

parent 00f37935
No related branches found
No related tags found
No related merge requests found
using System; namespace MasterDevs.ChromeDevTools
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools
{ {
public interface IChromeSessionFactory public interface IChromeSessionFactory
{ {
......
using System; namespace MasterDevs.ChromeDevTools
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools
{ {
public interface ICommandFactory public interface ICommandFactory
{ {
......
using System; namespace MasterDevs.ChromeDevTools
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools
{ {
public interface ICommandResponseFactory public interface ICommandResponseFactory
{ {
......
using System; namespace MasterDevs.ChromeDevTools
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools
{ {
public interface IEventFactory public interface IEventFactory
{ {
......
using System; namespace MasterDevs.ChromeDevTools
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools
{ {
public interface IMethodNameAttribute public interface IMethodNameAttribute
{ {
......
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools namespace MasterDevs.ChromeDevTools
{ {
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools namespace MasterDevs.ChromeDevTools
{ {
...@@ -17,6 +15,7 @@ namespace MasterDevs.ChromeDevTools ...@@ -17,6 +15,7 @@ namespace MasterDevs.ChromeDevTools
{ {
LoadMethodTypeMap(); LoadMethodTypeMap();
} }
private void LoadMethodTypeMap() private void LoadMethodTypeMap()
{ {
var assembly = Assembly.GetExecutingAssembly(); var assembly = Assembly.GetExecutingAssembly();
......
...@@ -5,27 +5,25 @@ using System.Collections.Generic; ...@@ -5,27 +5,25 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools.ProtocolGenerator namespace MasterDevs.ChromeDevTools.ProtocolGenerator
{ {
class Program internal class Program
{ {
const string CommandAttribute = "Command"; private const string CommandAttribute = "Command";
const string CommandResponseAttribute = "CommandResponse"; private const string CommandResponseAttribute = "CommandResponse";
const string EventAttribute = "Event"; private const string EventAttribute = "Event";
const string ProtocolNameClass = "ProtocolName"; private const string ProtocolNameClass = "ProtocolName";
const string RootNamespace = "MasterDevs.ChromeDevTools.Protocol"; private const string RootNamespace = "MasterDevs.ChromeDevTools.Protocol";
const string CommandSubclass = "Command"; private const string CommandSubclass = "Command";
const string CommandResponseSubclass = CommandSubclass + "Response"; private const string CommandResponseSubclass = CommandSubclass + "Response";
const string EventSubclass = "Event"; private const string EventSubclass = "Event";
private static Dictionary<string, Dictionary<string, string>> _DomainPropertyTypes = new Dictionary<string, Dictionary<string, string>>(); private static Dictionary<string, Dictionary<string, string>> _DomainPropertyTypes = new Dictionary<string, Dictionary<string, string>>();
private static Dictionary<string, List<string>> _DomainCommands = new Dictionary<string, List<string>>(); private static Dictionary<string, List<string>> _DomainCommands = new Dictionary<string, List<string>>();
private static Dictionary<string, List<string>> _DomainEvents = new Dictionary<string, List<string>>(); private static Dictionary<string, List<string>> _DomainEvents = new Dictionary<string, List<string>>();
private static Dictionary<string, string> _SimpleTypes = new Dictionary<string, string>(); private static Dictionary<string, string> _SimpleTypes = new Dictionary<string, string>();
private static void Main(string[] args)
static void Main(string[] args)
{ {
var filePath = "protocol.json"; var filePath = "protocol.json";
JObject protocolObject = null; JObject protocolObject = null;
...@@ -162,7 +160,6 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator ...@@ -162,7 +160,6 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator
sb.AppendLine(); sb.AppendLine();
} }
sb.AppendLine("\t}"); sb.AppendLine("\t}");
sb.AppendLine("}"); sb.AppendLine("}");
WriteToFile(domainDirectoryInfo, ProtocolNameClass, sb.ToString()); WriteToFile(domainDirectoryInfo, ProtocolNameClass, sb.ToString());
......
using MasterDevs.ChromeDevTools; using MasterDevs.ChromeDevTools.Protocol.Page;
using System; using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq; using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using MasterDevs.ChromeDevTools.Protocol;
using WebSocket4Net;
using MasterDevs.ChromeDevTools.Protocol.Page;
namespace MasterDevs.ChromeDevTools.Sample namespace MasterDevs.ChromeDevTools.Sample
{ {
class Program internal class Program
{ {
static void Main(string[] args) private static void Main(string[] args)
{ {
// STEP 1 - Run Chrome // STEP 1 - Run Chrome
var chromeProcessFactory = new ChromeProcessFactory(); var chromeProcessFactory = new ChromeProcessFactory();
...@@ -56,8 +47,6 @@ namespace MasterDevs.ChromeDevTools.Sample ...@@ -56,8 +47,6 @@ namespace MasterDevs.ChromeDevTools.Sample
Console.ReadLine(); Console.ReadLine();
} }
} }
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment