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, Object resp, boolean success)
Public Methods
OfflineRequestInfo getRequest()
Get the RequestInfo which resulted in this response
Object getResponse()
Get the JSON response Object.
boolean isSuccess()
Indication of if this request was a success or failure
void setRequest(OfflineRequestInfo request)
void setResponse(Object response)
void setSuccess(boolean success)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

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

Public Methods

public OfflineRequestInfo getRequest ()

Get the RequestInfo which resulted in this response

Returns
  • the request associated with thsi response

public Object getResponse ()

Get the JSON response Object.

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 (Object response)

public void setSuccess (boolean success)