Package org.openapitools.client
Class ApiResponse<T>
java.lang.Object
org.openapitools.client.ApiResponse<T>
API response returned by API call.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Get thedata
.Get theheaders
.int
Get thestatus code
.
-
Field Details
-
statusCode
private final int statusCode -
headers
-
data
-
-
Constructor Details
-
ApiResponse
Constructor for ApiResponse.
- Parameters:
statusCode
- The status code of HTTP responseheaders
- The headers of HTTP response
-
ApiResponse
Constructor for ApiResponse.
- Parameters:
statusCode
- The status code of HTTP responseheaders
- The headers of HTTP responsedata
- The object deserialized from response bod
-
-
Method Details
-
getStatusCode
public int getStatusCode()Get the
status code
.- Returns:
- the status code
-
getHeaders
Get the
headers
.- Returns:
- a
Map
of headers
-
getData
Get the
data
.- Returns:
- the data
-