Class ApiResponse<T>

  • Type Parameters:
    T - The type of data that is deserialized from response body

    public class ApiResponse<T>
    extends Object
    API response returned by API call.
    • Constructor Detail

      • ApiResponse

        public ApiResponse​(int statusCode,
                           Map<String,​List<String>> headers)
        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)
        Parameters:
        statusCode - The status code of HTTP response
        headers - The headers of HTTP response
        data - The object deserialized from response bod
    • Method Detail

      • getStatusCode

        public int getStatusCode()
      • getData

        public T getData()