Display the Follow Chip only if the user can be followed. Change schemes of database users.

This commit is contained in:
Alex Ning
2019-01-11 18:44:54 +08:00
parent 0bd0639a4e
commit 047e31936f
7 changed files with 96 additions and 89 deletions

View File

@@ -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;
}
}