Encapsulates the response, successful or otherwise, of a call to the Facebook platform.
Estende: | Object |
Pacote: | facebook |
getError()
Returns information about any errors that may have occurred during the request.
public final FacebookRequestError getError()
getGraphObject()
The single graph object returned for this request, if any.
public final GraphObject getGraphObject()
getGraphObjectAs(Class)
The single graph object returned for this request, if any, cast into a particular type of GraphObject.
public final GraphObject getGraphObjectAs(Class graphObjectClass)
Parâmetro | Descrição |
---|---|
graphObjectClass | The GraphObject-derived interface to cast the graph object into |
getGraphObjectList()
The list of graph objects returned for this request, if any.
public final GraphObjectList getGraphObjectList()
getGraphObjectListAs(Class)
The list of graph objects returned for this request, if any, cast into a particular type of GraphObject.
public final GraphObjectList getGraphObjectListAs(Class graphObjectClass)
Parâmetro | Descrição |
---|---|
graphObjectClass | The GraphObject-derived interface to cast the graph objects into |
getConnection()
Returns the HttpURLConnection that this response was generated from. If the response was retrieved from the cache, this will be null.
public final HttpURLConnection getConnection()
getRequest()
Returns the request that this response is for.
public Request getRequest()
getRawResponse()
Returns the server response as a String that this response is for.
public String getRawResponse()
getRequestForPagedResults(PagingDirection)
If a Response contains results that contain paging information, returns a new Request that will retrieve the next page of results, in whichever direction is desired. If no paging information is available, returns null.
public Request getRequestForPagedResults(PagingDirection direction)
Parâmetro | Descrição |
---|---|
direction | Enum indicating whether to page forward or backward |
getIsFromCache()
Indicates whether the response was retrieved from a local cache or from the server.
public final boolean getIsFromCache()
NON_JSON_RESPONSE_PROPERTY
public static final String NON_JSON_RESPONSE_PROPERTY
SUCCESS_KEY
public static final String SUCCESS_KEY