From b86843bd570ecee3f69bcc30fbf5de3119f3210b Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 28 Jan 2024 13:46:03 +0900 Subject: [PATCH] =?UTF-8?q?ListItem=E3=81=ABisCombined=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/one/nem/lacerta/model/ListItem.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 323b6bdd..d1d67afa 100644 --- a/model/src/main/java/one/nem/lacerta/model/ListItem.java +++ b/model/src/main/java/one/nem/lacerta/model/ListItem.java @@ -10,6 +10,7 @@ public class ListItem { String description; ListItemType itemType; String itemId; + boolean isCombined; // Constructor @@ -20,6 +21,14 @@ public class ListItem { this.itemId = itemId; } + public ListItem(String title, String description, ListItemType itemType, String itemId, boolean isCombined) { + this.title = title; + this.description = description; + this.itemType = itemType; + this.itemId = itemId; + this.isCombined = isCombined; + } + public ListItem() { // Empty constructor } @@ -42,6 +51,10 @@ public class ListItem { return itemId; } + public boolean getIsCombined() { + return isCombined; + } + // Setter public void setTitle(String title) { @@ -60,4 +73,8 @@ public class ListItem { this.itemId = itemId; } + public void setIsCombined(boolean isCombined) { + this.isCombined = isCombined; + } + }