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
import org.jetbrains.annotations.Nullable;
10
 
11
@Entity(tableName = "tb_answers")
12
public class Answer  implements Cloneable {
13
 
14
    @PrimaryKey
15
    @ColumnInfo(name = "uuid")
16
    @NotNull
17
    private String uuid;
18
 
19
    @ColumnInfo(name = "question_uuid")
20
    private String questionUuid;
21
 
22
    @ColumnInfo(name = "text")
23
    private String text;
24
 
25
    @ColumnInfo(name = "points")
26
    private int points;
27
 
28
    @ColumnInfo(name = "correct")
29
    private String correct;
30
 
31
    public String getUuid() {
32
        return uuid;
33
    }
34
 
35
    public void setUuid(String uuid) {
36
        this.uuid = uuid;
37
    }
38
 
39
    public String getQuestionUuid() {
40
        return questionUuid;
41
    }
42
 
43
    public void setQuestionUuid(String questionUuid) {
44
        this.questionUuid = questionUuid;
45
    }
46
 
47
    public String getText() {
48
        return text;
49
    }
50
 
51
    public void setText(String text) {
52
        this.text = text;
53
    }
54
 
55
    public int getPoints() {
56
        return points;
57
    }
58
 
59
    public void setPoints(int points) {
60
        this.points = points;
61
    }
62
 
63
    public String getCorrect() {
64
        return correct;
65
    }
66
 
67
    public void setCorrect(String correct) {
68
        this.correct = correct;
69
    }
70
 
71
    public Answer(String uuid, String questionUuid, String text, int points, String correct) {
72
        this.uuid = uuid;
73
        this.questionUuid = questionUuid;
74
        this.text = text;
75
        this.points = points;
76
        this.correct = correct;
77
    }
78
 
79
    @Ignore
80
    public Answer() {
81
        this.uuid = "";
82
        this.questionUuid = "";
83
        this.text = "";
84
        this.points = 0;
85
        this.correct = "";
86
    }
87
 
88
 
89
 
90
    @Override
91
   public Object clone() throws CloneNotSupportedException {
92
// TODO Auto-generated method stub
93
        return super.clone();
94
    }
95
}