From 82d0187a11950f62fb1d997d14e96983581df041 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 13 Jan 2024 14:34:07 +0900 Subject: [PATCH] =?UTF-8?q?LacertaLibrary=E3=81=AE=E5=AE=9F=E8=A3=85?= =?UTF-8?q?=E3=82=92=E6=B5=81=E7=94=A8=E3=81=97=E3=81=A6=E5=8F=96=E5=BE=97?= =?UTF-8?q?=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/data/impl/LacertaSearchStubImpl.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/data/src/main/java/one/nem/lacerta/data/impl/LacertaSearchStubImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/LacertaSearchStubImpl.java index a57be743..163f7e64 100644 --- a/data/src/main/java/one/nem/lacerta/data/impl/LacertaSearchStubImpl.java +++ b/data/src/main/java/one/nem/lacerta/data/impl/LacertaSearchStubImpl.java @@ -2,18 +2,30 @@ package one.nem.lacerta.data.impl; import java.util.ArrayList; +import javax.inject.Inject; + import one.nem.lacerta.data.LacertaSearch; import one.nem.lacerta.model.ListItem; +import one.nem.lacerta.data.LacertaLibrary; + public class LacertaSearchStubImpl implements LacertaSearch { + private LacertaLibrary library; + + + @Inject + public LacertaSearchStubImpl(LacertaLibrary library) { + this.library = library; + } + @Override public ArrayList autoSearch(String query, int limit) { - return null; + return library.getLibraryPage(limit).getListItems(); } @Override public ArrayList autoSearch(String query, int limit, int offset) { - return null; + return library.getLibraryPage(limit, offset).getListItems(); } }