aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-04 12:18:42 +0300
committerGravatar Vitaly Takmazov2018-10-04 09:35:24 +0000
commit5be22ee8963cf45190b13b41dc2dac7b7b0bfb01 (patch)
tree2ace48b2d11decb816638514157f71269c95e791 /juick-common/src/main
parent7f9187d8a87a5cd6e2720eac0d03f1c2fcc507ed (diff)
ActivityPub: persist followers and forward message event to them
Diffstat (limited to 'juick-common/src/main')
-rw-r--r--juick-common/src/main/java/com/juick/service/SocialService.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/juick-common/src/main/java/com/juick/service/SocialService.java b/juick-common/src/main/java/com/juick/service/SocialService.java
new file mode 100644
index 00000000..d54d6fa1
--- /dev/null
+++ b/juick-common/src/main/java/com/juick/service/SocialService.java
@@ -0,0 +1,15 @@
+package com.juick.service;
+
+import com.juick.User;
+
+import javax.annotation.Nonnull;
+import java.util.List;
+
+public interface SocialService {
+ @Nonnull
+ User getUserByAccountUri(String acct);
+ @Nonnull
+ List<String> getFollowers(User user);
+ void addFollower(User user, String acct);
+ void removeFollower(User user, String acct);
+}