var client = new DefaultJdClient("http://", appKey, appSecret, sessionKey);
var req = new StaticsticRequest<StaticsticResponse>();
req.SqlId = "219";
req.Parameter = "dt=20140623,sys_seller_id=1003105";
var resp = client.Execute(req);
Console.WriteLine(resp.Body);
//预期:
/*
代码为
*var req = new StaticsticRequest<StaticsticResponse>();
* req.dt=new DateTime(2014,6,23);
* req.SellerId="1003105";
* var res=client.Execute(req);
* Assert.AreEqual("20140623",res.DataList[0].Get("dt"));
* Assert.AreEqual("262",res.DataList[0].Get("trade_num"));
* Assert.AreEqual(1,res.DataList.Count);
*
*/
} 接口返回的结果反序列化有 DataList[0].Get(''dt") 这种二维字典 我该怎么去构造类 StaticsticResponse的 字段呢
|