public class Resource
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Resource[] |
fromArray(Response response,
java.lang.Class klass)
Turns a response into a Gson deserialized array of resources,
attaching the response to each resource.
|
static Resource |
fromObject(Response response,
java.lang.Class klass)
Turns a response into a Gson deserialized resource,
attaching the response to the resource.
|
java.lang.Class |
getDeSerializationClass()
The class used for deserialization.
|
Response |
getResponse()
The original response that this object is populated from.
|
public static Resource[] fromArray(Response response, java.lang.Class klass)
public static Resource fromObject(Response response, java.lang.Class klass)
public Response getResponse()
public java.lang.Class getDeSerializationClass()