public interface SteamResponse
| Modifier and Type | Method and Description |
|---|---|
void |
onError(String message)
Called when something bad happened with the request.
|
void |
onResponse(okhttp3.Request request,
okhttp3.Response response,
Optional<com.google.gson.JsonObject> body)
Called within
SteamMethod.execute(SteamHTTPMethod, SteamHost, SteamVersion, SteamVisibility, Input, SteamResponse, boolean) to
return the response from the Steam API. |
void onResponse(okhttp3.Request request,
okhttp3.Response response,
Optional<com.google.gson.JsonObject> body)
Called within SteamMethod.execute(SteamHTTPMethod, SteamHost, SteamVersion, SteamVisibility, Input, SteamResponse, boolean) to
return the response from the Steam API.
request - The original request send to Steam's web server.response - The original response we received.body - The parsed body, if possible otherwise it is Optional.empty().void onError(String message)
Called when something bad happened with the request.
message - The message describing the onError.Copyright © 2017. All rights reserved.