All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bandwidth.http.response.ApiResponse Maven / Gradle / Ivy

Go to download

The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs

There is a newer version: 12.0.0
Show newest version
/*
 * 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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy