private static void GetRequest <T>(string url, Dictionary <string, object> forms, Action <T> callback, bool addToken = false) where T : ResponseModel { GetRequest(url, forms, (req) => { T t = ResponseModel.Dispose <T>(url, req.downloadHandler.text); if (t == null) { DisplayDialog("Dispose Err", req.downloadHandler.text); return; } bool bo = t.CheckCode(false); if (bo && callback != null) { callback.Invoke(t); } }, addToken); }