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_quizzes")
11
public class Quiz  {
12
 
13
    @PrimaryKey
14
    @ColumnInfo(name = "uuid")
15
    @NotNull
16
    private String uuid;
17
 
18
    @ColumnInfo(name = "company_uuid")
19
    private String companyUuid;
20
 
21
    @ColumnInfo(name = "name")
22
    private String name;
23
 
24
    @ColumnInfo(name = "text")
25
    private String text;
26
 
27
    @ColumnInfo(name = "failed")
28
    private String failed;
29
 
30
    @ColumnInfo(name = "points")
31
    private int points;
32
 
33
    @ColumnInfo(name = "minimum_points_required")
34
    private int minimumPointsRequired;
35
 
36
    @ColumnInfo(name = "max_time")
37
    private int maxTime;
38
 
39
    public String getUuid() {
40
        return uuid;
41
    }
42
 
43
    public void setUuid(String uuid) {
44
        this.uuid = uuid;
45
    }
46
 
47
    public String getCompanyUuid() {
48
        return companyUuid;
49
    }
50
 
51
    public void setCompanyUuid(String companyUuid) {
52
        this.companyUuid = companyUuid;
53
    }
54
 
55
    public String getName() {
56
        return name;
57
    }
58
 
59
    public void setName(String name) {
60
        this.name = name;
61
    }
62
 
63
    public String getText() {
64
        return text;
65
    }
66
 
67
    public void setText(String text) {
68
        this.text = text;
69
    }
70
 
71
    public String getFailed() {
72
        return failed;
73
    }
74
 
75
    public void setFailed(String failed) {
76
        this.failed = failed;
77
    }
78
 
79
    public int getPoints() {
80
        return points;
81
    }
82
 
83
    public void setPoints(int points) {
84
        this.points = points;
85
    }
86
 
87
    public int getMinimumPointsRequired() {
88
        return minimumPointsRequired;
89
    }
90
 
91
    public void setMinimumPointsRequired(int minimumPointsRequired) {
92
        this.minimumPointsRequired = minimumPointsRequired;
93
    }
94
 
95
    public int getMaxTime() {
96
        return maxTime;
97
    }
98
 
99
    public void setMaxTime(int maxTime) {
100
        this.maxTime = maxTime;
101
    }
102
 
103
    public Quiz(String uuid, String companyUuid, String name, String text,
104
                String failed, int points, int minimumPointsRequired, int maxTime) {
105
 
106
        this.uuid = uuid;
107
        this.companyUuid = companyUuid;
108
        this.name = name;
109
        this.text = text;
110
        this.failed = failed;
111
        this.points = points;
112
        this.minimumPointsRequired = minimumPointsRequired;
113
        this.maxTime = maxTime;
114
 
115
    }
116
 
117
    @Ignore
118
    public Quiz() {
119
 
120
        this.uuid = "";
121
        this.companyUuid = "";
122
        this.name = "";
123
        this.text = "";
124
        this.failed = "";
125
        this.points = 0;
126
        this.minimumPointsRequired = 0;
127
        this.maxTime = 0;
128
 
129
    }
130
}