Skip to content

Instantly share code, notes, and snippets.

@vishalhalani
Created May 16, 2018 05:51
Show Gist options
  • Save vishalhalani/fe5eeeac5e58bf951d360ef33f8ec5fb to your computer and use it in GitHub Desktop.
Save vishalhalani/fe5eeeac5e58bf951d360ef33f8ec5fb to your computer and use it in GitHub Desktop.
interface to handle all response of web call
/**
* Created by vishal.halani on 31-Aug-17.
*/
public interface OnWebAPIResponseListener<T> {
void onCallComplete(T object, int requestCode);
// void onCallComplete(List<?> obj, int requestCode);
void onCallError(APIError errorModel, int requestCode);
void onCallFailure(String errorMessage, int requestCode);
void OnTokenRefresh(boolean isRefresh, int requestCode);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment