Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

Rev 21 | Rev 24 | 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.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
 
21 gabriel 33
    @ColumnInfo(name="added_on")
34
    private String addedOn;
35
 
36
    @ColumnInfo(name="updated_on")
37
    private String updatedOn;
38
 
23 gabriel 39
    @ColumnInfo(name="started_on")
40
    private String startedOn;
41
 
42
    @ColumnInfo(name="finalized_on")
43
    private String finalizedOn;
44
 
1 gabriel 45
    @Ignore
46
    private int totalSlides;
47
 
48
    @Ignore
49
    private int viewSlides;
50
 
51
    @Ignore
52
    private double progress;
53
 
54
    @Ignore
55
    private int completed;
56
 
57
    public String getUuid() {
58
        return uuid;
59
    }
60
 
61
    public void setUuid(String uuid) {
62
        this.uuid = uuid;
63
    }
64
 
65
    public String getTopicUuid() {
66
        return topicUuid;
67
    }
68
 
69
    public void setTopicUuid(String topicUuid) {
70
        this.topicUuid = topicUuid;
71
    }
72
 
73
    public String getName() {
74
        return name;
75
    }
76
 
77
    public void setName(String name) {
78
        this.name = name;
79
    }
80
 
81
    public String getDescription() {
82
        return description;
83
    }
84
 
85
    public void setDescription(String description) {
86
        this.description = description;
87
    }
88
 
89
    public String getImage() {
90
        return image;
91
    }
92
 
93
    public void setImage(String image) {
94
        this.image = image;
95
    }
96
 
97
    public int getPosition() {
98
        return position;
99
    }
100
 
101
    public void setPosition(int position) {
102
        this.position = position;
103
    }
104
 
105
    public int getTotalSlides() {
106
        return totalSlides;
107
    }
108
 
109
    public void setTotalSlides(int totalSlides) {
110
        this.totalSlides = totalSlides;
111
    }
112
 
113
    public int getViewSlides() {
114
        return viewSlides;
115
    }
116
 
117
    public void setViewSlides(int viewSlides) {
118
        this.viewSlides = viewSlides;
119
    }
120
 
121
    public double getProgress() {
122
        return progress;
123
    }
124
 
125
    public void setProgress(double progress) {
126
        this.progress = progress;
127
    }
128
 
129
    public int getCompleted() {
130
        return completed;
131
    }
132
 
133
    public void setCompleted(int completed) {
134
        this.completed = completed;
135
    }
136
 
21 gabriel 137
    public String getAddedOn() {
138
        return addedOn;
139
    }
140
 
141
    public void setAddedOn(String addedOn) {
142
        this.addedOn = addedOn;
143
    }
144
 
145
    public String getUpdatedOn() {
146
        return updatedOn;
147
    }
148
 
149
    public void setUpdatedOn(String updatedOn) {
150
        this.updatedOn = updatedOn;
151
    }
152
 
23 gabriel 153
    public String getStartedOn() {
154
        return startedOn;
155
    }
156
 
157
    public void setStartedOn(String startedOn) {
158
        this.startedOn = startedOn;
159
    }
160
 
161
    public String getFinalizedOn() {return finalizedOn; }
162
 
163
    public void setFinalizedOn(String finalizedOn) {
164
        this.finalizedOn = finalizedOn;
165
    }
166
 
167
 
168
 
169
    public Capsule(String uuid, String topicUuid, String name, String description, String image, int position, String addedOn, String updatedOn, String startedOn, String finalizedOn) {
1 gabriel 170
        this.uuid = uuid;
171
        this.topicUuid = topicUuid;
172
        this.name = name;
173
        this.description = description;
174
        this.image = image;
175
        this.position = position;
21 gabriel 176
        this.addedOn = addedOn;
177
        this.updatedOn = updatedOn;
23 gabriel 178
        this.startedOn = startedOn;
179
        this.finalizedOn = finalizedOn;
1 gabriel 180
    }
181
 
182
    @Ignore
183
    public Capsule() {
184
        this.uuid = "";
185
        this.topicUuid = "";
186
        this.name = "";
187
        this.description = "";
188
        this.image = "";
189
        this.position = 0;
21 gabriel 190
        this.addedOn = "";
191
        this.updatedOn= "";
23 gabriel 192
        this.startedOn= "";
193
        this.finalizedOn= "";
1 gabriel 194
    }
195
}