aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/juick/json/Message.java16
-rw-r--r--src/com/juick/json/Place.java9
2 files changed, 8 insertions, 17 deletions
diff --git a/src/com/juick/json/Message.java b/src/com/juick/json/Message.java
index da817a01..c1beebc4 100644
--- a/src/com/juick/json/Message.java
+++ b/src/com/juick/json/Message.java
@@ -50,12 +50,12 @@ public class Message {
if (json.has("tags")) {
JSONArray tags = json.getJSONArray("tags");
for (int n = 0; n < tags.length(); n++) {
- jmsg.tags.add(tags.getString(n).replace("&quot;", "\""));
+ jmsg.Tags.add(tags.getString(n).replace("&quot;", "\""));
}
}
if (json.has("replies")) {
- jmsg.replies = json.getInt("replies");
+ jmsg.Replies = json.getInt("replies");
}
if (json.has("photo")) {
@@ -87,14 +87,14 @@ public class Message {
if (msg.User != null) {
json.put("user", com.juick.json.User.toJSON(msg.User));
}
- if (msg.tags != null && msg.tags.size() > 0) {
- json.put("tags", new JSONArray(msg.tags));
+ if (msg.Tags != null && msg.Tags.size() > 0) {
+ json.put("tags", new JSONArray(msg.Tags));
}
- if (msg.replies > 0) {
- json.put("replies", msg.replies);
+ if (msg.Replies > 0) {
+ json.put("replies", msg.Replies);
}
- if (msg.place != null) {
- json.put("place", com.juick.json.Place.toJSON(msg.place));
+ if (msg.Place != null) {
+ json.put("place", com.juick.json.Place.toJSON(msg.Place));
}
if (msg.AttachmentType != null) {
String fname = msg.MID + (msg.RID > 0 ? "-" + msg.RID : "") + "." + msg.AttachmentType;
diff --git a/src/com/juick/json/Place.java b/src/com/juick/json/Place.java
index 4e3e5579..f195e7d7 100644
--- a/src/com/juick/json/Place.java
+++ b/src/com/juick/json/Place.java
@@ -34,9 +34,6 @@ public class Place {
jplace.lat = json.getDouble("lat");
jplace.lon = json.getDouble("lon");
jplace.name = json.getString("name").replace("&quot;", "\"");
- if (json.has("description")) {
- jplace.description = json.getString("description").replace("&quot;", "\"");
- }
if (json.has("users")) {
jplace.users = json.getInt("users");
}
@@ -46,12 +43,6 @@ public class Place {
if (json.has("distance")) {
jplace.distance = json.getInt("distance");
}
- if (json.has("tags")) {
- JSONArray tags = json.getJSONArray("tags");
- for (int n = 0; n < tags.length(); n++) {
- jplace.tags.add(tags.getString(n).replace("&quot;", "\""));
- }
- }
return jplace;
}