" +
+ "
" +
+ "
Page Views: {0}
" +
+ "
";
+ public static string pageFooter =
+ "
" +
+ " " +
+ "
" +
+ "
" +
+ " " +
+ " " +
+ "";
+ public string pageData = "";
+ public FakeDeckMain(YamlHelper yaml)
+ {
+ HttpServer server = new HttpServer(yaml.getData().GetProperty("server").GetProperty("port").ToString());
+
+ foreach (JsonElement item in yaml.getData().GetProperty("pages").EnumerateArray())
+ {
+ Debug.WriteLine("PAGE: " + item.GetProperty("page"));
+ foreach (JsonElement button in item.GetProperty("buttons").EnumerateArray())
+ {
+ pageData += AbstractionHelper.getButtonVisual(button);
+ }
+ }
+
+ server.addRoute(servViewResponseAsync, "GET", "/");
+ server.addRoute(servButtonResponseAsync, "POST", "/button/");
+
+ /*foreach (var stratogem in HelldiversTwoMacro.stratogems)
+ {
+ server.pageData += HelldiversTwoMacro.getButton(stratogem.Key);
+ }
+
+ foreach (var control in MediaMacro.mediaControls)
+ {
+ server.pageData += MediaMacro.getButton(control.Key);
+ }*/
+
+ server.serv();
+ }
+
+ private static void callButtonAction(string module, Dictionary