From 3870fd009e13d728a343d2ebe79c4f6cd113f2ab Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 15 Jul 2018 11:43:36 +0300 Subject: Api: read and readers in /me --- juick-common/src/main/java/com/juick/User.java | 17 +++++++++++++++++ .../src/main/java/com/juick/service/UserService.java | 6 ------ 2 files changed, 17 insertions(+), 6 deletions(-) (limited to 'juick-common') diff --git a/juick-common/src/main/java/com/juick/User.java b/juick-common/src/main/java/com/juick/User.java index 5edfe782..3b74f31c 100644 --- a/juick-common/src/main/java/com/juick/User.java +++ b/juick-common/src/main/java/com/juick/User.java @@ -46,6 +46,8 @@ public class User { private String credentials; private String lang; private List tokens; + private List read; + private List readers; public User() { tokens = new ArrayList<>(); @@ -182,4 +184,19 @@ public class User { public void setTokens(List tokens) { this.tokens = tokens; } + + public List getRead() { + return read; + } + public List getReaders() { + return readers; + } + + public void setRead(List read) { + this.read = read; + } + + public void setReaders(List readers) { + this.readers = readers; + } } diff --git a/juick-common/src/main/java/com/juick/service/UserService.java b/juick-common/src/main/java/com/juick/service/UserService.java index 858a47be..df62f0ef 100644 --- a/juick-common/src/main/java/com/juick/service/UserService.java +++ b/juick-common/src/main/java/com/juick/service/UserService.java @@ -69,8 +69,6 @@ public interface UserService { String getHashByUID(int uid); - int getUIDByHttpAuth(String header); - int checkPassword(String username, String password); boolean updatePassword(User user, String newPassword); @@ -97,8 +95,6 @@ public interface UserService { boolean isSubscribed(int uid, int check); - List getUserRead(int uid); - List getUserReadLeastPopular(int uid, int cnt); List getUserReaders(int uid); @@ -109,8 +105,6 @@ public interface UserService { boolean linkTwitterAccount(User user, String accessToken, String accessTokenSecret, String screenName); - int getStatsIRead(int uid); - int getStatsMyReaders(int uid); int getStatsMessages(int uid); -- cgit v1.2.3