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 {
// Properties
String title;
String description;
Drawable icon;
ListItemType itemType;
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.description = description;
this.icon = icon;
this.itemType = itemType;
this.itemId = itemId;
}
// Getter
public String getTitle() {
return title;
}
@ -24,8 +30,8 @@ public class ListItem {
return description;
}
public Drawable getIcon() {
return icon;
public ListItemType getItemType() {
return itemType;
}
public String getItemId() {