AutorÃa | Ultima modificación | Ver Log |
package com.cesams.twogetskills.entity;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
import org.jetbrains.annotations.NotNull;
@Entity(tableName = "tb_questions")
public class Question {
@PrimaryKey
@ColumnInfo(name = "uuid")
@NotNull
private String uuid;
@ColumnInfo(name = "quiz_uuid")
private String quizUuid;
@ColumnInfo(name = "text")
private String text;
@ColumnInfo(name = "type")
private String type;
@ColumnInfo(name = "points")
private int points;
@ColumnInfo(name = "position")
private int position;
@ColumnInfo(name = "max_length")
private int maxlength;
public String getUuid() {
return uuid;
}
public void setUuid(String uuid) {
this.uuid = uuid;
}
public String getQuizUuid() {
return quizUuid;
}
public void setQuizUuid(String quizUuid) {
this.quizUuid = quizUuid;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public int getPoints() {
return points;
}
public void setPoints(int points) {
this.points = points;
}
public int getPosition() {
return position;
}
public void setPosition(int position) {
this.position = position;
}
public int getMaxlength() {
return maxlength;
}
public void setMaxlength(int maxlength) {
this.maxlength = maxlength;
}
public Question( String uuid, String quizUuid, String text, String type,
int points, int position, int maxlength) {
this.uuid = uuid;
this.quizUuid = quizUuid;
this.text = text;
this.type = type;
this.points = points;
this.position = position;
this.maxlength = maxlength;
}
@Ignore
public Question( ) {
this.uuid = "";
this.quizUuid = "";
this.text = "";
this.type = "";
this.points = 0;
this.position = 0;
this.maxlength = 0;
}
}