Przeglądaj źródła

Server side set stuff from doctor session uc

Bart Reedijk 10 lat temu
rodzic
commit
82638351fb
1 zmienionych plików z 26 dodań i 1 usunięć
  1. 26 1
      Proftaak Remote Healthcare/ServerV2/AppGlobal.cs

+ 26 - 1
Proftaak Remote Healthcare/ServerV2/AppGlobal.cs

@@ -298,10 +298,35 @@ namespace ServerV2
                         }
                         
                         break;
+                    case "20":
+                        Client Case20Client = clients.FirstOrDefault(item => item.username == response[1]);
+                        if (Case20Client != null)
+                        {
+                            string Case20String = "20|" + response[2] + "|";
+                            Communication.Send(Case20String, Case20Client.sslStream);
+                        }
+                        break;
+                    case "21":
+                        Client Case21Client = clients.FirstOrDefault(item => item.username == response[1]);
+                        if (Case21Client != null)
+                        {
+                            string Case20String = "21|" + response[2] + "|" + response[3] + "|";
+                            Communication.Send(Case20String, Case21Client.sslStream);
+                        }
+                        break;
+                    case "22":
+                        Client Case22Client = clients.FirstOrDefault(item => item.username == response[1]);
+                        if (Case22Client != null)
+                        {
+                            string Case22String = "22|" + response[2] + "|";
+                            Communication.Send(Case22String, Case22Client.sslStream);
+                        }
+                        break;
+
                     default:
                         break;
                 }
-
+                
 
             }
         }