From c9617232d5eeced643b510c108384619a7fc79b0 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 15 Dec 2022 19:51:49 +0300 Subject: Extract user to actor conversion code into Converter --- src/main/java/com/juick/model/User.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java/com/juick/model') diff --git a/src/main/java/com/juick/model/User.java b/src/main/java/com/juick/model/User.java index 5cc0d125..131ec1b1 100644 --- a/src/main/java/com/juick/model/User.java +++ b/src/main/java/com/juick/model/User.java @@ -56,6 +56,7 @@ public class User implements Serializable { private URI uri; private Instant seen; private boolean verified; + private boolean service; private String country; private String url; private String description; @@ -243,6 +244,13 @@ public class User implements Serializable { public void setVerified(boolean verified) { this.verified = verified; } + @XmlTransient + public boolean isService() { + return service; + } + public void setService(boolean service) { + this.service = service; + } public String getCountry() { return country; -- cgit v1.2.3