Added Request

This commit is contained in:
Aareschluchtje
2015-10-09 11:54:02 +02:00
parent 3653edd707
commit 38f0d21f9d
+4 -2
View File
@@ -8,7 +8,8 @@ namespace ErgometerLibrary
{ {
public class NetCommand public class NetCommand
{ {
public enum CommandType { LOGIN, DATA, CHAT, LOGOUT, SESSION, VALUESET, USER, RESPONSE }; public enum CommandType { LOGIN, DATA, CHAT, LOGOUT, SESSION, VALUESET, USER, RESPONSE, REQUEST };
public enum RequestType { USERS}
public enum ResponseType { LOGINOK, LOGINWRONG, ERROR, NOTLOGGEDIN } public enum ResponseType { LOGINOK, LOGINWRONG, ERROR, NOTLOGGEDIN }
public enum ValueType { TIME, POWER, ENERGY, DISTANCE } public enum ValueType { TIME, POWER, ENERGY, DISTANCE }
@@ -17,7 +18,8 @@ namespace ErgometerLibrary
public CommandType Type { get; set; } public CommandType Type { get; set; }
public ResponseType Response { get; set; } public ResponseType Response { get; set; }
public ValueType Value { get; set; } public ValueType Value { get; set; }
public int SetValue { get; set; } public RequestType Request { get; set; }
public double SetValue { get; set; }
public string DisplayName { get; set; } public string DisplayName { get; set; }
public bool IsDoctor { get; set; } public bool IsDoctor { get; set; }
public string Password { get; set; } public string Password { get; set; }