From 5be22ee8963cf45190b13b41dc2dac7b7b0bfb01 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 4 Oct 2018 12:18:42 +0300 Subject: ActivityPub: persist followers and forward message event to them --- .../src/main/java/com/juick/service/SocialService.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 juick-common/src/main/java/com/juick/service/SocialService.java (limited to 'juick-common/src') 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 getFollowers(User user); + void addFollower(User user, String acct); + void removeFollower(User user, String acct); +} -- cgit v1.2.3