Package com.treescrub.spedran
Class ResourceCollectionRequest<T extends Resource>
- java.lang.Object
-
- com.treescrub.spedran.ResourceCollectionRequest<T>
-
- Type Parameters:
T- a class that represents resources that will be retrieved from the API and compiled into a list
- Direct Known Subclasses:
AllSeriesRequest,CategoryRecordsRequest,CategoryVariablesRequest,DevelopersRequest,EnginesRequest,GameCategoriesRequest,GameLevelsRequest,GameRecordsRequest,GameRomhacksRequest,GamesRequest,GametypesRequest,GameVariablesRequest,GenresRequest,LevelCategoriesRequest,LevelRecordsRequest,LevelVariablesRequest,NotificationsRequest,PlatformsRequest,PublishersRequest,RegionsRequest,RunsRequest,SeriesGamesRequest,UserPBsRequest,UsersRequest
public abstract class ResourceCollectionRequest<T extends Resource> extends Object
A request to get a collection of resources from the SRC API.
Limited to 10,000 items.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<List<T>>complete()Starts executing the request and returns aCompletableFuturethat will complete with the resulting list of resource objects.
-
-
-
Method Detail
-
complete
public CompletableFuture<List<T>> complete()
Starts executing the request and returns aCompletableFuturethat will complete with the resulting list of resource objects.- Returns:
- a
CompletableFuturewith a list of resources
-
-