aboutsummaryrefslogtreecommitdiff
path: root/juick-server-core/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server-core/src/main/java/com/juick')
-rw-r--r--juick-server-core/src/main/java/com/juick/service/CrosspostService.java2
-rw-r--r--juick-server-core/src/main/java/com/juick/service/MessengerService.java14
2 files changed, 15 insertions, 1 deletions
diff --git a/juick-server-core/src/main/java/com/juick/service/CrosspostService.java b/juick-server-core/src/main/java/com/juick/service/CrosspostService.java
index 2ece8305..b82621e5 100644
--- a/juick-server-core/src/main/java/com/juick/service/CrosspostService.java
+++ b/juick-server-core/src/main/java/com/juick/service/CrosspostService.java
@@ -33,7 +33,7 @@ public interface CrosspostService {
boolean deleteTwitterToken(Integer uid);
- Optional<String> getFacebookToken(int uid);
+ Optional<Pair<String, String>> getFacebookTokens(int uid);
ApplicationStatus getFbCrossPostStatus(int uid);
diff --git a/juick-server-core/src/main/java/com/juick/service/MessengerService.java b/juick-server-core/src/main/java/com/juick/service/MessengerService.java
new file mode 100644
index 00000000..e07c73fe
--- /dev/null
+++ b/juick-server-core/src/main/java/com/juick/service/MessengerService.java
@@ -0,0 +1,14 @@
+package com.juick.service;
+
+import com.juick.User;
+
+import java.util.Optional;
+
+public interface MessengerService {
+ Integer getUserId(String senderId);
+ Optional<String> getSenderId(User user);
+ boolean createMessengerUser(String senderId, String displayName);
+ String getDisplayName(String hash);
+ String getSignUpHash(String senderId, String username);
+ boolean linkMessengerUser(String hash, int uid);
+}