From 3be6185c21ebe73badca9745958bf4b8e694409f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Wed, 17 Jan 2024 12:15:47 +0900 Subject: [PATCH] =?UTF-8?q?getRecentDocument=E3=81=AE=E6=88=BB=E3=82=8A?= =?UTF-8?q?=E5=80=A4=E3=82=92=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/one/nem/lacerta/data/LacertaLibrary.java | 7 +++++-- .../one/nem/lacerta/data/impl/LacertaLibraryImpl.java | 7 +++++-- .../one/nem/lacerta/data/impl/LacertaLibraryStubImpl.java | 8 ++++---- 3 files changed, 14 insertions(+), 8 deletions(-) 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(); } /**