Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.67 KB

APIResponse.md

File metadata and controls

25 lines (18 loc) · 1.67 KB

APIResponse<T>

This class is the common API response object.

Package com.zoho.crm.api.util

Constructors

Constructor Description
APIResponse(HashMap<String,String> headers, int statusCode, Model object, boolean exe) Creates an APIResponse<T> class instance with the specified parameters.

Methods

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.

source