mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-08 11:47:36 +00:00
Merge pull request #50 from lacerta-doc/data/add_library_item_interface
ライブラリを取得するインタフェースを実装
This commit is contained in:
4 files changed
+58
No files matched your search
@@ -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);
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package one.nem.lacerta.data.impl;
|
||||||
|
|
||||||
|
public class LacertaLibraryImpl {
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package one.nem.lacerta.data.module;
|
||||||
|
|
||||||
|
public class LacertaLibraryModule {
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user