public class Response<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected T |
content |
protected okhttp3.Response |
httpResponse |
protected java.lang.String |
jsonPayload |
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
protected RateLimit |
rateLimit |
protected java.lang.Class<T> |
type |
| Constructor and Description |
|---|
Response(okhttp3.Response httpResponse,
com.fasterxml.jackson.databind.ObjectMapper mapper,
java.lang.Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
T |
getContent() |
java.lang.String |
getJsonPayload() |
protected void |
readContent() |
protected final okhttp3.Response httpResponse
protected final com.fasterxml.jackson.databind.ObjectMapper mapper
protected final RateLimit rateLimit
protected java.lang.Class<T> type
protected T content
protected java.lang.String jsonPayload
public Response(okhttp3.Response httpResponse,
com.fasterxml.jackson.databind.ObjectMapper mapper,
java.lang.Class<T> type)
public T getContent() throws java.io.IOException
java.io.IOExceptionprotected void readContent()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getJsonPayload()