
com.moesif.api.http.client.APICallBack Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moesif-repo-test Show documentation
Show all versions of moesif-repo-test Show documentation
Test project for Moesif maven
The newest version!
/*
* MoesifAPILib
*
*
*/
package com.moesif.api.http.client;
import com.moesif.api.http.client.HttpContext;
/**
* Callback class for handling API calls with a templated response type T
*/
public interface APICallBack {
/**
* On Completed callback for API calls
* @param context The context of the API request
* @param response The response received from the API Call
*/
public void onSuccess(HttpContext context, T response);
/**
* On Completed callback for API calls
* @param context The context of the API request
* @param error Any error detected during the API Call and/or deserialization
*/
public void onFailure(HttpContext context, Throwable error);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy