From 78914c2f17b24d9fff5f3ddc23c92258313ce8ec Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 10 Jan 2014 17:17:53 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=BA=D1=80=D0=B0=D1=89=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20JSON-=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/annimon/client/utils/ApiUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/annimon/client/utils/ApiUtils.java b/src/com/annimon/client/utils/ApiUtils.java index 20630a4..813b4fe 100644 --- a/src/com/annimon/client/utils/ApiUtils.java +++ b/src/com/annimon/client/utils/ApiUtils.java @@ -57,10 +57,10 @@ public class ApiUtils { for (int i = 0; i < jsonArray.length(); i++) { JSONObject jsonObject = jsonArray.getJSONObject(i); ForumPost post = new ForumPost(); - post.setTopicId(jsonObject.getInt("topic_id")); + post.setTopicId(jsonObject.getInt("topic")); post.setTopicTitle(jsonObject.getString("title")); post.setDate(jsonObject.getInt("time")); - post.setAuthor(jsonObject.getString("username")); + post.setAuthor(jsonObject.getString("user")); post.setMessage(jsonObject.getString("text")); posts.add(post); } @@ -93,7 +93,7 @@ public class ApiUtils { for (int i = 0; i < jsonArray.length(); i++) { JSONObject jsonObject = jsonArray.getJSONObject(i); ForumTopic post = new ForumTopic(); - post.setId(jsonObject.getInt("topic_id")); + post.setId(jsonObject.getInt("topic")); post.setTitle(jsonObject.getString("title")); post.setCreationDate(jsonObject.getInt("time")); topics.add(post);