0
我最近搬到Retrofit,我想用Retrofit替換這個httpost集合實體。我該怎麼做。http post setEntity using retrofit
JSONObject jsonObject = new JSONObject();
jsonObject.put("childId", childId);
HttpPost httpPost = new HttpPost(url);
StringEntity entity = new StringEntity(jsonObject.toString());
httpPost.setEntity(entity);
這就是我要怎樣做,但它dosent工作,
Observable<Item> getListOfFeed(@Body StringEntity params);