mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
InterfaceをCompletableFutureに変更
This commit is contained in:
parent
df22a754b7
commit
4ab13508c4
|
@ -1,6 +1,7 @@
|
||||||
package one.nem.lacerta.data;
|
package one.nem.lacerta.data;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
import one.nem.lacerta.model.ListItem;
|
import one.nem.lacerta.model.ListItem;
|
||||||
import one.nem.lacerta.model.ListItemType;
|
import one.nem.lacerta.model.ListItemType;
|
||||||
|
@ -11,15 +12,13 @@ import one.nem.lacerta.model.document.DocumentDetail;
|
||||||
public interface LacertaLibrary {
|
public interface LacertaLibrary {
|
||||||
|
|
||||||
// Get History
|
// Get History
|
||||||
ArrayList<ListItem> getRecentDocument(int limit);
|
CompletableFuture<ArrayList<ListItem>> getRecentDocument(int limit);
|
||||||
ArrayList<ListItem> getRecentDocument(int limit, int offset);
|
CompletableFuture<ArrayList<ListItem>> getRecentDocument(int limit, int offset);
|
||||||
|
|
||||||
// Get Library page
|
// Get Library page
|
||||||
LibraryItemPage getLibraryPage(int limit);
|
CompletableFuture<LibraryItemPage> getLibraryPage(int limit);
|
||||||
LibraryItemPage getLibraryPage(int limit, int offset);
|
CompletableFuture<LibraryItemPage> getLibraryPage(int limit, int offset);
|
||||||
LibraryItemPage getLibraryPage(String pageId, int limit);
|
CompletableFuture<LibraryItemPage> getLibraryPage(String pageId, int limit);
|
||||||
LibraryItemPage getLibraryPage(String pageId, int limit, int offset);
|
CompletableFuture<LibraryItemPage> getLibraryPage(String pageId, int limit, int offset);
|
||||||
|
|
||||||
// GetDocument
|
|
||||||
DocumentDetail getDocumentDetailById(String id); // TODO-rca: Documentに統合する
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user