aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/api/activity/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/www/api/activity/model')
-rw-r--r--src/main/java/com/juick/www/api/activity/model/Context.java9
-rw-r--r--src/main/java/com/juick/www/api/activity/model/objects/Note.java10
2 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/com/juick/www/api/activity/model/Context.java b/src/main/java/com/juick/www/api/activity/model/Context.java
index 77c1fdcb..cfcc9379 100644
--- a/src/main/java/com/juick/www/api/activity/model/Context.java
+++ b/src/main/java/com/juick/www/api/activity/model/Context.java
@@ -72,6 +72,7 @@ public class Context implements Serializable {
private String url;
private List<String> to;
+ private List<String> cc;
private List<Context> tags;
@@ -163,4 +164,12 @@ public class Context implements Serializable {
public void setIcon(Image icon) {
this.icon = icon;
}
+
+ public List<String> getCc() {
+ return cc;
+ }
+
+ public void setCc(List<String> cc) {
+ this.cc = cc;
+ }
}
diff --git a/src/main/java/com/juick/www/api/activity/model/objects/Note.java b/src/main/java/com/juick/www/api/activity/model/objects/Note.java
index 7889b172..465ad07c 100644
--- a/src/main/java/com/juick/www/api/activity/model/objects/Note.java
+++ b/src/main/java/com/juick/www/api/activity/model/objects/Note.java
@@ -20,6 +20,7 @@ package com.juick.www.api.activity.model.objects;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.juick.www.api.activity.model.Context;
+import java.time.Instant;
import java.util.List;
public class Note extends Context {
@@ -30,6 +31,7 @@ public class Note extends Context {
private List<String> to;
private List<String> cc;
private boolean sensitive;
+ private Instant updated;
public String getContent() {
return content;
@@ -87,4 +89,12 @@ public class Note extends Context {
public void setSensitive(boolean sensitive) {
this.sensitive = sensitive;
}
+
+ public Instant getUpdated() {
+ return updated;
+ }
+
+ public void setUpdated(Instant updated) {
+ this.updated = updated;
+ }
}