Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

Rev 11 | Rev 26 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 19
Línea 8... Línea 8...
8
import org.jetbrains.annotations.NotNull;
8
import org.jetbrains.annotations.NotNull;
Línea 9... Línea 9...
9
 
9
 
10
@Entity(tableName = "tb_notification")
10
@Entity(tableName = "tb_notification")
Línea 11... Línea 11...
11
public class NotificationCenter {
11
public class NotificationCenter {
12
 
12
 
13
    @PrimaryKey
-
 
14
    @ColumnInfo(name = "uuid")
13
    @PrimaryKey(autoGenerate = true)
Línea 15... Línea 14...
15
    @NotNull
14
    @ColumnInfo(name = "id")
16
    private String uuid;
15
    private long id;
Línea 17... Línea 16...
17
 
16
 
18
    @ColumnInfo(name = "title")
17
    @ColumnInfo(name = "title")
Línea 19... Línea 18...
19
    private String title;
18
    private String title;
20
 
19
 
Línea -... Línea 20...
-
 
20
    @ColumnInfo(name = "date")
21
    @ColumnInfo(name = "date")
21
    private String date;
22
    private String date;
22
 
23
 
23
    @ColumnInfo(name = "description")
Línea 24... Línea 24...
24
    @ColumnInfo(name = "description")
24
    private String description;
25
    private String description;
25
 
26
 
26
 
Línea 27... Línea 27...
27
    public String getUuid() {
27
    public long getId() {
28
        return uuid;
28
        return id;
29
    }
29
    }
Línea 55... Línea 55...
55
    public void setDescription(String description) {
55
    public void setDescription(String description) {
56
        this.description = description;
56
        this.description = description;
57
    }
57
    }
Línea 58... Línea 58...
58
 
58
 
59
 
59
 
60
    public NotificationCenter(String uuid, String title, String date, String description) {
60
    public NotificationCenter(long id, String title, String date, String description) {
61
        this.uuid = uuid;
61
        this.id= id;
62
        this.title = title;
62
        this.title = title;
Línea 63... Línea 63...
63
        this.date = date;
63
        this.date = date;
Línea 64... Línea 64...
64
        this.description = description;
64
        this.description = description;
65
 
65
 
66
    }
-
 
-
 
66
    }
67
 
67
 
68
    @Ignore
68
    @Ignore
69
    public NotificationCenter() {
69
    public NotificationCenter() {
Línea 70... Línea 70...
70
        this.uuid = "";
70