This class is the common API response object.
Constructor | Description |
---|---|
APIResponse(HashMap<String,String> headers, int statusCode, Model object, boolean exe) | Creates an APIResponse<T> class instance with the specified parameters. |
Return Type | Method | Description |
---|---|---|
HashMap<String,String> | getHeaders() | The getter method to get the API response headers. |
int | getStatusCode() | The getter method to get the API response HTTP status code. |
boolean | isExpected() | The getter method to get an API response instance to check if the response is in the expected type or not. |
Model | getModel() | The getter method to get an API response instance to check if the response is in the expected type or not. |
T | getObject() | The method to get the API response POJO class instance. |