Class WarsApi


  • public class WarsApi
    extends Object
    • Constructor Detail

      • WarsApi

        public WarsApi()
      • WarsApi

        public WarsApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getWarsCall

        public okhttp3.Call getWarsCall​(String datasource,
                                        String ifNoneMatch,
                                        Integer maxWarId,
                                        ApiCallback _callback)
                                 throws ApiException
        Build call for getWars
        Parameters:
        datasource - The server name you would like data from (optional, default to tranquility)
        ifNoneMatch - ETag from a previous request. A 304 will be returned if this matches the current ETag (optional)
        maxWarId - Only return wars with ID smaller than this (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getWars

        public List<Integer> getWars​(String datasource,
                                     String ifNoneMatch,
                                     Integer maxWarId)
                              throws ApiException
        List wars Return a list of wars --- This route is cached for up to 3600 seconds
        Parameters:
        datasource - The server name you would like data from (optional, default to tranquility)
        ifNoneMatch - ETag from a previous request. A 304 will be returned if this matches the current ETag (optional)
        maxWarId - Only return wars with ID smaller than this (optional)
        Returns:
        List<Integer>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getWarsWithHttpInfo

        public ApiResponse<List<Integer>> getWarsWithHttpInfo​(String datasource,
                                                              String ifNoneMatch,
                                                              Integer maxWarId)
                                                       throws ApiException
        List wars Return a list of wars --- This route is cached for up to 3600 seconds
        Parameters:
        datasource - The server name you would like data from (optional, default to tranquility)
        ifNoneMatch - ETag from a previous request. A 304 will be returned if this matches the current ETag (optional)
        maxWarId - Only return wars with ID smaller than this (optional)
        Returns:
        ApiResponse<List<Integer>>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getWarsAsync

        public okhttp3.Call getWarsAsync​(String datasource,
                                         String ifNoneMatch,
                                         Integer maxWarId,
                                         ApiCallback<List<Integer>> _callback)
                                  throws ApiException
        List wars (asynchronously) Return a list of wars --- This route is cached for up to 3600 seconds
        Parameters:
        datasource - The server name you would like data from (optional, default to tranquility)
        ifNoneMatch - ETag from a previous request. A 304 will be returned if this matches the current ETag (optional)
        maxWarId - Only return wars with ID smaller than this (optional)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getWarsWarIdCall

        public okhttp3.Call getWarsWarIdCall​(Integer warId,
                                             String datasource,
                                             String ifNoneMatch,
                                             ApiCallback _callback)
                                      throws ApiException
        Build call for getWarsWarId
        Parameters:
        warId - ID for a war (required)
        datasource - The server name you would like data from (optional, default to tranquility)
        ifNoneMatch - ETag from a previous request. A 304 will be returned if this matches the current ETag (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getWarsWarId

        public WarResponse getWarsWarId​(Integer warId,
                                        String datasource,
                                        String ifNoneMatch)
                                 throws ApiException
        Get war information Return details about a war --- This route is cached for up to 3600 seconds
        Parameters:
        warId - ID for a war (required)
        datasource - The server name you would like data from (optional, default to tranquility)
        ifNoneMatch - ETag from a previous request. A 304 will be returned if this matches the current ETag (optional)
        Returns:
        WarResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getWarsWarIdWithHttpInfo

        public ApiResponse<WarResponse> getWarsWarIdWithHttpInfo​(Integer warId,
                                                                 String datasource,
                                                                 String ifNoneMatch)
                                                          throws ApiException
        Get war information Return details about a war --- This route is cached for up to 3600 seconds
        Parameters:
        warId - ID for a war (required)
        datasource - The server name you would like data from (optional, default to tranquility)
        ifNoneMatch - ETag from a previous request. A 304 will be returned if this matches the current ETag (optional)
        Returns:
        ApiResponse<WarResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getWarsWarIdAsync

        public okhttp3.Call getWarsWarIdAsync​(Integer warId,
                                              String datasource,
                                              String ifNoneMatch,
                                              ApiCallback<WarResponse> _callback)
                                       throws ApiException
        Get war information (asynchronously) Return details about a war --- This route is cached for up to 3600 seconds
        Parameters:
        warId - ID for a war (required)
        datasource - The server name you would like data from (optional, default to tranquility)
        ifNoneMatch - ETag from a previous request. A 304 will be returned if this matches the current ETag (optional)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getWarsWarIdKillmailsCall

        public okhttp3.Call getWarsWarIdKillmailsCall​(Integer warId,
                                                      String datasource,
                                                      String ifNoneMatch,
                                                      Integer page,
                                                      ApiCallback _callback)
                                               throws ApiException
        Build call for getWarsWarIdKillmails
        Parameters:
        warId - A valid war ID (required)
        datasource - The server name you would like data from (optional, default to tranquility)
        ifNoneMatch - ETag from a previous request. A 304 will be returned if this matches the current ETag (optional)
        page - Which page of results to return (optional, default to 1)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getWarsWarIdKillmails

        public List<WarKillmailsResponse> getWarsWarIdKillmails​(Integer warId,
                                                                String datasource,
                                                                String ifNoneMatch,
                                                                Integer page)
                                                         throws ApiException
        List kills for a war Return a list of kills related to a war --- This route is cached for up to 3600 seconds
        Parameters:
        warId - A valid war ID (required)
        datasource - The server name you would like data from (optional, default to tranquility)
        ifNoneMatch - ETag from a previous request. A 304 will be returned if this matches the current ETag (optional)
        page - Which page of results to return (optional, default to 1)
        Returns:
        List<WarKillmailsResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getWarsWarIdKillmailsWithHttpInfo

        public ApiResponse<List<WarKillmailsResponse>> getWarsWarIdKillmailsWithHttpInfo​(Integer warId,
                                                                                         String datasource,
                                                                                         String ifNoneMatch,
                                                                                         Integer page)
                                                                                  throws ApiException
        List kills for a war Return a list of kills related to a war --- This route is cached for up to 3600 seconds
        Parameters:
        warId - A valid war ID (required)
        datasource - The server name you would like data from (optional, default to tranquility)
        ifNoneMatch - ETag from a previous request. A 304 will be returned if this matches the current ETag (optional)
        page - Which page of results to return (optional, default to 1)
        Returns:
        ApiResponse<List<WarKillmailsResponse>>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getWarsWarIdKillmailsAsync

        public okhttp3.Call getWarsWarIdKillmailsAsync​(Integer warId,
                                                       String datasource,
                                                       String ifNoneMatch,
                                                       Integer page,
                                                       ApiCallback<List<WarKillmailsResponse>> _callback)
                                                throws ApiException
        List kills for a war (asynchronously) Return a list of kills related to a war --- This route is cached for up to 3600 seconds
        Parameters:
        warId - A valid war ID (required)
        datasource - The server name you would like data from (optional, default to tranquility)
        ifNoneMatch - ETag from a previous request. A 304 will be returned if this matches the current ETag (optional)
        page - Which page of results to return (optional, default to 1)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object