Class ApiResponse<T>

java.lang.Object
com.symphony.bdk.http.api.ApiResponse<T>
Type Parameters:
T - The type of data that is deserialized from response body

@API(status=STABLE) public class ApiResponse<T> extends Object
API response returned by API call.
  • Constructor Details

    • ApiResponse

      public ApiResponse(int statusCode, Map<String,List<String>> headers)
      Creates new ApiResponse instance.
      Parameters:
      statusCode - The status code of HTTP response
      headers - The headers of HTTP response
    • ApiResponse

      public ApiResponse(int statusCode, Map<String,List<String>> headers, T data)
      Creates new ApiResponse instance.
      Parameters:
      statusCode - The status code of HTTP response
      headers - The headers of HTTP response
      data - The object deserialized from response bod