@Deprecated @ApiStatus.ScheduledForRemoval public class CocClans extends CocWebApiInterface
A Web API Implementation of the Clan interface. Contains methods for clan-related inquiries.
VERSION_1, VERSION_2, VERSION_3
Constructor and Description |
---|
CocClans(CocWebApiClient client)
Deprecated.
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<CocClanDetailedInfo> |
getClanInfo(String clanTag)
Deprecated.
Get information about a single clan by clan tag.
|
CompletableFuture<List<CocPlayerBasicInfo>> |
getClanMembers(String clanTag)
Deprecated.
List clan members
|
CompletableFuture<List<CocPlayerBasicInfo>> |
getClanMembers(String clanTag,
int limit)
Deprecated.
List clan members
|
CompletableFuture<List<CocPlayerBasicInfo>> |
getClanMembers(String clanTag,
int limit,
int after,
int before)
Deprecated.
List clan members
|
CompletableFuture<List<CocWarLogEntry>> |
getClanWarLog(String clanTag)
Deprecated.
Retrieve clan's clan war log
|
CompletableFuture<List<CocWarLogEntry>> |
getClanWarLog(String clanTag,
int limit,
int after,
int before)
Deprecated.
Retrieve clan's clan war log
|
CompletableFuture<List<CocClanDetailedInfo>> |
searchClans(CocSearchCriteria criteria)
Deprecated.
Search all clans by name and/or filtering the results using various criteria.
|
handleError
asCollectionOf, asListOf, builder, configureBuilder, fromJson, fromJson, sendRequest
public CocClans(CocWebApiClient client)
Default Constructor
client
- A CocWebApiClient
instancepublic CompletableFuture<List<CocClanDetailedInfo>> searchClans(CocSearchCriteria criteria)
Search all clans by name and/or filtering the results using various criteria. At least one filtering criteria must be defined and if name is used as part of search, it is required to be at least three characters long. It is not possible to specify ordering for results so clients should not rely on any specific ordering as that may change in the future releases of the API.
criteria
- A CocSearchCriteria
to help your life much easierCompletableFuture
containing a List
of clans matching the criteria. Empty if no match
found.public CompletableFuture<CocClanDetailedInfo> getClanInfo(String clanTag)
Get information about a single clan by clan tag. Clan tags can be found using clan search operation. Note that clan tags start with hash character '#' and that needs to be URL-encoded properly to work in URL, so for example clan tag '#2ABC' would become '%232ABC' in the URL.
clanTag
- A String
preceded by a hash tag '#' characterCompletableFuture
returning an instance of CocClanDetailedInfo
public CompletableFuture<List<CocPlayerBasicInfo>> getClanMembers(String clanTag)
List clan members
clanTag
- A String
representing the clan tagCompletableFuture
returning an instance of List
of type CocPlayerBasicInfo
public CompletableFuture<List<CocPlayerBasicInfo>> getClanMembers(String clanTag, int limit, int after, int before)
List clan members
clanTag
- A String
representing the clan taglimit
- An Integer
limiting the number of records returnedafter
- (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.before
- (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.CompletableFuture
returning an instance of List
of type CocPlayerBasicInfo
public CompletableFuture<List<CocPlayerBasicInfo>> getClanMembers(String clanTag, int limit)
List clan members
clanTag
- A String
representing the clan taglimit
- An Integer
limiting the number of records returnedCompletableFuture
returning an instance of List
of type CocPlayerBasicInfo
public CompletableFuture<List<CocWarLogEntry>> getClanWarLog(String clanTag)
Retrieve clan's clan war log
clanTag
- A String
preceded by a hash tag '#' characterCompletableFuture
which contains a future result for a List
of CocWarLogEntry
public CompletableFuture<List<CocWarLogEntry>> getClanWarLog(String clanTag, int limit, int after, int before)
Retrieve clan's clan war log
clanTag
- A String
preceded by a hash tag '#' characterlimit
- An Integer
limiting the number of records returnedafter
- (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.before
- (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.CompletableFuture
which contains a future result for a List
of CocWarLogEntry
Copyright © 2016–2024. All rights reserved.