aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'juick-common/src/main/java/com/juick')
-rw-r--r--juick-common/src/main/java/com/juick/User.java17
-rw-r--r--juick-common/src/main/java/com/juick/service/UserService.java6
2 files changed, 17 insertions, 6 deletions
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<ExternalToken> tokens;
+ private List<User> read;
+ private List<User> readers;
public User() {
tokens = new ArrayList<>();
@@ -182,4 +184,19 @@ public class User {
public void setTokens(List<ExternalToken> tokens) {
this.tokens = tokens;
}
+
+ public List<User> getRead() {
+ return read;
+ }
+ public List<User> getReaders() {
+ return readers;
+ }
+
+ public void setRead(List<User> read) {
+ this.read = read;
+ }
+
+ public void setReaders(List<User> 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<Integer> getUserRead(int uid);
-
List<com.juick.User> getUserReadLeastPopular(int uid, int cnt);
List<User> 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);