Package com.treescrub.spedran
Class SingleResourceRequest<T extends Resource>
- java.lang.Object
-
- com.treescrub.spedran.SingleResourceRequest<T>
-
- Type Parameters:
T- a class that represents a resource that will be retrieved from the API
- Direct Known Subclasses:
CategoryRequest,DeveloperRequest,EngineRequest,GameRequest,GametypeRequest,GenreRequest,GuestRequest,LeaderboardRequest,LevelRequest,ModifyResourceRequest,PlatformRequest,ProfileRequest,PublisherRequest,RegionRequest,RunRequest,SingleSeriesRequest,UserRequest,VariableRequest
public abstract class SingleResourceRequest<T extends Resource> extends Object
A request to get a single resource from the SRC API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<T>complete()Starts executing the request and returns aCompletableFuturethat will complete with the resulting resource object.
-
-
-
Method Detail
-
complete
public CompletableFuture<T> complete()
Starts executing the request and returns aCompletableFuturethat will complete with the resulting resource object.- Returns:
- a
CompletableFuturewith the resource
-
-