ListItemにtagListを追加

This commit is contained in:
r-ca 2024-01-28 16:40:24 +09:00
parent 45c2b5f0fb
commit 10621d2935
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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<DocumentTag> 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<DocumentTag> 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<DocumentTag> getTagList() {
return tagList;
}
// Setter
public void setTitle(String title) {
@ -77,4 +95,7 @@ public class ListItem {
this.hasCombined = hasCombined;
}
public void setTagList(ArrayList<DocumentTag> tagList) {
this.tagList = tagList;
}
}