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_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
    @Ignore
34
    private int totalSlides;
35
 
36
    @Ignore
37
    private int viewSlides;
38
 
39
    @Ignore
40
    private double progress;
41
 
42
    @Ignore
43
    private int completed;
44
 
45
    public String getUuid() {
46
        return uuid;
47
    }
48
 
49
    public void setUuid(String uuid) {
50
        this.uuid = uuid;
51
    }
52
 
53
    public String getTopicUuid() {
54
        return topicUuid;
55
    }
56
 
57
    public void setTopicUuid(String topicUuid) {
58
        this.topicUuid = topicUuid;
59
    }
60
 
61
    public String getName() {
62
        return name;
63
    }
64
 
65
    public void setName(String name) {
66
        this.name = name;
67
    }
68
 
69
    public String getDescription() {
70
        return description;
71
    }
72
 
73
    public void setDescription(String description) {
74
        this.description = description;
75
    }
76
 
77
    public String getImage() {
78
        return image;
79
    }
80
 
81
    public void setImage(String image) {
82
        this.image = image;
83
    }
84
 
85
    public int getPosition() {
86
        return position;
87
    }
88
 
89
    public void setPosition(int position) {
90
        this.position = position;
91
    }
92
 
93
    public int getTotalSlides() {
94
        return totalSlides;
95
    }
96
 
97
    public void setTotalSlides(int totalSlides) {
98
        this.totalSlides = totalSlides;
99
    }
100
 
101
    public int getViewSlides() {
102
        return viewSlides;
103
    }
104
 
105
    public void setViewSlides(int viewSlides) {
106
        this.viewSlides = viewSlides;
107
    }
108
 
109
    public double getProgress() {
110
        return progress;
111
    }
112
 
113
    public void setProgress(double progress) {
114
        this.progress = progress;
115
    }
116
 
117
    public int getCompleted() {
118
        return completed;
119
    }
120
 
121
    public void setCompleted(int completed) {
122
        this.completed = completed;
123
    }
124
 
125
    public Capsule(String uuid, String topicUuid, String name, String description, String image, int position) {
126
        this.uuid = uuid;
127
        this.topicUuid = topicUuid;
128
        this.name = name;
129
        this.description = description;
130
        this.image = image;
131
        this.position = position;
132
 
133
    }
134
 
135
    @Ignore
136
    public Capsule() {
137
        this.uuid = "";
138
        this.topicUuid = "";
139
        this.name = "";
140
        this.description = "";
141
        this.image = "";
142
        this.position = 0;
143
 
144
    }
145
}