diff options
author | Vitaly Takmazov | 2017-12-27 16:23:28 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-01-12 09:12:09 +0300 |
commit | bf5f2142d73a5745124d03f6b6f06c59873e47de (patch) | |
tree | 969d43a3bf6d39197313e16080b8b8472975cbe2 /juick-server-core/src | |
parent | 0c78bc5c08632718eb94c0021cf3ee47fb8ddb82 (diff) |
Messenger bot
Diffstat (limited to 'juick-server-core/src')
-rw-r--r-- | juick-server-core/src/main/java/com/juick/service/CrosspostService.java | 2 | ||||
-rw-r--r-- | juick-server-core/src/main/java/com/juick/service/MessengerService.java | 14 |
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); +} |