From 68f2ba3b591c07e43abb04969574c3ff8ba85b43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 11 Jan 2024 14:55:06 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/one/nem/lacerta/model/ListItem.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/model/src/main/java/one/nem/lacerta/model/ListItem.java b/model/src/main/java/one/nem/lacerta/model/ListItem.java index c0120245..231438c8 100644 --- a/model/src/main/java/one/nem/lacerta/model/ListItem.java +++ b/model/src/main/java/one/nem/lacerta/model/ListItem.java @@ -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() {