java.lang.Object | |
↳ | com.kinvey.android.offline.OfflineResponseInfo |
This class maintains information about a response from a request executed by the offline sync service. myResponse.getRequest().getHTTPVerb() represents the HTTP verb as a String ("GET", "PUT", "DELETE", "POST"); myResponse.getRequest().getEntityID() represents the id of the entity, which might be stored in the local store. myResponse.getResponse() represents the response of the associated request.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OfflineResponseInfo(OfflineRequestInfo req, String resp, boolean success) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OfflineRequestInfo |
getRequest()
Get the RequestInfo which resulted in this response
| ||||||||||
String |
getResponse()
Get the JSON response as a String directly.
| ||||||||||
boolean |
isSuccess()
Indication of if this request was a success or failure
| ||||||||||
void | setRequest(OfflineRequestInfo request) | ||||||||||
void | setResponse(String response) | ||||||||||
void | setSuccess(boolean success) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Get the RequestInfo which resulted in this response
Get the JSON response as a String directly.
Indication of if this request was a success or failure