diff options
author | Vitaly Takmazov | 2018-10-23 17:48:25 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-23 17:48:25 +0300 |
commit | 8e83a22012c2bee323eeeb3ae1384ac488741ebf (patch) | |
tree | 947f307ce94e926938b23427e60346e0c5d21c11 /juick-common/src/main/java/com/juick/User.java | |
parent | cab7e26aea1ac9518ff6c625340de2b809eaed50 (diff) |
Last seen
Diffstat (limited to 'juick-common/src/main/java/com/juick/User.java')
-rw-r--r-- | juick-common/src/main/java/com/juick/User.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/juick-common/src/main/java/com/juick/User.java b/juick-common/src/main/java/com/juick/User.java index 765b5abb..ca907987 100644 --- a/juick-common/src/main/java/com/juick/User.java +++ b/juick-common/src/main/java/com/juick/User.java @@ -27,6 +27,7 @@ import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlTransient; import java.net.URI; +import java.time.Instant; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -50,6 +51,7 @@ public class User { private List<User> readers; private List<Integer> unread; private URI uri; + private Instant seen; public User() { tokens = new ArrayList<>(); @@ -209,4 +211,12 @@ public class User { public void setUri(URI uri) { this.uri = uri; } + + public Instant getSeen() { + return seen; + } + + public void setSeen(Instant seen) { + this.seen = seen; + } } |