Auto stash before merge of "client" and "origin/client"

This commit is contained in:
shinichi
2020-09-25 15:00:43 +02:00
parent 6ef5bbfe12
commit 9c3b2c3f9b
4 changed files with 112 additions and 13 deletions

View File

@@ -75,7 +75,15 @@ namespace Client
bool isJson = DataParser.getJsonIdentifier(messageBytes, out identifier);
if (isJson)
{
Console.WriteLine($"Received json with identifier {identifier}:\n{Encoding.ASCII.GetString(messageBytes.Skip(5).ToArray())}");
switch (identifier)
{
case DataParser.LOGIN:
Console.WriteLine($"Received json with identifier {identifier}:\n{Encoding.ASCII.GetString(messageBytes.Skip(5).ToArray())}");
break;
default:
Console.WriteLine($"Received json with identifier {identifier}:\n{Encoding.ASCII.GetString(messageBytes.Skip(5).ToArray())}");
break;
}
}
else if (DataParser.isRawData(messageBytes))
{