Model修正

This commit is contained in:
ろむねこ 2024-01-22 20:03:42 +09:00
parent 253c77d6f5
commit d40b188f87
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -6,14 +6,16 @@ public class LibraryItemPage {
String pageTitle; String pageTitle;
String pageId; String pageId;
String parentId;
ArrayList<ListItem> listItems; ArrayList<ListItem> listItems;
// Constructor // Constructor
public LibraryItemPage(String pageTitle, String pageId, ArrayList<ListItem> listItems) { public LibraryItemPage(String pageTitle, String pageId, ArrayList<ListItem> listItems, String parentId) {
this.pageTitle = pageTitle; this.pageTitle = pageTitle;
this.pageId = pageId; this.pageId = pageId;
this.listItems = listItems; this.listItems = listItems;
this.parentId = parentId;
} }
public LibraryItemPage() { public LibraryItemPage() {
@ -30,6 +32,10 @@ public class LibraryItemPage {
return pageId; return pageId;
} }
public String getParentId() {
return parentId;
}
public ArrayList<ListItem> getListItems() { public ArrayList<ListItem> getListItems() {
return listItems; return listItems;
} }
@ -44,6 +50,10 @@ public class LibraryItemPage {
this.pageId = pageId; this.pageId = pageId;
} }
public void setParentId(String parentId) {
this.parentId = parentId;
}
public void setListItems(ArrayList<ListItem> listItems) { public void setListItems(ArrayList<ListItem> listItems) {
this.listItems = listItems; this.listItems = listItems;
} }