/// <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; }
private static ResponseY dealResponse <T>(string json) { ResponseY response = null; try { response = JsonConvert.DeserializeObject <ResponseY>(json); } catch (Exception) { } return(response); }