aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/api/activity/model
diff options
context:
space:
mode:
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/Image.java22
-rw-r--r--juick-server/src/main/java/com/juick/server/api/activity/model/Person.java6
2 files changed, 25 insertions, 3 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/activity/model/Image.java b/juick-server/src/main/java/com/juick/server/api/activity/model/Image.java
new file mode 100644
index 00000000..9a3b1659
--- /dev/null
+++ b/juick-server/src/main/java/com/juick/server/api/activity/model/Image.java
@@ -0,0 +1,22 @@
+package com.juick.server.api.activity.model;
+
+public class Image extends ActivityObject {
+ private String mediaType;
+ private String url;
+
+ public String getMediaType() {
+ return mediaType;
+ }
+
+ public void setMediaType(String mediaType) {
+ this.mediaType = mediaType;
+ }
+
+ public String getUrl() {
+ return url;
+ }
+
+ public void setUrl(String url) {
+ this.url = url;
+ }
+}
diff --git a/juick-server/src/main/java/com/juick/server/api/activity/model/Person.java b/juick-server/src/main/java/com/juick/server/api/activity/model/Person.java
index 626ac309..d3e99bcc 100644
--- a/juick-server/src/main/java/com/juick/server/api/activity/model/Person.java
+++ b/juick-server/src/main/java/com/juick/server/api/activity/model/Person.java
@@ -3,7 +3,7 @@ package com.juick.server.api.activity.model;
public class Person extends ActivityObject {
private String name;
- private Link icon;
+ private Image icon;
private String inbox;
private String outbox;
@@ -20,11 +20,11 @@ public class Person extends ActivityObject {
this.name = name;
}
- public Link getIcon() {
+ public Image getIcon() {
return icon;
}
- public void setIcon(Link icon) {
+ public void setIcon(Image icon) {
this.icon = icon;
}