Proyectos de Subversion Android Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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_slides")
11
public class Slide {
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 = "capsule_uuid")
22
    private String capsuleUuid;
23
 
24
    @ColumnInfo(name = "quiz_uuid")
25
    private String quizUuid;
26
 
27
    @ColumnInfo(name = "name")
28
    private String name;
29
 
30
    @ColumnInfo(name = "description")
31
    private String description;
32
 
33
    @ColumnInfo(name = "type")
34
    private String type;
35
 
36
    @ColumnInfo(name = "file")
37
    private String file;
38
 
39
    @ColumnInfo(name = "background")
40
    private String background;
41
 
42
    @ColumnInfo(name = "position")
43
    private int position;
44
 
45
    @Ignore
46
    private int completed;
47
 
48
    @Ignore
49
    private boolean showFinish;
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 getCapsuleUuid() {
68
        return capsuleUuid;
69
    }
70
 
71
    public void setCapsuleUuid(String capsuleUuid) {
72
        this.capsuleUuid = capsuleUuid;
73
    }
74
 
75
    public String getQuizUuid() {
76
        return quizUuid;
77
    }
78
 
79
    public void setQuizUuid(String quizUuid) {
80
        this.quizUuid = quizUuid;
81
    }
82
 
83
    public String getName() {
84
        return name;
85
    }
86
 
87
    public void setName(String name) {
88
        this.name = name;
89
    }
90
 
91
    public String getDescription() {
92
        return description;
93
    }
94
 
95
    public void setDescription(String description) {
96
        this.description = description;
97
    }
98
 
99
    public String getType() {
100
        return type;
101
    }
102
 
103
    public void setType(String type) {
104
        this.type = type;
105
    }
106
 
107
    public String getFile() {
108
        return file;
109
    }
110
 
111
    public void setFile(String file) {
112
        this.file = file;
113
    }
114
 
115
    public String getBackground() {
116
        return background;
117
    }
118
 
119
    public void setBackground(String background) {
120
        this.background = background;
121
    }
122
 
123
    public int getPosition() {
124
        return position;
125
    }
126
 
127
    public void setPosition(int position) {
128
        this.position = position;
129
    }
130
 
131
    public int getCompleted() {
132
        return completed;
133
    }
134
 
135
    public void setCompleted(int completed) {
136
        this.completed = completed;
137
    }
138
 
139
    public boolean isShowFinish() {
140
        return showFinish;
141
    }
142
 
143
    public void setShowFinish(boolean showFinish) {
144
        this.showFinish = showFinish;
145
    }
146
 
147
    public Slide(String uuid, String topicUuid, String capsuleUuid, String quizUuid,
148
                 String name, String description, String type, String file,
149
                 String background, int position) {
150
        this.uuid = uuid;
151
        this.topicUuid = topicUuid;
152
        this.capsuleUuid = capsuleUuid;
153
        this.quizUuid = quizUuid;
154
        this.name = name;
155
        this.description = description;
156
        this.type = type;
157
        this.file = file;
158
        this.background = background;
159
        this.position = position;
160
 
161
    }
162
 
163
    @Ignore
164
    public Slide() {
165
        this.uuid = "";
166
        this.topicUuid = "";
167
        this.capsuleUuid = "";
168
        this.quizUuid = "";
169
        this.name = "";
170
        this.description = "";
171
        this.type = "";
172
        this.file = "";
173
        this.background = "";
174
        this.position = 0;
175
 
176
    }
177
}