From 3255ae885b1f82dc45a68fccfec9b500ec1a4ff1 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Tue, 20 Oct 2020 19:40:10 +0200 Subject: [PATCH] [ADD] added lobby identifier enum --- SharedClientServer/JSONConvert.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SharedClientServer/JSONConvert.cs b/SharedClientServer/JSONConvert.cs index a2b655a..b0d83cb 100644 --- a/SharedClientServer/JSONConvert.cs +++ b/SharedClientServer/JSONConvert.cs @@ -13,6 +13,14 @@ namespace SharedClientServer public const byte MESSAGE = 0x02; public const byte LOBBY = 0x03; public const byte CANVAS = 0x04; + + enum LobbyIdentifier + { + HOST, + ADD, + LEAVE, + REQUEST + } public static (string,string) GetUsernameAndMessage(byte[] json) { string msg = Encoding.ASCII.GetString(json);