protected abstract static class AbstractResource.TwitchHttpResponseHandler
extends com.mb3364.http.HttpResponseHandler
Since all Http failure logic is the same, we handle it all in one place: here.
Constructor and Description |
---|
TwitchHttpResponseHandler(BaseFailureHandler apiHandler) |
Modifier and Type | Method and Description |
---|---|
void |
onFailure(com.mb3364.http.HttpResponse response) |
void |
onFailure(java.lang.Throwable throwable) |
abstract void |
onSuccess(com.mb3364.http.HttpResponse response) |
public TwitchHttpResponseHandler(BaseFailureHandler apiHandler)
public abstract void onSuccess(com.mb3364.http.HttpResponse response)
onSuccess
in class com.mb3364.http.HttpResponseHandler
public void onFailure(com.mb3364.http.HttpResponse response)
onFailure
in class com.mb3364.http.HttpResponseHandler
public void onFailure(java.lang.Throwable throwable)
onFailure
in class com.mb3364.http.HttpResponseHandler