Created
May 16, 2018 05:51
-
-
Save vishalhalani/fe5eeeac5e58bf951d360ef33f8ec5fb to your computer and use it in GitHub Desktop.
interface to handle all response of web call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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