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

This commit is contained in:
ろむねこ 2024-01-11 14:52:30 +09:00
parent b7f55ef0db
commit 19dfa070fd
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -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;
}
} }