com.paypal.sdk.http.response.ApiResponse Maven / Gradle / Ivy
/*
* PaypalServerSDKLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.paypal.sdk.http.response;
import com.paypal.sdk.http.Headers;
import io.apimatic.coreinterfaces.http.response.ApiResponseType;
public class ApiResponse implements ApiResponseType {
/**
* Private store for properties.
*/
int statusCode;
Headers headers;
T result;
/**
* HTTP Status code of the api response.
* @return Int status code
*/
public int getStatusCode() {
return statusCode;
}
/**
* Headers of the http response.
* @return Headers
*/
public Headers getHeaders() {
return headers;
}
/**
* The deserialized result of the api response.
* @return result of type T
*/
public T getResult() {
return result;
}
/**
* Initialization constructor.
* @param statusCode The HTTP Status code of the api response
* @param headers The Headers of the http response
* @param result The wrapped response of type T
*/
public ApiResponse(int statusCode, Headers headers, T result) {
this.statusCode = statusCode;
this.headers = headers;
this.result = result;
}
}