Proyectos de Subversion Android Microlearning - Inconcert

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
14 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
@Entity(tableName = "learning_config")
9
public class Config {
10
 
11
    @PrimaryKey(autoGenerate = true)
12
    @ColumnInfo(name = "id")
13
    private long id;
14
 
15
    @ColumnInfo(name = "title")
16
    private String title;
17
 
18
    @ColumnInfo(name = "now")
19
    private String now;
20
 
21
 
22
    public long getId() {
23
        return id;
24
    }
25
 
26
    public void setId(long id) {
27
        this.id = id;
28
    }
29
 
30
    public String getTitle() {
31
        return title;
32
    }
33
 
34
    public void setTitle(String title) {
35
        this.title = title;
36
    }
37
 
38
    public String getNow () {return now;}
39
 
40
    public void setNow (String now) {this.now = now;}
41
 
42
 
43
    public Config(long id, String title, String now) {
44
        this.id= id;
45
        this.title = title;
46
        this.now = now;
47
 
48
    }
49
 
50
    @Ignore
51
    public Config() {
52
 
53
        this.title = "";
54
        this.now = "";
55
    }
56
}