public final class NationQuery extends CensusQuery<NationQuery,Nation,NationShard>
shardsgeneralRateLimiter, resourceValueuserAgent| Constructor and Description |
|---|
NationQuery(IXmlConverter xmlConverter,
IRateLimiter generalRateLimiter,
IRateLimiter scrapingRateLimiter,
String baseUrl,
String userAgent,
int apiVersion,
String nationName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildURL()
Generates a String URL based on the supplied values.
|
NationQuery |
canReceiveTelegramFromRegion(String region)
For use with the 'CanReceiveRecruitmentTelegrams' and
'CanReceiveCampaignTelegrams' shards.
|
protected String |
resourceString()
Gives the resource string of this Query, e.g.
|
protected void |
validateQueryParameters()
Validates the query parameters before executing the query.
|
censusHistoryFrom, censusHistoryTo, censusIds, censusModesshardsexecute, getRateLimiter, slowModecloseInputStreamQuietly, execute, makeRequest, translateResponsepublic NationQuery(IXmlConverter xmlConverter, IRateLimiter generalRateLimiter, IRateLimiter scrapingRateLimiter, String baseUrl, String userAgent, int apiVersion, String nationName)
xmlConverter - generalRateLimiter - scrapingRateLimiter - baseUrl - userAgent - apiVersion - nationName - name of the nation to querypublic final NationQuery canReceiveTelegramFromRegion(String region)
region - the specified region.protected String resourceString()
APIQueryresourceString in class APIQuery<NationQuery,Nation>protected void validateQueryParameters()
AbstractQueryvalidateQueryParameters in class APIQuery<NationQuery,Nation>protected String buildURL()
AbstractQuerybuildURL in class CensusQuery<NationQuery,Nation,NationShard>Copyright © 2017. All rights reserved.