aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-15 11:43:36 +0300
committerGravatar Vitaly Takmazov2018-07-15 11:43:36 +0300
commit3870fd009e13d728a343d2ebe79c4f6cd113f2ab (patch)
tree8718ba7d045a9ac7a337244373fbbd1af76b4966 /juick-common/src/main/java
parent3936bb230a856c12a0afbab3fb1baa331beee337 (diff)
Api: read and readers in /me
Diffstat (limited to 'juick-common/src/main/java')
-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);