Esempio n. 1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="key">键值</param>
        public DTRequestInfo(string key)
        {
            this.Key = key;
            ResponseY response = dealResponse <object>(key);

            this.cmd  = response.cmd;
            this.node = response.node;
        }
Esempio n. 2
0
        private static ResponseY dealResponse <T>(string json)
        {
            ResponseY response = null;

            try
            {
                response = JsonConvert.DeserializeObject <ResponseY>(json);
            }
            catch (Exception)
            {
            }
            return(response);
        }