This commit is contained in:
ろむねこ 2024-01-11 14:55:06 +09:00
parent 91bbca54ff
commit 68f2ba3b59
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -4,18 +4,24 @@ import android.graphics.drawable.Drawable;
public class ListItem { public class ListItem {
// Properties
String title; String title;
String description; String description;
Drawable icon; ListItemType itemType;
String itemId; String itemId;
public ListItem(String title, String description, Drawable icon, String itemId) { // Constructor
public ListItem(String title, String description, ListItemType itemType, String itemId) {
this.title = title; this.title = title;
this.description = description; this.description = description;
this.icon = icon; this.itemType = itemType;
this.itemId = itemId; this.itemId = itemId;
} }
// Getter
public String getTitle() { public String getTitle() {
return title; return title;
} }
@ -24,8 +30,8 @@ public class ListItem {
return description; return description;
} }
public Drawable getIcon() { public ListItemType getItemType() {
return icon; return itemType;
} }
public String getItemId() { public String getItemId() {