This commit is contained in:
fabjuuuh
2020-10-16 15:02:26 +02:00
parent e3c580c8c2
commit 173dbf2745
8 changed files with 47 additions and 16 deletions

View File

@@ -4,7 +4,6 @@ using System.IO.Pipes;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using DoctorApp.Utils;
using Util;
namespace Server
@@ -56,5 +55,30 @@ namespace Server
}
}
public void StartSessionUser(string user)
{
foreach(Client client in clients)
{
if(client.username == user)
{
client.sendMessage(DataParser.getStartSessionJson(user));
client.StartSession();
}
}
}
public void StopSessionUser(string user)
{
foreach (Client client in clients)
{
if (client.username == user)
{
client.sendMessage(DataParser.getStopSessionJson(user));
client.StopSession();
}
}
}
}
}