com.bandwidth.http.response.ApiResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bandwidth-sdk Show documentation
Show all versions of bandwidth-sdk Show documentation
The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.bandwidth.http.response;
import com.bandwidth.http.Headers;
public class ApiResponse {
/**
* 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;
}
}