semilimes mcu sdk 0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
DcForm Class Reference

Public Member Functions

 DcForm (char *json, char *jsonArray)
 
void setObj (bool submitEnabled, bool retainStatus, char *submitText, char *refName)
 
void addReceiver (char *id, char *featureType)
 
void addFormComponents (char *component)
 
void appendFormComponents ()
 

Public Attributes

char featureType [3][10] = {"contact","groupchat","channel"}
 

Constructor & Destructor Documentation

◆ DcForm()

DcForm::DcForm ( char * json,
char * jsonArray )
inline
Parameters
json- it is the char array that will contain the whole json script
jsonArray- it is a temporary char array that will contain the Form Components
Returns
void

Member Function Documentation

◆ addFormComponents()

void DcForm::addFormComponents ( char * component)
Parameters
component- the json of the form component
Returns
void

◆ addReceiver()

void DcForm::addReceiver ( char * id,
char * featureType )
Parameters
id- the receiver Id to add
featureType- the type of the receiver: char* featureType[3][10] = {"contact","groupchat","channel"}
Returns
void

◆ appendFormComponents()

void DcForm::appendFormComponents ( )
Returns
void

◆ setObj()

void DcForm::setObj ( bool submitEnabled,
bool retainStatus,
char * submitText,
char * refName )
Parameters
submitEnabled- enables the Submit button to be pressed before the form is actually submitted. Otherwise, the form will be submitted each time a user fills in/change values of a form component.
retainStatus- enables the form to maintain the last submitted values when the use case requires many users to operate the same form
submitText- is the text to be displayed in the Submit button of the form
refName- is a friendly name given to the form for later reference when filtering form submissions from clients.
Returns
void

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