Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

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