Exemple #1
0
        /// <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);
        }
Exemple #2
0
 public Login(Server.RemoteConsoleOpcode opcode, string usern, string userp)
 {
     this.OpCode   = opcode;
     this.UserName = usern;
     this.Password = userp;
 }
Exemple #3
0
 public Command(Server.RemoteConsoleOpcode opcode, string command)
 {
     this.OpCode    = opcode;
     this.MyCommand = command;
 }