Сокращены названия JSON-параметров
This commit is contained in:
parent
8c18983280
commit
78914c2f17
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user