1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
package ml.docilealligator.infinityforreddit.user;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
@Entity(tableName = "users")
public class UserData {
@PrimaryKey
@NonNull
@ColumnInfo(name = "name")
private final String name;
@ColumnInfo(name = "icon")
private final String iconUrl;
@ColumnInfo(name = "banner")
private final String banner;
@ColumnInfo(name = "link_karma")
private final int linkKarma;
@ColumnInfo(name = "comment_karma")
private final int commentKarma;
@ColumnInfo(name = "awarder_karma")
private final int awarderKarma;
@ColumnInfo(name = "awardee_karma")
private final int awardeeKarma;
@ColumnInfo(name = "total_karma")
private final int totalKarma;
@ColumnInfo(name = "created_utc")
private final long cakeday;
@ColumnInfo(name = "is_gold")
private final boolean isGold;
@ColumnInfo(name = "is_friend")
private final boolean isFriend;
@ColumnInfo(name = "can_be_followed")
private final boolean canBeFollowed;
@ColumnInfo(name = "over_18")
private final boolean isNSFW;
@ColumnInfo(name = "description")
private final String description;
@ColumnInfo(name = "title")
private final String title;
@Ignore
private boolean isSelected;
public UserData(@NonNull String name, String iconUrl, String banner, int linkKarma, int commentKarma,
int awarderKarma, int awardeeKarma, int totalKarma, long cakeday, boolean isGold,
boolean isFriend, boolean canBeFollowed, boolean isNSFW, String description, String title) {
this.name = name;
this.iconUrl = iconUrl;
this.banner = banner;
this.commentKarma = commentKarma;
this.linkKarma = linkKarma;
this.awarderKarma = awarderKarma;
this.awardeeKarma = awardeeKarma;
this.totalKarma = totalKarma;
this.cakeday = cakeday;
this.isGold = isGold;
this.isFriend = isFriend;
this.canBeFollowed = canBeFollowed;
this.isNSFW = isNSFW;
this.description = description;
this.title = title;
this.isSelected = false;
}
@NonNull
public String getName() {
return name;
}
public String getIconUrl() {
return iconUrl;
}
public String getBanner() {
return banner;
}
public int getLinkKarma() {
return linkKarma;
}
public int getCommentKarma() {
return commentKarma;
}
public int getAwarderKarma() {
return awarderKarma;
}
public int getAwardeeKarma() {
return awardeeKarma;
}
public int getTotalKarma() {
return totalKarma;
}
public long getCakeday() {
return cakeday;
}
public boolean isGold() {
return isGold;
}
public boolean isFriend() {
return isFriend;
}
public boolean isCanBeFollowed() {
return canBeFollowed;
}
public boolean isNSFW() {
return isNSFW;
}
public String getDescription() {
return description;
}
public String getTitle() {
return title;
}
public boolean isSelected() {
return isSelected;
}
public void setSelected(boolean selected) {
isSelected = selected;
}
}
|