diff --git a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java index 4748d7d0..eeb8546b 100644 --- a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java +++ b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java @@ -1,5 +1,8 @@ package one.nem.lacerta.data; +import java.util.ArrayList; + +import one.nem.lacerta.model.ListItem; import one.nem.lacerta.model.ListItemType; import one.nem.lacerta.model.LibraryItemPage; @@ -8,8 +11,8 @@ import one.nem.lacerta.model.document.DocumentDetail; public interface LacertaLibrary { // Get History - LibraryItemPage getRecentDocument(int limit); - LibraryItemPage getRecentDocument(int limit, int offset); + ArrayList getRecentDocument(int limit); + ArrayList getRecentDocument(int limit, int offset); // Get Library page LibraryItemPage getLibraryPage(int limit); 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 index 26441dec..bf6a8a8f 100644 --- a/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java +++ b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java @@ -1,9 +1,12 @@ package one.nem.lacerta.data.impl; +import java.util.ArrayList; + import javax.inject.Inject; import one.nem.lacerta.data.LacertaLibrary; import one.nem.lacerta.model.LibraryItemPage; +import one.nem.lacerta.model.ListItem; import one.nem.lacerta.model.document.DocumentDetail; import one.nem.lacerta.source.database.LacertaDatabase; import one.nem.lacerta.utils.LacertaLogger; @@ -17,12 +20,12 @@ public class LacertaLibraryImpl implements LacertaLibrary { LacertaDatabase database; @Override - public LibraryItemPage getRecentDocument(int limit) { + public ArrayList getRecentDocument(int limit) { return null; } @Override - public LibraryItemPage getRecentDocument(int limit, int offset) { + public ArrayList getRecentDocument(int limit, int offset) { return null; } diff --git a/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryStubImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryStubImpl.java index 47d547f8..df5aec9a 100644 --- a/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryStubImpl.java +++ b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryStubImpl.java @@ -148,8 +148,8 @@ public class LacertaLibraryStubImpl implements LacertaLibrary { * @return ページオブジェクト */ @Override - public LibraryItemPage getRecentDocument(int limit) { - return getRecentDocumentPage(limit); + public ArrayList getRecentDocument(int limit) { + return getRecentDocumentPage(limit).getListItems(); } /** @@ -159,8 +159,8 @@ public class LacertaLibraryStubImpl implements LacertaLibrary { * @return ページオブジェクト */ @Override - public LibraryItemPage getRecentDocument(int limit, int offset) { - return getRecentDocumentPage(limit); + public ArrayList getRecentDocument(int limit, int offset) { + return getRecentDocumentPage(limit).getListItems(); } /**