public class

OfflineRequestInfo

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

Class Overview

This class is an abstraction of a REST request.

An instance of this class stores the relationship between an Http Verb and and an associated entity's ID.

myRequest.getHttpVerb() represents the HTTP verb as a String ("GET", "PUT", "DELETE", "POST");

myRequest.getEntityID() represents the id of the entity, which might be stored in the local store.

Summary

Nested Classes
class OfflineRequestInfo.OfflineMetaData  
Public Constructors
OfflineRequestInfo(String httpVerb, OfflineRequestInfo.OfflineMetaData entityID)
OfflineRequestInfo(String httpVerb, String entityID, String clientAppVersion, String customProperties)
Public Methods
OfflineRequestInfo.OfflineMetaData getEntityID()
Get the entity used by this request.
String getHttpVerb()
Get the HTTP VERB used by this request.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OfflineRequestInfo (String httpVerb, OfflineRequestInfo.OfflineMetaData entityID)

public OfflineRequestInfo (String httpVerb, String entityID, String clientAppVersion, String customProperties)

Public Methods

public OfflineRequestInfo.OfflineMetaData getEntityID ()

Get the entity used by this request.

Returns
  • the _id of the entity affected by this request

public String getHttpVerb ()

Get the HTTP VERB used by this request.

Returns
  • the HTTP Verb used by this request