2019-01-01 16:32:03 +01:00
|
|
|
package User;
|
|
|
|
|
2019-02-21 10:24:23 +01:00
|
|
|
import androidx.room.ColumnInfo;
|
|
|
|
import androidx.room.Entity;
|
|
|
|
import androidx.annotation.NonNull;
|
2019-01-01 16:32:03 +01:00
|
|
|
|
2019-01-11 04:33:32 +01:00
|
|
|
import SubscribedUserDatabase.SubscribedUserData;
|
|
|
|
|
2019-01-01 16:32:03 +01:00
|
|
|
@Entity(tableName = "users")
|
2019-01-11 04:33:32 +01:00
|
|
|
public class UserData extends SubscribedUserData {
|
2019-01-01 16:32:03 +01:00
|
|
|
@ColumnInfo(name = "banner")
|
|
|
|
private String banner;
|
|
|
|
@ColumnInfo(name = "karma")
|
|
|
|
private int karma;
|
|
|
|
@ColumnInfo(name = "is_gold")
|
|
|
|
private boolean isGold;
|
|
|
|
@ColumnInfo(name = "is_friend")
|
|
|
|
private boolean isFriend;
|
2019-01-11 11:44:54 +01:00
|
|
|
@ColumnInfo(name = "can_be_followed")
|
|
|
|
private boolean canBeFollowed;
|
2019-01-01 16:32:03 +01:00
|
|
|
|
2019-01-11 11:44:54 +01:00
|
|
|
public UserData(@NonNull String name, String iconUrl, String banner, int karma, boolean isGold, boolean isFriend, boolean canBeFollowed) {
|
2019-01-11 04:33:32 +01:00
|
|
|
super(name, iconUrl);
|
2019-01-01 16:32:03 +01:00
|
|
|
this.banner = banner;
|
|
|
|
this.karma = karma;
|
|
|
|
this.isGold = isGold;
|
|
|
|
this.isFriend = isFriend;
|
2019-01-11 11:44:54 +01:00
|
|
|
this.canBeFollowed = canBeFollowed;
|
2019-01-01 16:32:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getBanner() {
|
|
|
|
return banner;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getKarma() {
|
|
|
|
return karma;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isGold() {
|
|
|
|
return isGold;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isFriend() {
|
|
|
|
return isFriend;
|
|
|
|
}
|
2019-01-11 11:44:54 +01:00
|
|
|
|
|
|
|
public boolean isCanBeFollowed() {
|
|
|
|
return canBeFollowed;
|
|
|
|
}
|
2019-01-01 16:32:03 +01:00
|
|
|
}
|