From de2cc2db73a5de42d9bfaeb92604f28abe2a328a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 24 Oct 2017 17:18:29 +0300 Subject: crosspost: refactoring * spring-social * get tokens via service api --- .../src/main/java/com/juick/service/CrosspostService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'juick-server-core/src') 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 f491c797..2ece8305 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 @@ -17,9 +17,11 @@ package com.juick.service; +import com.juick.ExternalToken; import com.juick.server.helpers.ApplicationStatus; import org.apache.commons.lang3.tuple.Pair; +import javax.annotation.Nonnull; import java.util.Optional; /** @@ -27,7 +29,7 @@ import java.util.Optional; */ public interface CrosspostService { - Optional> getTwitterTokens(int uid); + Optional getTwitterToken(int uid); boolean deleteTwitterToken(Integer uid); @@ -39,6 +41,7 @@ public interface CrosspostService { void disableFBCrosspost(Integer uid); + @Nonnull String getTwitterName(int uid); String getTelegramName(int uid); -- cgit v1.2.3