Class ApiResponse<T>
java.lang.Object
com.binance.connector.client.common.ApiResponse<T>
-
Constructor Summary
ConstructorsConstructorDescriptionApiResponse
(int statusCode, Map<String, List<String>> headers) Constructor for ApiResponse.Constructor for ApiResponse.ApiResponse
(int statusCode, Map<String, List<String>> headers, T data, Map<RateLimitType, RateLimit> rateLimits) Constructor for ApiResponse. -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Get thedata
.Get theheaders
.Get the RateLimitsint
Get thestatus code
.
-
Constructor Details
-
ApiResponse
-
ApiResponse
-
ApiResponse
public ApiResponse(int statusCode, Map<String, List<String>> headers, T data, Map<RateLimitType, RateLimit> rateLimits) Constructor for ApiResponse.- Parameters:
statusCode
- The status code of HTTP responseheaders
- The headers of HTTP responsedata
- The object deserialized from response bodrateLimits
- The rate limits information
-
-
Method Details
-
getStatusCode
public int getStatusCode()Get thestatus code
.- Returns:
- the status code
-
getHeaders
-
getData
-
getRateLimits
Get the RateLimits- Returns:
- the rate limits info
-