aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/api/activity/model
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-05 15:41:25 +0300
committerGravatar Vitaly Takmazov2018-09-05 15:41:25 +0300
commit2f972edbba5e37499982b017e51d1d7c471f2307 (patch)
tree7d126cbe0a53fc063bfe8ffbcfea785f52afc392 /juick-server/src/main/java/com/juick/server/api/activity/model
parent9b7d2f44f705830602d1ff4612cc8780c8188aa7 (diff)
ActivityStreams: to, attributedTo
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/api/activity/model')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/activity/model/Create.java11
-rw-r--r--juick-server/src/main/java/com/juick/server/api/activity/model/Note.java11
2 files changed, 22 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/activity/model/Create.java b/juick-server/src/main/java/com/juick/server/api/activity/model/Create.java
index 8d81b26b..60ad4ae3 100644
--- a/juick-server/src/main/java/com/juick/server/api/activity/model/Create.java
+++ b/juick-server/src/main/java/com/juick/server/api/activity/model/Create.java
@@ -1,9 +1,12 @@
package com.juick.server.api.activity.model;
+import java.util.List;
+
public class Create extends ActivityObject {
private Person actor;
private Note object;
+ private List<String> to;
public Person getActor() {
return actor;
@@ -20,4 +23,12 @@ public class Create extends ActivityObject {
public void setObject(Note object) {
this.object = object;
}
+
+ public List<String> getTo() {
+ return to;
+ }
+
+ public void setTo(List<String> to) {
+ this.to = to;
+ }
}
diff --git a/juick-server/src/main/java/com/juick/server/api/activity/model/Note.java b/juick-server/src/main/java/com/juick/server/api/activity/model/Note.java
index ae799f5e..8a34c926 100644
--- a/juick-server/src/main/java/com/juick/server/api/activity/model/Note.java
+++ b/juick-server/src/main/java/com/juick/server/api/activity/model/Note.java
@@ -1,9 +1,12 @@
package com.juick.server.api.activity.model;
+import java.util.List;
+
public class Note extends ActivityObject {
private String content;
private String attributedTo;
private Link attachment;
+ private List<String> to;
public String getContent() {
return content;
@@ -28,4 +31,12 @@ public class Note extends ActivityObject {
public void setAttachment(Link attachment) {
this.attachment = attachment;
}
+
+ public List<String> getTo() {
+ return to;
+ }
+
+ public void setTo(List<String> to) {
+ this.to = to;
+ }
}