Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

Rev 19 | 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
 
26 gabriel 26
    @ColumnInfo(name = "viewed")
27
    private String viewed;
19 gabriel 28
 
26 gabriel 29
 
19 gabriel 30
    public long getId() {
31
        return id;
11 gabriel 32
    }
33
 
19 gabriel 34
    public void setId(long id) {
35
        this.id = id;
11 gabriel 36
    }
37
 
38
    public String getTitle() {
39
        return title;
40
    }
41
 
42
    public void setTitle(String title) {
43
        this.title = title;
44
    }
45
 
46
    public String getDate() {
47
        return date;
48
    }
49
 
50
    public void setDate(String date) {
51
        this.date = date;
52
    }
53
 
54
    public String getDescription() {
55
        return description;
56
    }
57
 
58
    public void setDescription(String description) {
59
        this.description = description;
60
    }
61
 
26 gabriel 62
    public String getViewed() {
63
        return viewed;
64
    }
11 gabriel 65
 
26 gabriel 66
    public void setViewed(String viewed) {
67
        this.viewed = viewed;
68
    }
69
 
70
 
71
    public NotificationCenter(long id, String title, String date, String description, String viewed) {
19 gabriel 72
        this.id= id;
11 gabriel 73
        this.title = title;
74
        this.date = date;
75
        this.description = description;
26 gabriel 76
        this.viewed = viewed;
11 gabriel 77
 
78
    }
79
 
80
    @Ignore
81
    public NotificationCenter() {
19 gabriel 82
 
11 gabriel 83
        this.title = "";
84
        this.date = "";
85
        this.description = "";
26 gabriel 86
        this.viewed="";
11 gabriel 87
    }
88
}