public T DoRequest <T>(PyRequest req) { string json = JsonConvert.SerializeObject(req); string res = Globals.PyClient.DoRequest(json); return(JsonConvert.DeserializeObject <T>(res)); }
public T DoRequest <T>(string module, string method) { PyRequest req = new PyRequest(module, method); return(DoRequest <T>(req)); }