From 10621d2935749e60187cb1e88023769ef1bace66 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 28 Jan 2024 16:40:24 +0900 Subject: [PATCH] =?UTF-8?q?ListItem=E3=81=ABtagList=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 | 21 +++++++++++++++++++ 1 file changed, 21 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 b987b616..533aee20 100644 --- a/model/src/main/java/one/nem/lacerta/model/ListItem.java +++ b/model/src/main/java/one/nem/lacerta/model/ListItem.java @@ -2,6 +2,10 @@ package one.nem.lacerta.model; import android.graphics.drawable.Drawable; +import java.util.ArrayList; + +import one.nem.lacerta.model.document.tag.DocumentTag; + public class ListItem { // Properties @@ -11,6 +15,7 @@ public class ListItem { ListItemType itemType; String itemId; boolean hasCombined; + ArrayList tagList; // Constructor @@ -29,6 +34,15 @@ public class ListItem { this.hasCombined = hasCombined; } + public ListItem(String title, String description, ListItemType itemType, String itemId,boolean hasCombined, ArrayList tagList) { + this.title = title; + this.description = description; + this.itemType = itemType; + this.itemId = itemId; + this.hasCombined = hasCombined; + this.tagList = tagList; + } + public ListItem() { // Empty constructor } @@ -55,6 +69,10 @@ public class ListItem { return hasCombined; } + public ArrayList getTagList() { + return tagList; + } + // Setter public void setTitle(String title) { @@ -77,4 +95,7 @@ public class ListItem { this.hasCombined = hasCombined; } + public void setTagList(ArrayList tagList) { + this.tagList = tagList; + } }