public class WarsApi extends Object
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
List<Integer> |
getWars(String datasource,
Integer maxWarId,
String userAgent,
String xUserAgent)
List wars Return a list of wars --- Alternate route:
`/v1/wars/` Alternate route: `/legacy/wars/`
Alternate route: `/dev/wars/` --- This route is cached for up
to 3600 seconds
|
WarResponse |
getWarsWarId(Integer warId,
String datasource,
String userAgent,
String xUserAgent)
Get war information Return details about a war --- Alternate route:
`/v1/wars/{war_id}/` Alternate route:
`/legacy/wars/{war_id}/` Alternate route:
`/dev/wars/{war_id}/` --- This route is cached for up to 3600
seconds
|
List<WarKillmailsResponse> |
getWarsWarIdKillmails(Integer warId,
String datasource,
Integer page,
String userAgent,
String xUserAgent)
List kills for a war Return a list of kills related to a war ---
Alternate route: `/v1/wars/{war_id}/killmails/` Alternate
route: `/legacy/wars/{war_id}/killmails/` Alternate route:
`/dev/wars/{war_id}/killmails/` --- This route is cached for up
to 3600 seconds
|
void |
setApiClient(ApiClient apiClient) |
public WarsApi()
public WarsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public List<Integer> getWars(String datasource, Integer maxWarId, String userAgent, String xUserAgent) throws ApiException
datasource - The server name you would like data from (optional, default to
tranquility)maxWarId - Only return wars with ID smaller than this. (optional)userAgent - Client identifier, takes precedence over headers (optional)xUserAgent - Client identifier, takes precedence over User-Agent (optional)ApiException - if fails to make API callpublic WarResponse getWarsWarId(Integer warId, String datasource, String userAgent, String xUserAgent) throws ApiException
warId - ID for a war (required)datasource - The server name you would like data from (optional, default to
tranquility)userAgent - Client identifier, takes precedence over headers (optional)xUserAgent - Client identifier, takes precedence over User-Agent (optional)ApiException - if fails to make API callpublic List<WarKillmailsResponse> getWarsWarIdKillmails(Integer warId, String datasource, Integer page, String userAgent, String xUserAgent) throws ApiException
warId - A valid war ID (required)datasource - The server name you would like data from (optional, default to
tranquility)page - Which page to query, starting at 1, 2000 killmails per page.
(optional, default to 1)userAgent - Client identifier, takes precedence over headers (optional)xUserAgent - Client identifier, takes precedence over User-Agent (optional)ApiException - if fails to make API callCopyright © 2017. All Rights Reserved.