/// <summary> /// Gets property from json RemoteConsoleOpcode. /// </summary> internal static Server.RemoteConsoleOpcode Get_rco(string json_string) { Server.RemoteConsoleOpcode temp = 0; try { if (IsValid(json_string)) { JToken token = JObject.Parse(json_string); token = token["opcode"]; temp = (Server.RemoteConsoleOpcode) int.Parse(token.ToString()); } else { } } catch (Exception) { } return(temp); }
public Login(Server.RemoteConsoleOpcode opcode, string usern, string userp) { this.OpCode = opcode; this.UserName = usern; this.Password = userp; }
public Command(Server.RemoteConsoleOpcode opcode, string command) { this.OpCode = opcode; this.MyCommand = command; }