aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/User
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-01-11 10:44:54 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-01-11 10:44:54 +0000
commit047e31936fa87830b38d4f9a52c7c4dabb84467e (patch)
tree0f35a8f3946dabab097bb56d7afd107b467e7ed0 /app/src/main/java/User
parent0bd0639a4ed270524443c637be9320eb822cc0cf (diff)
downloadinfinity-for-reddit-047e31936fa87830b38d4f9a52c7c4dabb84467e.tar
infinity-for-reddit-047e31936fa87830b38d4f9a52c7c4dabb84467e.tar.gz
infinity-for-reddit-047e31936fa87830b38d4f9a52c7c4dabb84467e.tar.bz2
infinity-for-reddit-047e31936fa87830b38d4f9a52c7c4dabb84467e.tar.lz
infinity-for-reddit-047e31936fa87830b38d4f9a52c7c4dabb84467e.tar.xz
infinity-for-reddit-047e31936fa87830b38d4f9a52c7c4dabb84467e.tar.zst
infinity-for-reddit-047e31936fa87830b38d4f9a52c7c4dabb84467e.zip
Display the Follow Chip only if the user can be followed. Change schemes of database users.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/User/UserData.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/src/main/java/User/UserData.java b/app/src/main/java/User/UserData.java
index 89eafb96..a3b15b0e 100644
--- a/app/src/main/java/User/UserData.java
+++ b/app/src/main/java/User/UserData.java
@@ -16,13 +16,16 @@ public class UserData extends SubscribedUserData {
private boolean isGold;
@ColumnInfo(name = "is_friend")
private boolean isFriend;
+ @ColumnInfo(name = "can_be_followed")
+ private boolean canBeFollowed;
- public UserData(@NonNull String name, String iconUrl, String banner, int karma, boolean isGold, boolean isFriend) {
+ public UserData(@NonNull String name, String iconUrl, String banner, int karma, boolean isGold, boolean isFriend, boolean canBeFollowed) {
super(name, iconUrl);
this.banner = banner;
this.karma = karma;
this.isGold = isGold;
this.isFriend = isFriend;
+ this.canBeFollowed = canBeFollowed;
}
public String getBanner() {
@@ -40,4 +43,8 @@ public class UserData extends SubscribedUserData {
public boolean isFriend() {
return isFriend;
}
+
+ public boolean isCanBeFollowed() {
+ return canBeFollowed;
+ }
}