
com.infobip.ApiCallback Maven / Gradle / Ivy
/*
* This class is auto generated from the Infobip OpenAPI specification
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
* powered by the OpenAPI Generator (https://openapi-generator.tech).
*
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
* or contact us @ [email protected].
*/
package com.infobip;
import java.util.List;
import java.util.Map;
/**
* The callback that can be used for asynchronous API calls.
*
* @param The return type.
*/
public interface ApiCallback {
/**
* The callback method invoked when the API call succeeds.
*
* @param result The deserialized response body returned by the server, null
otherwise.
* @param responseStatusCode The response HTTP status code if available, 0 otherwise.
* @param responseHeaders Response headers if available, null
otherwise.
*/
void onSuccess(T result, int responseStatusCode, Map> responseHeaders);
/**
* The callback method invoked when the API call fails or an error occurs during the
* request or response processing.
*
* @param exception The exception describing the failure.
* @param responseStatusCode The response HTTP status code if available, 0 otherwise.
* @param responseHeaders Response headers if available, null
otherwise.
*/
void onFailure(ApiException exception, int responseStatusCode, Map> responseHeaders);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy