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
@Entity(tableName = "tb_notification")
9
public class NotificationCenter {
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 = "date")
19
    private String date;
20
 
21
    @ColumnInfo(name = "description")
22
    private String description;
23
 
24
    @ColumnInfo(name = "viewed")
25
    private String viewed;
26
 
27
    @ColumnInfo(name = "url")
28
    private String url;
29
 
30
    public long getId() {
31
        return id;
32
    }
33
 
34
    public void setId(long id) {
35
        this.id = id;
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
 
62
    public String getUrl() {
63
        return url;
64
    }
65
 
66
    public void setUrl(String url) {
67
        this.url = url;
68
    }
69
 
70
    public String getViewed() {
71
        return viewed;
72
    }
73
 
74
    public void setViewed(String viewed) {
75
        this.viewed = viewed;
76
    }
77
 
78
    public NotificationCenter(long id, String title, String date, String description, String viewed, String url) {
79
        this.id= id;
80
        this.title = title;
81
        this.date = date;
82
        this.description = description;
83
        this.viewed = viewed;
84
        this.url = url;
85
 
86
    }
87
 
88
    @Ignore
89
    public NotificationCenter() {
90
 
91
        this.title = "";
92
        this.date = "";
93
        this.description = "";
94
        this.viewed="";
95
        this.url="";
96
    }
97
}