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