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