Proyectos de Subversion Android Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
package com.cesams.twogetskills.entity;
2
 
3
import androidx.room.Entity;
4
import androidx.room.ColumnInfo;
5
import androidx.room.Ignore;
6
import androidx.room.PrimaryKey;
7
 
8
@Entity(tableName = "tb_sync")
9
public class Sync {
10
 
11
    @PrimaryKey(autoGenerate = true)
12
    @ColumnInfo(name = "id")
13
    private long id;
14
 
15
    @ColumnInfo(name = "type")
16
    private int type;
17
 
18
    @ColumnInfo(name = "data")
19
    private String data;
20
 
21
    public void setId(long id) {
22
        this.id = id;
23
    }
24
 
25
    public long getId() {
26
        return id;
27
    }
28
 
29
 
30
    public int getType() {
31
        return type;
32
    }
33
 
34
    public void setType(int type) {
35
        this.type = type;
36
    }
37
 
38
    public String getData() {
39
        return data;
40
    }
41
 
42
    public void setData(String data) {
43
        this.data = data;
44
    }
45
 
46
    public Sync(long id, int type, String data) {
47
        this.id = id;
48
        this.type = type;
49
        this.data = data;
50
    }
51
 
52
    @Ignore
53
    public Sync(int type, String data) {
54
        this.type = type;
55
        this.data = data;
56
    }
57
}