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(); } }