getRecentDocumentの戻り値を変更

This commit is contained in:
ろむねこ 2024-01-17 12:15:47 +09:00
parent c82952f397
commit 3be6185c21
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
3 changed files with 14 additions and 8 deletions

View File

@ -1,5 +1,8 @@
package one.nem.lacerta.data; 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.ListItemType;
import one.nem.lacerta.model.LibraryItemPage; import one.nem.lacerta.model.LibraryItemPage;
@ -8,8 +11,8 @@ import one.nem.lacerta.model.document.DocumentDetail;
public interface LacertaLibrary { public interface LacertaLibrary {
// Get History // Get History
LibraryItemPage getRecentDocument(int limit); ArrayList<ListItem> getRecentDocument(int limit);
LibraryItemPage getRecentDocument(int limit, int offset); ArrayList<ListItem> getRecentDocument(int limit, int offset);
// Get Library page // Get Library page
LibraryItemPage getLibraryPage(int limit); LibraryItemPage getLibraryPage(int limit);

View File

@ -1,9 +1,12 @@
package one.nem.lacerta.data.impl; package one.nem.lacerta.data.impl;
import java.util.ArrayList;
import javax.inject.Inject; import javax.inject.Inject;
import one.nem.lacerta.data.LacertaLibrary; import one.nem.lacerta.data.LacertaLibrary;
import one.nem.lacerta.model.LibraryItemPage; import one.nem.lacerta.model.LibraryItemPage;
import one.nem.lacerta.model.ListItem;
import one.nem.lacerta.model.document.DocumentDetail; import one.nem.lacerta.model.document.DocumentDetail;
import one.nem.lacerta.source.database.LacertaDatabase; import one.nem.lacerta.source.database.LacertaDatabase;
import one.nem.lacerta.utils.LacertaLogger; import one.nem.lacerta.utils.LacertaLogger;
@ -17,12 +20,12 @@ public class LacertaLibraryImpl implements LacertaLibrary {
LacertaDatabase database; LacertaDatabase database;
@Override @Override
public LibraryItemPage getRecentDocument(int limit) { public ArrayList<ListItem> getRecentDocument(int limit) {
return null; return null;
} }
@Override @Override
public LibraryItemPage getRecentDocument(int limit, int offset) { public ArrayList<ListItem> getRecentDocument(int limit, int offset) {
return null; return null;
} }

View File

@ -148,8 +148,8 @@ public class LacertaLibraryStubImpl implements LacertaLibrary {
* @return ページオブジェクト * @return ページオブジェクト
*/ */
@Override @Override
public LibraryItemPage getRecentDocument(int limit) { public ArrayList<ListItem> getRecentDocument(int limit) {
return getRecentDocumentPage(limit); return getRecentDocumentPage(limit).getListItems();
} }
/** /**
@ -159,8 +159,8 @@ public class LacertaLibraryStubImpl implements LacertaLibrary {
* @return ページオブジェクト * @return ページオブジェクト
*/ */
@Override @Override
public LibraryItemPage getRecentDocument(int limit, int offset) { public ArrayList<ListItem> getRecentDocument(int limit, int offset) {
return getRecentDocumentPage(limit); return getRecentDocumentPage(limit).getListItems();
} }
/** /**