diff options
author | Vitaly Takmazov | 2018-12-31 11:21:58 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-12-31 11:21:58 +0300 |
commit | a429149e6d1fd0928670f3d7f0d4c67fb9f07fee (patch) | |
tree | 948253551c1388f6e9dd052e2a65e32878a03d9f /src/main/java/com/juick/Message.java | |
parent | 9599599d665e65f35d804eade620cf063ee723ff (diff) |
Cleanup XML serialization
Diffstat (limited to 'src/main/java/com/juick/Message.java')
-rw-r--r-- | src/main/java/com/juick/Message.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/juick/Message.java b/src/main/java/com/juick/Message.java index 10380826..00527b41 100644 --- a/src/main/java/com/juick/Message.java +++ b/src/main/java/com/juick/Message.java @@ -188,7 +188,7 @@ public class Message implements Comparable { this.ts = timestamp; } - @XmlElement(name = "to", namespace = "http://juick.com/user") + @XmlTransient public User getTo() { return to; } @@ -363,6 +363,7 @@ public class Message implements Comparable { this.replyUri = replyUri; } + @XmlAttribute(name = "html") public boolean isHtml() { return html; } @@ -371,6 +372,7 @@ public class Message implements Comparable { this.html = html; } + @XmlTransient public URI getReplyToUri() { return replyToUri; } |