Proyectos de Subversion Android Microlearning - Inconcert

Rev

Rev 14 | Ir a la última revisión | | 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
 
39
    @Ignore
40
    private int totalSlides;
41
 
42
    @Ignore
43
    private int viewSlides;
44
 
45
    @Ignore
46
    private double progress;
47
 
48
    @Ignore
49
    private int completed;
50
 
51
    public String getUuid() {
52
        return uuid;
53
    }
54
 
55
    public void setUuid(String uuid) {
56
        this.uuid = uuid;
57
    }
58
 
59
    public String getTopicUuid() {
60
        return topicUuid;
61
    }
62
 
63
    public void setTopicUuid(String topicUuid) {
64
        this.topicUuid = topicUuid;
65
    }
66
 
67
    public String getName() {
68
        return name;
69
    }
70
 
71
    public void setName(String name) {
72
        this.name = name;
73
    }
74
 
75
    public String getDescription() {
76
        return description;
77
    }
78
 
79
    public void setDescription(String description) {
80
        this.description = description;
81
    }
82
 
83
    public String getImage() {
84
        return image;
85
    }
86
 
87
    public void setImage(String image) {
88
        this.image = image;
89
    }
90
 
91
    public int getPosition() {
92
        return position;
93
    }
94
 
95
    public void setPosition(int position) {
96
        this.position = position;
97
    }
98
 
99
    public int getTotalSlides() {
100
        return totalSlides;
101
    }
102
 
103
    public void setTotalSlides(int totalSlides) {
104
        this.totalSlides = totalSlides;
105
    }
106
 
107
    public int getViewSlides() {
108
        return viewSlides;
109
    }
110
 
111
    public void setViewSlides(int viewSlides) {
112
        this.viewSlides = viewSlides;
113
    }
114
 
115
    public double getProgress() {
116
        return progress;
117
    }
118
 
119
    public void setProgress(double progress) {
120
        this.progress = progress;
121
    }
122
 
123
    public int getCompleted() {
124
        return completed;
125
    }
126
 
127
    public void setCompleted(int completed) {
128
        this.completed = completed;
129
    }
130
 
131
    public String getAddedOn() {
132
        return addedOn;
133
    }
134
 
135
    public void setAddedOn(String addedOn) {
136
        this.addedOn = addedOn;
137
    }
138
 
139
    public String getUpdatedOn() {
140
        return updatedOn;
141
    }
142
 
143
    public void setUpdatedOn(String updatedOn) {
144
        this.updatedOn = updatedOn;
145
    }
146
 
147
 
148
 
149
 
150
    public Capsule(String uuid, String topicUuid, String name, String description, String image, int position, String addedOn, String updatedOn) {
151
        this.uuid = uuid;
152
        this.topicUuid = topicUuid;
153
        this.name = name;
154
        this.description = description;
155
        this.image = image;
156
        this.position = position;
157
        this.addedOn = addedOn;
158
        this.updatedOn = updatedOn;
159
 
160
    }
161
 
162
    @Ignore
163
    public Capsule() {
164
        this.uuid = "";
165
        this.topicUuid = "";
166
        this.name = "";
167
        this.description = "";
168
        this.image = "";
169
        this.position = 0;
170
        this.addedOn = "";
171
        this.updatedOn= "";
172
    }
173
}