@Deprecated @ApiStatus.ScheduledForRemoval public class CocLocations extends CocWebApiInterface
A Web API Implementation of the Location interface. Contains methods for clan/player inquiries based on location.
VERSION_1, VERSION_2, VERSION_3
Constructor and Description |
---|
CocLocations(CocWebApiClient client)
Deprecated.
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<List<CocClanRankInfo>> |
getClanRankingsFromLocation(int locationId)
Deprecated.
Get clan rankings for a specific location
|
CompletableFuture<List<CocClanRankInfo>> |
getClanRankingsFromLocation(int locationId,
int limit)
Deprecated.
Get clan rankings for a specific location
|
CompletableFuture<List<CocClanRankInfo>> |
getClanRankingsFromLocation(int locationId,
int limit,
int before,
int after)
Deprecated.
Get clan rankings for a specific location
|
CompletableFuture<CocLocation> |
getLocationInfo(int locationId)
Deprecated.
Get information about specific location
|
CompletableFuture<List<CocLocation>> |
getLocations()
Deprecated.
List all available locations
|
CompletableFuture<List<CocLocation>> |
getLocations(int limit)
Deprecated.
List all available locations
|
CompletableFuture<List<CocLocation>> |
getLocations(int limit,
int before,
int after)
Deprecated.
List all available locations
|
CompletableFuture<List<CocPlayerRankInfo>> |
getPlayerRankingsFromLocation(int locationId)
Deprecated.
Get player rankings for a specific location
|
CompletableFuture<List<CocPlayerRankInfo>> |
getPlayerRankingsFromLocation(int locationId,
int limit)
Deprecated.
Get player rankings for a specific location
|
CompletableFuture<List<CocPlayerRankInfo>> |
getPlayerRankingsFromLocation(int locationId,
int limit,
int before,
int after)
Deprecated.
Get player rankings for a specific location
|
handleError
asCollectionOf, asListOf, builder, configureBuilder, fromJson, fromJson, sendRequest
public CocLocations(CocWebApiClient client)
Default Constructor
client
- A CocWebApiClient
instancepublic CompletableFuture<List<CocLocation>> getLocations()
List all available locations
CompletableFuture
containing a future result for a List
of CocLocation
public CompletableFuture<List<CocLocation>> getLocations(int limit, int before, int after)
List all available locations
limit
- An Integer
limiting the number of records returnedbefore
- (optional) An Integer
that indicates to return only items that occur before this marker.
Before marker can be found from the response, inside the 'paging' property. Note that only after
or before can be specified for a request, not both. Otherwise use -1 to disregard.after
- (optional) An Integer
that indicates to return only items that occur after this marker.
After marker can be found from the response, inside the 'paging' property. Note that only after
or before can be specified for a request, not both. Otherwise use -1 to disregard.CompletableFuture
containing a future result for a List
of CocLocation
public CompletableFuture<List<CocLocation>> getLocations(int limit)
List all available locations
limit
- An Integer
limiting the number of records returnedCompletableFuture
containing a future result for a List
of CocLocation
public CompletableFuture<CocLocation> getLocationInfo(int locationId)
Get information about specific location
locationId
- An Integer
representing the identifier of the location to retrieve.CompletableFuture
containing a future result of CocLocation
getLocations()
public CompletableFuture<List<CocClanRankInfo>> getClanRankingsFromLocation(int locationId)
Get clan rankings for a specific location
locationId
- An Integer
representing the identifier of the location to retrieve.CompletableFuture
containing a future result of a List
of CocClanRankInfo
public CompletableFuture<List<CocClanRankInfo>> getClanRankingsFromLocation(int locationId, int limit)
Get clan rankings for a specific location
locationId
- An Integer
representing the identifier of the location to retrieve.limit
- An Integer
limiting the number of records returnedCompletableFuture
containing a future result for a List
of CocClanRankInfo
public CompletableFuture<List<CocClanRankInfo>> getClanRankingsFromLocation(int locationId, int limit, int before, int after)
Get clan rankings for a specific location
locationId
- An Integer
representing the identifier of the location to retrieve.limit
- An Integer
limiting the number of records returnedbefore
- (optional) An Integer
that indicates to return only items that occur before this marker.
Before marker can be found from the response, inside the 'paging' property. Note that only after
or before can be specified for a request, not both. Otherwise use -1 to disregard.after
- (optional) An Integer
that indicates to return only items that occur after this marker.
After marker can be found from the response, inside the 'paging' property. Note that only after
or before can be specified for a request, not both. Otherwise use -1 to disregard.CompletableFuture
containing a future result of a List
of CocClanRankInfo
public CompletableFuture<List<CocPlayerRankInfo>> getPlayerRankingsFromLocation(int locationId)
Get player rankings for a specific location
locationId
- An Integer
representing the identifier of the location to retrieve.CompletableFuture
containing a future result of a List
of CocPlayerRankInfo
public CompletableFuture<List<CocPlayerRankInfo>> getPlayerRankingsFromLocation(int locationId, int limit)
Get player rankings for a specific location
locationId
- An Integer
representing the identifier of the location to retrieve.limit
- An Integer
limiting the number of records returnedCompletableFuture
containing a future result of a List
of CocPlayerRankInfo
public CompletableFuture<List<CocPlayerRankInfo>> getPlayerRankingsFromLocation(int locationId, int limit, int before, int after)
Get player rankings for a specific location
locationId
- An Integer
representing the identifier of the location to retrieve.limit
- An Integer
limiting the number of records returnedbefore
- (optional) An Integer
that indicates to return only items that occur before this marker.
Before marker can be found from the response, inside the 'paging' property. Note that only after
or before can be specified for a request, not both. Otherwise use -1 to disregard.after
- (optional) An Integer
that indicates to return only items that occur after this marker.
After marker can be found from the response, inside the 'paging' property. Note that only after
or before can be specified for a request, not both. Otherwise use -1 to disregard.CompletableFuture
containing a future result of a List
of CocPlayerRankInfo
Copyright © 2016–2024. All rights reserved.