@Deprecated @ApiStatus.ScheduledForRemoval public class CocLeagues extends CocWebApiInterface
A Web API Implementation of the League interface
VERSION_1, VERSION_2, VERSION_3| Constructor and Description |
|---|
CocLeagues(CocWebApiClient client)
Deprecated.
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureBuilder(com.google.gson.GsonBuilder builder)
Deprecated.
Override this method if you need to perform additional configurations against the builder (e.g.
|
CompletableFuture<CocLeague> |
getLeagueInfo(int leagueId)
Deprecated.
Get league information
|
CompletableFuture<List<CocLeague>> |
getLeagueList()
Deprecated.
Get list of leagues
|
CompletableFuture<List<CocLeague>> |
getLeagueList(int limit)
Deprecated.
Get list of leagues
|
CompletableFuture<List<CocLeague>> |
getLeagueList(int limit,
int before,
int after)
Deprecated.
Get list of leagues
|
CompletableFuture<List<CocLeagueSeason>> |
getLeagueSeasons(int leagueId)
Deprecated.
Get league seasons.
|
CompletableFuture<List<CocLeagueSeason>> |
getLeagueSeasons(int leagueId,
int limit)
Deprecated.
Get league seasons.
|
CompletableFuture<List<CocLeagueSeason>> |
getLeagueSeasons(int leagueId,
int limit,
int before,
int after)
Deprecated.
Get league seasons.
|
CompletableFuture<List<CocPlayerRankInfo>> |
getLeagueSeasonsPlayerRankings(int leagueId,
String seasonId)
Deprecated.
Get league season player rankings.
|
CompletableFuture<List<CocPlayerRankInfo>> |
getLeagueSeasonsPlayerRankings(int leagueId,
String seasonId,
int limit)
Deprecated.
Get league season player rankings.
|
CompletableFuture<List<CocPlayerRankInfo>> |
getLeagueSeasonsPlayerRankings(int leagueId,
String seasonId,
int limit,
int before,
int after)
Deprecated.
Get league season player rankings.
|
handleErrorasCollectionOf, asListOf, builder, fromJson, fromJson, sendRequestpublic CocLeagues(CocWebApiClient client)
Default Constructor
client - A CocWebApiClient instanceprotected void configureBuilder(com.google.gson.GsonBuilder builder)
Override this method if you need to perform additional configurations against the builder (e.g. Register custom deserializers)
configureBuilder in class AbstractWebApiInterface<CocWebApiClient,CocWebApiRequest,CocWebApiResponse>builder - A GsonBuilder instance that will be accessed and configured by a concrete AbstractWebApiInterface implementationpublic CompletableFuture<List<CocLeague>> getLeagueList()
Get list of leagues
CompletableFuture which contains a future result for a List of CocLeaguepublic CompletableFuture<List<CocLeague>> getLeagueList(int limit)
Get list of leagues
limit - An Integer limiting the number of records returnedCompletableFuture which contains a future result for a List of CocLeaguepublic CompletableFuture<List<CocLeague>> getLeagueList(int limit, int before, int after)
Get list of leagues
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 which contains a future result for a List of CocLeaguepublic CompletableFuture<CocLeague> getLeagueInfo(int leagueId)
Get league information
leagueId - An Integer representing a valid Clash of Clans League IdCompletableFuture containing a future result for CocLeaguepublic CompletableFuture<List<CocLeagueSeason>> getLeagueSeasons(int leagueId)
Get league seasons. Note that league season information is available only for Legend League.
leagueId - An Integer representing a valid Clash of Clans League IdCompletableFuture containing a future result for a List of CocLeagueSeasonpublic CompletableFuture<List<CocLeagueSeason>> getLeagueSeasons(int leagueId, int limit)
Get league seasons. Note that league season information is available only for Legend League.
leagueId - An Integer representing a valid Clash of Clans League Idlimit - An Integer limiting the number of records returnedCompletableFuture containing a future result for a List of CocLeagueSeasonpublic CompletableFuture<List<CocLeagueSeason>> getLeagueSeasons(int leagueId, int limit, int before, int after)
Get league seasons. Note that league season information is available only for Legend League.
leagueId - An Integer representing a valid Clash of Clans League Idlimit - 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 CocLeagueSeasonpublic CompletableFuture<List<CocPlayerRankInfo>> getLeagueSeasonsPlayerRankings(int leagueId, String seasonId)
Get league season player rankings. Note that league season information is available only for Legend League.
leagueId - An Integer representing a valid Clash of Clans League IdseasonId - An Integer representing a valid Clash of Clans Season IdCompletableFuture containing a future result for a List of CocPlayerRankInfogetLeagueSeasons(int)public CompletableFuture<List<CocPlayerRankInfo>> getLeagueSeasonsPlayerRankings(int leagueId, String seasonId, int limit)
Get league season player rankings. Note that league season information is available only for Legend League.
leagueId - An Integer representing a valid Clash of Clans League IdseasonId - An Integer representing a valid Clash of Clans Season Idlimit - An Integer limiting the number of records returnedCompletableFuture containing a future result for a List of CocPlayerRankInfogetLeagueSeasons(int)public CompletableFuture<List<CocPlayerRankInfo>> getLeagueSeasonsPlayerRankings(int leagueId, String seasonId, int limit, int before, int after)
Get league season player rankings. Note that league season information is available only for Legend League.
leagueId - An Integer representing a valid Clash of Clans League IdseasonId - An Integer representing a valid Clash of Clans Season Idlimit - 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 CocPlayerRankInfogetLeagueSeasons(int)Copyright © 2016–2024. All rights reserved.