public class

OfflineResponseInfo

extends Object
implements Serializable
java.lang.Object
   ↳ com.kinvey.android.offline.OfflineResponseInfo

Class Overview

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.

Summary

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
From class java.lang.Object

Public Constructors

public OfflineResponseInfo (OfflineRequestInfo req, String resp, boolean success)

Public Methods

public OfflineRequestInfo getRequest ()

Get the RequestInfo which resulted in this response

Returns
  • the request associated with thsi response

public String getResponse ()

Get the JSON response as a String directly.

Returns
  • the JSON response.

public boolean isSuccess ()

Indication of if this request was a success or failure

Returns
  • true if success, false if failed.

public void setRequest (OfflineRequestInfo request)

public void setResponse (String response)

public void setSuccess (boolean success)