public final class WorldQuery extends CensusRankQuery<WorldQuery,World,WorldShard>
shardsrateLimiter, resourceValuelogger| Constructor and Description |
|---|
WorldQuery(WorldShard... shards)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildURL()
Generates a String URL based on the supplied values.
|
WorldQuery |
dispatchAuthor(String nation)
Sets the author to list dispatches of.
|
WorldQuery |
dispatchCategory(DispatchCat category)
Sets the category to list dispatches of.
|
WorldQuery |
dispatchGetBest()
Sets the type to list dispatches of to 'best', as opposed to the default
'new'.
|
WorldQuery |
dispatchId(int dispatchId)
Sets the id of the dispatch to select.
|
WorldQuery |
dispatchSubcategory(DispatchSubCat subcategory)
Sets the subcategory to list dispatches of.
|
WorldQuery |
happeningsBeforeId(int id)
If this is set, only happenings with a lower id than the one supplied
will be retrieved.
|
WorldQuery |
happeningsFilter(HapFilter... filters)
Sets the filters for happenings.
|
WorldQuery |
happeningsLimit(int limit)
Sets the maximum number of happenings to retrieve.
|
WorldQuery |
happeningsOfNation(String... nation)
Sets the nation(s) to view happenings of.
|
WorldQuery |
happeningsOfRegion(String... region)
Sets the region(s) to view happenings of.
|
WorldQuery |
happeningsSinceId(int id)
If this is set, only happenings with a higher id than the one supplied
will be retrieved.
|
WorldQuery |
regionsWithoutTags(String... tags)
Sets the tags, used for retrieving regions that do NOT have those tags.
|
WorldQuery |
regionsWithTags(String... tags)
Sets the tags, used for retrieving regions that have those tags.
|
protected String |
resourceString()
Gives the resource string of this Query, e.g.
|
protected void |
validateQueryParameters()
Validates the query parameters before executing the query.
|
censusRanksStartcensusHistoryFrom, censusHistoryTo, censusIds, censusIds, censusModesshardsexecute, getRateLimiter, slowModecloseInputStreamQuietly, execute, makeRequest, translateResponsepublic WorldQuery(WorldShard... shards)
shards - the shards to selectpublic final WorldQuery dispatchAuthor(String nation)
nation - the author to list dispatches ofpublic final WorldQuery dispatchCategory(DispatchCat category)
category - the category to list dispatches ofpublic final WorldQuery dispatchSubcategory(DispatchSubCat subcategory)
subcategory - the subcategory to list dispatches ofpublic final WorldQuery dispatchGetBest()
public final WorldQuery dispatchId(int dispatchId)
dispatchId - id of the dispatch to select.public final WorldQuery regionsWithTags(String... tags)
tags - the tagspublic final WorldQuery regionsWithoutTags(String... tags)
tags - the tagspublic final WorldQuery happeningsOfNation(String... nation)
nation - the nation(s) to view happenings ofpublic final WorldQuery happeningsOfRegion(String... region)
region - the region(s) to view happenings ofpublic final WorldQuery happeningsFilter(HapFilter... filters)
filters - the filters for happeningspublic final WorldQuery happeningsLimit(int limit)
limit - the maximum number of happenings to retrievepublic final WorldQuery happeningsSinceId(int id)
id - the idpublic final WorldQuery happeningsBeforeId(int id)
id - the idprotected String resourceString()
APIQueryresourceString in class APIQuery<WorldQuery,World>protected void validateQueryParameters()
AbstractQueryvalidateQueryParameters in class APIQuery<WorldQuery,World>protected String buildURL()
AbstractQuerybuildURL in class CensusRankQuery<WorldQuery,World,WorldShard>Copyright © 2016. All rights reserved.