cleanup files

This commit is contained in:
Sem van der Hoeven
2020-09-25 15:56:26 +02:00
parent aa5f58e752
commit 13d99eb107
4 changed files with 33 additions and 75 deletions

View File

@@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Sockets;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json;
using System;
namespace RH_Engine
{
@@ -27,14 +23,13 @@ namespace RH_Engine
}
return res;
}
public static string GetSessionID(string msg, PC[] PCs)
{
dynamic jsonData = JsonConvert.DeserializeObject(msg);
Newtonsoft.Json.Linq.JArray data = jsonData.data;
for (int i = data.Count-1; i >= 0; i--)
for (int i = data.Count - 1; i >= 0; i--)
{
dynamic d = data[i];
foreach (PC pc in PCs)
@@ -60,7 +55,6 @@ namespace RH_Engine
{
dynamic d = JsonConvert.DeserializeObject(json);
return d.id;
}
public static string GetTunnelID(string json)
@@ -99,4 +93,4 @@ namespace RH_Engine
return null;
}
}
}
}