Merge pull request #50 from lacerta-doc/data/add_library_item_interface

ライブラリを取得するインタフェースを実装
This commit is contained in:
ろむねこ 2024-01-12 10:24:00 +09:00 committed by GitHub
commit 5bc54f6083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package one.nem.lacerta.data;
import one.nem.lacerta.model.ListItemType;
import one.nem.lacerta.model.LibraryItemPage;
import one.nem.lacerta.model.document.DocumentDetail;
public interface LacertaLibrary {
// Get History
LibraryItemPage getRecentDocument(int limit);
LibraryItemPage getRecentDocument(int limit, int offset);
// Get Library page
LibraryItemPage getLibraryPage(int limit);
LibraryItemPage getLibraryPage(int limit, int offset);
LibraryItemPage getLibraryPage(String pageId, int limit);
LibraryItemPage getLibraryPage(String pageId, int limit, int offset);
// GetDocument
DocumentDetail getDocumentDetailById(String id);
}

View File

@ -0,0 +1,4 @@
package one.nem.lacerta.data.impl;
public class LacertaLibraryImpl {
}

View File

@ -0,0 +1,4 @@
package one.nem.lacerta.data.module;
public class LacertaLibraryModule {
}

View File

@ -0,0 +1,28 @@
package one.nem.lacerta.model;
import java.util.ArrayList;
public class LibraryItemPage {
String pageTitle;
String pageId;
ArrayList<ListItem> listItems;
public LibraryItemPage(String pageTitle, String pageId, ArrayList<ListItem> listItems) {
this.pageTitle = pageTitle;
this.pageId = pageId;
this.listItems = listItems;
}
public String getPageTitle() {
return pageTitle;
}
public String getPageId() {
return pageId;
}
public ArrayList<ListItem> getListItems() {
return listItems;
}
}