semilimes mcu sdk
0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
dc_contact.h
1
#ifndef _dc_contact_
2
#define _dc_contact_
3
4
#include "../defines.h"
5
6
class
DcContact
7
{
8
private
:
9
SmeJson json_data;
10
char
** pjson;
11
char
** pjsonArray;
12
13
public
:
14
// Function: DcContact
15
16
// A message that references one or more account Ids to be added as contacts
17
18
// Prototype:
19
// void DcContact(char* json);
20
21
// Parameters:
23
24
// Returns:
26
DcContact
(
char
* json,
char
* jsonArray)
27
{
28
pjson = &json;
29
pjsonArray = &jsonArray;
30
json_data.initJson(*pjson);
31
json_data.initJsonArray(*pjsonArray);
32
json_data.addPair2JsonStr(*pjson,
"dataComponentType"
,
"contact"
);
33
}
34
35
// Function: DcContact.setObj
36
37
// A message that references one or more account Ids to be added as contacts
38
39
// Prototype:
40
// void DcContact::setObj();
41
42
// Parameters:
43
44
// Returns:
46
void
setObj
();
47
48
// Function: DcContact.addContactIds
49
50
// Add a contact Id to the array
51
52
// Prototype:
53
// void DcContact::addContactIds(char* contactIds);
54
55
// Parameters:
57
58
// Returns:
60
void
addContactIds
(
char
* data);
61
62
// Function: DcContact.appendDataContactIds
63
64
// Append the contact Id array to the json message
65
66
// Prototype:
67
// void DcContact::appendDataContactIds();
68
69
// Parameters:
70
71
// Returns:
73
void
appendDataContactIds
();
74
};
75
76
#endif
DcContact
Definition
dc_contact.h:7
DcContact::setObj
void setObj()
Definition
dc_contact.cpp:15
DcContact::appendDataContactIds
void appendDataContactIds()
Definition
dc_contact.cpp:52
DcContact::addContactIds
void addContactIds(char *data)
Definition
dc_contact.cpp:35
DcContact::DcContact
DcContact(char *json, char *jsonArray)
Definition
dc_contact.h:26
semilimes
src
components
dc_contact.h
Generated by
1.12.0