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_questions")
11
public class Question {
12
 
13
    @PrimaryKey
14
    @ColumnInfo(name = "uuid")
15
    @NotNull
16
    private String uuid;
17
 
18
    @ColumnInfo(name = "quiz_uuid")
19
    private String quizUuid;
20
 
21
    @ColumnInfo(name = "text")
22
    private String text;
23
 
24
    @ColumnInfo(name = "type")
25
    private String type;
26
 
27
    @ColumnInfo(name = "points")
28
    private int points;
29
 
30
    @ColumnInfo(name = "position")
31
    private int position;
32
 
33
    @ColumnInfo(name = "max_length")
34
    private int maxlength;
35
 
36
    public String getUuid() {
37
        return uuid;
38
    }
39
 
40
    public void setUuid(String uuid) {
41
        this.uuid = uuid;
42
    }
43
 
44
    public String getQuizUuid() {
45
        return quizUuid;
46
    }
47
 
48
    public void setQuizUuid(String quizUuid) {
49
        this.quizUuid = quizUuid;
50
    }
51
 
52
    public String getText() {
53
        return text;
54
    }
55
 
56
    public void setText(String text) {
57
        this.text = text;
58
    }
59
 
60
    public String getType() {
61
        return type;
62
    }
63
 
64
    public void setType(String type) {
65
        this.type = type;
66
    }
67
 
68
    public int getPoints() {
69
        return points;
70
    }
71
 
72
    public void setPoints(int points) {
73
        this.points = points;
74
    }
75
 
76
    public int getPosition() {
77
        return position;
78
    }
79
 
80
    public void setPosition(int position) {
81
        this.position = position;
82
    }
83
 
84
    public int getMaxlength() {
85
        return maxlength;
86
    }
87
 
88
    public void setMaxlength(int maxlength) {
89
        this.maxlength = maxlength;
90
    }
91
 
92
    public Question( String uuid, String quizUuid, String text, String type,
93
                     int points, int position, int maxlength) {
94
        this.uuid = uuid;
95
        this.quizUuid = quizUuid;
96
        this.text = text;
97
        this.type = type;
98
        this.points = points;
99
        this.position = position;
100
        this.maxlength = maxlength;
101
    }
102
 
103
    @Ignore
104
    public Question( ) {
105
        this.uuid = "";
106
        this.quizUuid = "";
107
        this.text = "";
108
        this.type = "";
109
        this.points = 0;
110
        this.position = 0;
111
        this.maxlength = 0;
112
    }
113
 
114
}