Parse Arduino Yun SDK  1
Parse Arduino Yun SDK
Public Member Functions | Protected Member Functions
ParseObjectCreate Class Reference

Class responsible for new Parse object creation. More...

#include <ParseObjectCreate.h>

Inheritance diagram for ParseObjectCreate:
ParseRequest ParseCloudFunction ParseObjectUpdate ParseTrackEvent

Public Member Functions

 ParseObjectCreate ()
 Constructor of ParseObjectCreate object.
 
void add (const char *key, int d)
 Add a key and integer value pair to object. More...
 
void add (const char *key, double d)
 Add a key and double value pair to object. More...
 
void add (const char *key, const char *s)
 add a key and string value pair to object. More...
 
void add (const char *key, bool b)
 add a key and boolean value pair to object. More...
 
void addGeoPoint (const char *key, double lat, double lon)
 add a key and GeoPoint value pair to object. More...
 
void addJSONValue (const char *key, const char *json)
 add a key and json value pair to object. More...
 
void addJSONValue (const char *key, const String &json)
 add a key and json value pair to object. More...
 
void setJSONBody (const char *jsonBody)
 set the json body of object directly. More...
 
void setJSONBody (const String &jsonBody)
 set the json body of object directly. More...
 
virtual ParseResponse send ()
 launch the object creation request and execute.
 
- Public Member Functions inherited from ParseRequest
 ParseRequest ()
 Constructor of ParseRequest object.
 
 ~ParseRequest ()
 Destructor of ParseRequest object.
 
void setClassName (const char *className)
 set the ParseObject class name in which request will be performed. More...
 
void setObjectId (const char *objectId)
 set the ParseObject object id in which request will be performed. More...
 

Protected Member Functions

void addKey (const char *key)
 

Additional Inherited Members

- Protected Attributes inherited from ParseRequest
String httpPath
 
String requestBody
 
bool isBodySet
 

Detailed Description

Class responsible for new Parse object creation.

Member Function Documentation

void ParseObjectCreate::add ( const char *  key,
int  d 
)

Add a key and integer value pair to object.

Parameters
keyThe key name.
dThe value.
void ParseObjectCreate::add ( const char *  key,
double  d 
)

Add a key and double value pair to object.

Parameters
keyThe key name.
dThe value.
ParseObjectCreate::add ( const char *  key,
const char *  s 
)

add a key and string value pair to object.

Parameters
keyThe key name.
sThe value.
void ParseObjectCreate::add ( const char *  key,
bool  b 
)

add a key and boolean value pair to object.

Parameters
keyThe key name.
bThe value.
void ParseObjectCreate::addGeoPoint ( const char *  key,
double  lat,
double  lon 
)

add a key and GeoPoint value pair to object.

Parameters
keyThe key name.
latThe latitude value.
lonThe logitude value.
void ParseObjectCreate::addJSONValue ( const char *  key,
const char *  json 
)

add a key and json value pair to object.

Parameters
keyThe key name.
jsonThe value.
void ParseObjectCreate::addJSONValue ( const char *  key,
const String &  json 
)

add a key and json value pair to object.

Parameters
keyThe key name.
jsonThe value.
void ParseObjectCreate::setJSONBody ( const char *  jsonBody)

set the json body of object directly.

NOTE: this will remove all previous key-value pairs set if there are any

Parameters
jsonBodyThe new JSON body.
void ParseObjectCreate::setJSONBody ( const String &  jsonBody)

set the json body of object directly.

NOTE: this will remove all previous key-value pairs set if there are any

Parameters
jsonBodyThe new JSON body.

The documentation for this class was generated from the following files: