【发布时间】:2016-04-28 15:17:03
【问题描述】:
我最近搬到了 Retrofit,我想用 Retrofit 替换这个 httpost 集实体。我该怎么做。
JSONObject jsonObject = new JSONObject();
jsonObject.put("childId", childId);
HttpPost httpPost = new HttpPost(url);
StringEntity entity = new StringEntity(jsonObject.toString());
httpPost.setEntity(entity);
这就是我想要做的,但它不起作用,
Observable<Item> getListOfFeed(@Body StringEntity params);
【问题讨论】:
标签: android http post retrofit