From 6a6a5102cc01c8900745cfe6b28455fe416ebe61 Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Sat, 10 Oct 2015 22:43:48 +0200 Subject: [PATCH] Added Request Parse options --- ErgometerLibrary/NetCommand.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ErgometerLibrary/NetCommand.cs b/ErgometerLibrary/NetCommand.cs index cbb9ab6..ccd66c8 100644 --- a/ErgometerLibrary/NetCommand.cs +++ b/ErgometerLibrary/NetCommand.cs @@ -162,7 +162,15 @@ namespace ErgometerLibrary switch (args[0]) { case "users": - return new NetCommand(ResponseType.LOGINOK, session); + return new NetCommand(RequestType.USERS, session); + case "allsessions": + return new NetCommand(RequestType.ALLSESSIONS, session); + case "currentsessions": + return new NetCommand(RequestType.CURRENTSESSIONS, session); + case "olddata": + return new NetCommand(RequestType.OLDDATA, session); + case "sessiondata": + return new NetCommand(RequestType.SESSIONDATA, session); default: throw new FormatException("Error in NetCommand: Request type not recognised"); }