Package com.hellosign.openapi
Class ApiResponse<T>
- java.lang.Object
-
- com.hellosign.openapi.ApiResponse<T>
-
- Type Parameters:
T- The type of data that is deserialized from response body
public class ApiResponse<T> extends java.lang.ObjectAPI response returned by API call.
-
-
Constructor Summary
Constructors Constructor Description ApiResponse(int statusCode, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)ApiResponse(int statusCode, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers, T data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetData()Get the datajava.util.Map<java.lang.String,java.util.List<java.lang.String>>getHeaders()Get the headersintgetStatusCode()Get the status code
-
-
-
Constructor Detail
-
ApiResponse
public ApiResponse(int statusCode, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)- Parameters:
statusCode- The status code of HTTP responseheaders- The headers of HTTP response
-
ApiResponse
public ApiResponse(int statusCode, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers, T data)- Parameters:
statusCode- The status code of HTTP responseheaders- The headers of HTTP responsedata- The object deserialized from response bod
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
Get the status code- Returns:
- status code
-
getHeaders
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
Get the headers- Returns:
- map of headers
-
getData
public T getData()
Get the data- Returns:
- data
-
-