diff --git a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java new file mode 100644 index 00000000..408a9171 --- /dev/null +++ b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java @@ -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); +} diff --git a/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java new file mode 100644 index 00000000..b3e9c855 --- /dev/null +++ b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java @@ -0,0 +1,4 @@ +package one.nem.lacerta.data.impl; + +public class LacertaLibraryImpl { +} diff --git a/data/src/main/java/one/nem/lacerta/data/module/LacertaLibraryModule.java b/data/src/main/java/one/nem/lacerta/data/module/LacertaLibraryModule.java new file mode 100644 index 00000000..889a66ef --- /dev/null +++ b/data/src/main/java/one/nem/lacerta/data/module/LacertaLibraryModule.java @@ -0,0 +1,4 @@ +package one.nem.lacerta.data.module; + +public class LacertaLibraryModule { +} diff --git a/model/src/main/java/one/nem/lacerta/model/LibraryItemPage.java b/model/src/main/java/one/nem/lacerta/model/LibraryItemPage.java new file mode 100644 index 00000000..aed41a09 --- /dev/null +++ b/model/src/main/java/one/nem/lacerta/model/LibraryItemPage.java @@ -0,0 +1,28 @@ +package one.nem.lacerta.model; + +import java.util.ArrayList; + +public class LibraryItemPage { + + String pageTitle; + String pageId; + ArrayList listItems; + + public LibraryItemPage(String pageTitle, String pageId, ArrayList listItems) { + this.pageTitle = pageTitle; + this.pageId = pageId; + this.listItems = listItems; + } + + public String getPageTitle() { + return pageTitle; + } + + public String getPageId() { + return pageId; + } + + public ArrayList getListItems() { + return listItems; + } +}