Proyectos de Subversion Android Microlearning - Inconcert

Rev

Rev 1 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 gabriel 1
package com.cesams.twogetskills.inconcert.entity;
2
 
3
import androidx.room.ColumnInfo;
4
import androidx.room.Entity;
5
import androidx.room.Ignore;
6
import androidx.room.PrimaryKey;
7
 
8
import org.jetbrains.annotations.NotNull;
9
 
10
@Entity(tableName = "tb_capsules")
11
public class Capsule {
12
 
13
    @PrimaryKey
14
    @ColumnInfo(name = "uuid")
15
    @NotNull
16
    private String uuid;
17
 
18
    @ColumnInfo(name = "topic_uuid")
19
    private String topicUuid;
20
 
21
    @ColumnInfo(name = "name")
22
    private String name;
23
 
24
    @ColumnInfo(name = "description")
25
    private String description;
26
 
27
    @ColumnInfo(name = "image")
28
    private String image;
29
 
30
    @ColumnInfo(name = "position")
31
    private int position;
32
 
33
    @ColumnInfo(name="added_on")
34
    private String addedOn;
35
 
36
    @ColumnInfo(name="updated_on")
37
    private String updatedOn;
38
 
14 gabriel 39
    @ColumnInfo(name="link_comments")
40
    private String link_comments;
41
 
42
    @ColumnInfo(name="link_comment_add")
43
    private String link_comment_add;
44
 
45
    @ColumnInfo(name="total_comments")
46
    private int total_comments;
47
 
48
    @ColumnInfo(name="total_rating")
49
    private int total_rating;
50
 
1 gabriel 51
    @Ignore
52
    private int totalSlides;
53
 
54
    @Ignore
55
    private int viewSlides;
56
 
57
    @Ignore
58
    private double progress;
59
 
60
    @Ignore
61
    private int completed;
62
 
63
    public String getUuid() {
64
        return uuid;
65
    }
66
 
67
    public void setUuid(String uuid) {
68
        this.uuid = uuid;
69
    }
70
 
71
    public String getTopicUuid() {
72
        return topicUuid;
73
    }
74
 
75
    public void setTopicUuid(String topicUuid) {
76
        this.topicUuid = topicUuid;
77
    }
78
 
79
    public String getName() {
80
        return name;
81
    }
82
 
83
    public void setName(String name) {
84
        this.name = name;
85
    }
86
 
87
    public String getDescription() {
88
        return description;
89
    }
90
 
91
    public void setDescription(String description) {
92
        this.description = description;
93
    }
94
 
95
    public String getImage() {
96
        return image;
97
    }
98
 
99
    public void setImage(String image) {
100
        this.image = image;
101
    }
102
 
103
    public int getPosition() {
104
        return position;
105
    }
106
 
107
    public void setPosition(int position) {
108
        this.position = position;
109
    }
110
 
111
    public int getTotalSlides() {
112
        return totalSlides;
113
    }
114
 
115
    public void setTotalSlides(int totalSlides) {
116
        this.totalSlides = totalSlides;
117
    }
118
 
119
    public int getViewSlides() {
120
        return viewSlides;
121
    }
122
 
123
    public void setViewSlides(int viewSlides) {
124
        this.viewSlides = viewSlides;
125
    }
126
 
127
    public double getProgress() {
128
        return progress;
129
    }
130
 
131
    public void setProgress(double progress) {
132
        this.progress = progress;
133
    }
134
 
135
    public int getCompleted() {
136
        return completed;
137
    }
138
 
139
    public void setCompleted(int completed) {
140
        this.completed = completed;
141
    }
142
 
143
    public String getAddedOn() {
144
        return addedOn;
145
    }
146
 
147
    public void setAddedOn(String addedOn) {
148
        this.addedOn = addedOn;
149
    }
150
 
151
    public String getUpdatedOn() {
152
        return updatedOn;
153
    }
154
 
155
    public void setUpdatedOn(String updatedOn) {
156
        this.updatedOn = updatedOn;
157
    }
158
 
14 gabriel 159
    public String getLink_comments() {
160
        return link_comments;
161
    }
1 gabriel 162
 
14 gabriel 163
    public void setLink_comments(String link_comments) {
164
        this.link_comments = link_comments;
165
    }
1 gabriel 166
 
14 gabriel 167
    public String getLink_comment_add() {
168
        return link_comment_add;
169
    }
1 gabriel 170
 
14 gabriel 171
    public void setLink_comment_add(String link_comment_add) {
172
        this.link_comment_add = link_comment_add;
173
    }
174
 
175
    public int getTotal_comments() {
176
        return total_comments;
177
    }
178
 
179
    public void setTotal_comments(int total_comments) {
180
        this.total_comments = total_comments;
181
    }
182
 
183
    public int getTotal_rating() {
184
        return total_rating;
185
    }
186
 
187
    public void setTotal_rating(int total_rating) {
188
        this.total_rating = total_rating;
189
    }
190
 
191
 
192
    public Capsule(String uuid, String topicUuid, String name, String description, String image, int position, String addedOn, String updatedOn, String link_comments, String link_comment_add, int total_comments, int total_rating) {
1 gabriel 193
        this.uuid = uuid;
194
        this.topicUuid = topicUuid;
195
        this.name = name;
196
        this.description = description;
197
        this.image = image;
198
        this.position = position;
199
        this.addedOn = addedOn;
200
        this.updatedOn = updatedOn;
14 gabriel 201
        this.link_comments = link_comments;
202
        this.link_comment_add = link_comment_add;
203
        this.total_comments = total_comments;
204
        this.total_rating = total_rating;
1 gabriel 205
 
206
    }
207
 
208
    @Ignore
209
    public Capsule() {
210
        this.uuid = "";
211
        this.topicUuid = "";
212
        this.name = "";
213
        this.description = "";
214
        this.image = "";
215
        this.position = 0;
216
        this.addedOn = "";
217
        this.updatedOn= "";
14 gabriel 218
        this.link_comments ="";
219
        this.link_comment_add="";
220
        this.total_comments=0;
221
        this.total_rating=0;
1 gabriel 222
    }
223
}