ListItemモデル作成, コンストラクタ定義, Getter

This commit is contained in:
r-ca committed 2024-01-11 14:52:30 +09:00
1 parent b7f55ef0db
commit 19dfa070fd
1 file changed
+31
@@ -1,4 +1,35 @@
package one.nem.lacerta.model; package one.nem.lacerta.model;
import android.graphics.drawable.Drawable;
public class ListItem { public class ListItem {
String title;
String description;
Drawable icon;
String itemId;
public ListItem(String title, String description, Drawable icon, String itemId) {
this.title = title;
this.description = description;
this.icon = icon;
this.itemId = itemId;
}
public String getTitle() {
return title;
}
public String getDescription() {
return description;
}
public Drawable getIcon() {
return icon;
}
public String getItemId() {
return itemId;
}
} }