Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

Rev 11 | Rev 26 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
11 gabriel 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_notification")
11
public class NotificationCenter {
12
 
19 gabriel 13
    @PrimaryKey(autoGenerate = true)
14
    @ColumnInfo(name = "id")
15
    private long id;
11 gabriel 16
 
17
    @ColumnInfo(name = "title")
18
    private String title;
19
 
20
    @ColumnInfo(name = "date")
21
    private String date;
22
 
23
    @ColumnInfo(name = "description")
24
    private String description;
25
 
19 gabriel 26
 
27
    public long getId() {
28
        return id;
11 gabriel 29
    }
30
 
19 gabriel 31
    public void setId(long id) {
32
        this.id = id;
11 gabriel 33
    }
34
 
35
    public String getTitle() {
36
        return title;
37
    }
38
 
39
    public void setTitle(String title) {
40
        this.title = title;
41
    }
42
 
43
    public String getDate() {
44
        return date;
45
    }
46
 
47
    public void setDate(String date) {
48
        this.date = date;
49
    }
50
 
51
    public String getDescription() {
52
        return description;
53
    }
54
 
55
    public void setDescription(String description) {
56
        this.description = description;
57
    }
58
 
59
 
19 gabriel 60
    public NotificationCenter(long id, String title, String date, String description) {
61
        this.id= id;
11 gabriel 62
        this.title = title;
63
        this.date = date;
64
        this.description = description;
65
 
66
    }
67
 
68
    @Ignore
69
    public NotificationCenter() {
19 gabriel 70
 
11 gabriel 71
        this.title = "";
72
        this.date = "";
73
        this.description = "";
74
 
75
    }
76
}