Proyectos de Subversion Android Microlearning - Inconcert

Rev

| 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.Entity;
4
import androidx.room.ColumnInfo;
5
import androidx.room.PrimaryKey;
6
import androidx.room.Ignore;
7
 
8
import org.jetbrains.annotations.NotNull;
9
 
10
@Entity(tableName = "tb_topics")
11
public class Topic {
12
    @PrimaryKey
13
    @ColumnInfo(name = "uuid")
14
    @NotNull
15
    private String uuid;
16
 
17
    @ColumnInfo(name = "company_uuid")
18
    private String companyUuid;
19
 
20
    @ColumnInfo(name = "name")
21
    private String name;
22
 
23
    @ColumnInfo(name = "description")
24
    private String description;
25
 
26
    @ColumnInfo(name = "image")
27
    private String image;
28
 
29
    @ColumnInfo(name = "position")
30
    private int position;
31
 
32
    @ColumnInfo(name="added_on")
33
    private String addedOn;
34
 
35
    @ColumnInfo(name="updated_on")
36
    private String updatedOn;
37
 
38
    @Ignore
39
    private int totalSlides;
40
 
41
    @Ignore
42
    private int viewSlides;
43
 
44
    @Ignore
45
    private double progress;
46
 
47
    @Ignore
48
    private int completed;
49
 
50
    public String getUuid() {
51
        return uuid;
52
    }
53
 
54
    public void setUuid(String uuid) {
55
        this.uuid = uuid;
56
    }
57
 
58
    public String getCompanyUuid() {
59
        return companyUuid;
60
    }
61
 
62
    public void setCompanyUuid(String companyUuid) {
63
        this.companyUuid = companyUuid;
64
    }
65
 
66
    public String getName() {
67
        return name;
68
    }
69
 
70
    public void setName(String name) {
71
        this.name = name;
72
    }
73
 
74
    public String getDescription() {
75
        return description;
76
    }
77
 
78
    public void setDescription(String description) {
79
        this.description = description;
80
    }
81
 
82
    public String getImage() {
83
        return image;
84
    }
85
 
86
    public void setImage(String image) {
87
        this.image = image;
88
    }
89
 
90
    public int getPosition() {
91
        return position;
92
    }
93
 
94
    public void setPosition(int position) {
95
        this.position = position;
96
    }
97
 
98
    public int getTotalSlides() {
99
        return totalSlides;
100
    }
101
 
102
    public void setTotalSlides(int totalSlides) {
103
        this.totalSlides = totalSlides;
104
    }
105
 
106
    public int getViewSlides() {
107
        return viewSlides;
108
    }
109
 
110
    public void setViewSlides(int viewSlides) {
111
        this.viewSlides = viewSlides;
112
    }
113
 
114
    public double getProgress() {
115
        return progress;
116
    }
117
 
118
    public void setProgress(double progress) {
119
        this.progress = progress;
120
    }
121
 
122
    public int getCompleted() {
123
        return completed;
124
    }
125
 
126
    public void setCompleted(int completed) {
127
        this.completed = completed;
128
    }
129
 
130
    public String getAddedOn() {
131
        return addedOn;
132
    }
133
 
134
    public void setAddedOn(String addedOn) {
135
        this.addedOn = addedOn;
136
    }
137
 
138
    public String getUpdatedOn() {
139
        return updatedOn;
140
    }
141
 
142
    public void setUpdatedOn(String updatedOn) {
143
        this.updatedOn = updatedOn;
144
    }
145
 
146
    public Topic(String uuid, String companyUuid, String name, String description,
147
                   String image, int position, String addedOn, String updatedOn) {
148
 
149
        this.uuid = uuid;
150
        this.companyUuid = companyUuid;
151
        this.name = name;
152
        this.description = description;
153
        this.image = image;
154
        this.position = position;
155
        this.addedOn = addedOn;
156
        this.updatedOn = updatedOn;
157
    }
158
 
159
    @Ignore
160
    public Topic() {
161
 
162
        this.uuid = "";
163
        this.companyUuid = "";
164
        this.name = "";
165
        this.description = "";
166
        this.image = "";
167
        this.position = 0;
168
        this.addedOn = "";
169
        this.updatedOn = "";
170
    }
171
}