package com.juick.service; import com.juick.server.helpers.ApplicationStatus; import org.apache.commons.lang3.tuple.Pair; import java.util.Optional; /** * Created by aalexeev on 11/13/16. */ public interface CrosspostService { Optional> getTwitterTokens(int uid); boolean deleteTwitterToken(Integer uid); Optional getFacebookToken(int uid); ApplicationStatus getFbCrossPostStatus(int uid); boolean enableFBCrosspost(Integer uid); void disableFBCrosspost(Integer uid); String getTwitterName(int uid); String getTelegramName(int uid); Optional> getVkTokens(int uid); void deleteVKUser(Integer uid); int getUIDbyFBID(long fbID); boolean createFacebookUser(long fbID, String loginhash, String token, String fbName, String fbLink); boolean updateFacebookUser(long fbID, String token, String fbName, String fbLink); int getUIDbyVKID(long vkID); boolean createVKUser(long vkID, String loginhash, String token, String vkName, String vkLink); String getFacebookNameByHash(String hash); String getTelegramNameByHash(String hash); boolean setFacebookUser(String hash, int uid); String getVKNameByHash(String hash); boolean setVKUser(String hash, int uid); boolean setTelegramUser(String hash, int uid); String getJIDByHash(String hash); boolean setJIDUser(String hash, int uid); }