aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/api/activity/model/objects
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-08-22 00:13:02 +0300
committerGravatar Vitaly Takmazov2021-08-22 00:13:02 +0300
commit9100b5bda037fcd1b051b98585744077132320bc (patch)
treefdda04472de22e8f53eafc342a05e31b46cfb15d /src/main/java/com/juick/www/api/activity/model/objects
parente5c28b65b5d3ef2e5c98c71f55faa7c60d7864f0 (diff)
Type-safe ActivityStreams deserialization
Diffstat (limited to 'src/main/java/com/juick/www/api/activity/model/objects')
-rw-r--r--src/main/java/com/juick/www/api/activity/model/objects/Note.java6
-rw-r--r--src/main/java/com/juick/www/api/activity/model/objects/Tombstone.java24
2 files changed, 27 insertions, 3 deletions
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 66470b5c..7889b172 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
@@ -26,7 +26,7 @@ public class Note extends Context {
private String content;
private String attributedTo;
private String inReplyTo;
- private List<Image> attachment;
+ private List<Context> attachment;
private List<String> to;
private List<String> cc;
private boolean sensitive;
@@ -48,11 +48,11 @@ public class Note extends Context {
}
@JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY)
- public List<Image> getAttachment() {
+ public List<Context> getAttachment() {
return attachment;
}
- public void setAttachment(List<Image> attachment) {
+ public void setAttachment(List<Context> attachment) {
this.attachment = attachment;
}
diff --git a/src/main/java/com/juick/www/api/activity/model/objects/Tombstone.java b/src/main/java/com/juick/www/api/activity/model/objects/Tombstone.java
new file mode 100644
index 00000000..1a229299
--- /dev/null
+++ b/src/main/java/com/juick/www/api/activity/model/objects/Tombstone.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2008-2021, Juick
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package com.juick.www.api.activity.model.objects;
+
+import com.juick.www.api.activity.model.Context;
+
+public class Tombstone extends Context {
+
+} \ No newline at end of file