-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathItems.java
More file actions
85 lines (62 loc) · 1.66 KB
/
Copy pathItems.java
File metadata and controls
85 lines (62 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package com.example.trip_packer.Models;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import java.io.Serializable;
@Entity(tableName = "items")
public class Items implements Serializable {
@PrimaryKey(autoGenerate = true)
int ID=0;
@ColumnInfo(name="itemname")
String itemname;
@ColumnInfo(name="category")
String category;
@ColumnInfo(name="addedby")
String addedby;
@ColumnInfo(name="checked")
Boolean checked=false;
public Items() {
}
public Items(String itemname, String category, Boolean checked) {
this.addedby = "system";
this.itemname = itemname;
this.category = category;
this.checked = checked;
}
public Items(String itemname, String category, String addedby, Boolean checked) {
this.itemname = itemname;
this.category = category;
this.addedby = addedby;
this.checked = checked;
}
public int getID() {
return ID;
}
public void setID(int ID) {
this.ID = ID;
}
public String getItemname() {
return itemname;
}
public void setItemname(String itemname) {
this.itemname = itemname;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getAddedby() {
return addedby;
}
public void setAddedby(String addedby) {
this.addedby = addedby;
}
public Boolean getChecked() {
return checked;
}
public void setChecked(Boolean checked) {
this.checked = checked;
}
}