| semilimes mcu sdk 1.1.2 semilimes Software Development Kit for microcontrollers

Loading...
Searching...
No Matches
groupchats_get.h
1#ifndef _groupchats_get_
2#define _groupchats_get_
3
4#include "../defines.h"
5
6 class GroupchatsGet
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11 char* jsonArray = nullptr;
12
13 public:
14// Function: GroupchatsGet
15
16// constructor of the class, init the json
17
18// Prototype:
19// GroupchatsGet()
20
21// Parameters:
22
23// Returns:
25 GroupchatsGet()
26 {
27 json = new char[3];
28 json_data.initJson(json);
29 }
30
31// Function: ~GroupchatsGet
32
33// distructor of the class, frees up the memory occupied by the array/s
34
35// Prototype:
36// ~GroupchatsGet()
37
38// Parameters:
39
40// Returns:
42 ~GroupchatsGet()
43 {
44 delete[] json;
45 delete[] jsonArray;
46 json = nullptr;
47 jsonArray = nullptr;
48 }
49
50// Function: GroupchatsGet.addRecipientId
51
52// Add the recipientId
53
54// Prototype:
55// void addRecipientId(const char* recipientIds);
56
57// Parameters:
59
60// Returns:
62 void addRecipientId(const char* recipientId);
63
64// Function: GroupchatsGet.appendRecipientIds
65
66// Append the selected recipientIds
67
68// Prototype:
69// void appendRecipientIds();
70
71// Parameters:
72
73// Returns:
75 void appendRecipientIds();
76
77// Function: GroupchatsGet.getEPurl
78
79// provides the full url for this endpoint
80
81// Prototype:
82// char* getEPurl();
83
84// Parameters:
85
86// Returns:
88 char* getEPurl();
89
90// Function: GroupchatsGet.getWSEPurl
91
92// provides this endpoint
93
94// Prototype:
95// char* getWSEPurl();
96
97// Parameters:
98
99// Returns:
101 char* getWSEPurl();
102
103// Function: GroupchatsGet.get
104
105// return the json script
106
107// Prototype:
108// void GroupchatsGet::get();
109
110// Parameters:
111
112// Returns:
114 char* get();
115};
116
117#endif
GroupchatsGet
Definition groupchats_get.h:7
GroupchatsGet::get
char * get()
Definition groupchats_get.cpp:101
GroupchatsGet::addRecipientId
void addRecipientId(const char *recipientId)
Definition groupchats_get.cpp:16
GroupchatsGet::~GroupchatsGet
~GroupchatsGet()
Definition groupchats_get.h:42
GroupchatsGet::appendRecipientIds
void appendRecipientIds()
Definition groupchats_get.cpp:45
GroupchatsGet::getEPurl
char * getEPurl()
Definition groupchats_get.cpp:67
GroupchatsGet::GroupchatsGet
GroupchatsGet()
Definition groupchats_get.h:25
GroupchatsGet::getWSEPurl
char * getWSEPurl()
Definition groupchats_get.cpp:84