semilimes mcu sdk 1.0.1
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
7{
8private:
9 #define headerSize 17
10 #define headerArraySize 2
11 SmeJson json_data;
12 char* json = nullptr;
13 char* jsonArray = nullptr;
14
15public:
16// Function: GroupchatsGet
17
18// constructor of the class, init the json
19
20// Prototype:
21// GroupchatsGet()
22
23// Parameters:
24
25// Returns:
28 {
29 json = new char[3];
30 json_data.initJson(json);
31 }
32
33// Function: ~GroupchatsGet
34
35// distructor of the class, frees up the memory occupied by the array/s
36
37// Prototype:
38// ~GroupchatsGet()
39
40// Parameters:
41
42// Returns:
45 {
46 delete[] json;
47 delete[] jsonArray;
48 json = nullptr;
49 jsonArray = nullptr;
50 }
51
52// Function: GroupchatsGet.addRecipientId
53
54// Add the recipientId
55
56// Prototype:
57// void addRecipientId(char* recipientIds);
58
59// Parameters:
61
62// Returns:
64 void addRecipientId(char* recipientId);
65
66// Function: GroupchatsGet.appendRecipientIds
67
68// Append the selected recipientIds
69
70// Prototype:
71// void appendRecipientIds();
72
73// Parameters:
74
75// Returns:
77 void appendRecipientIds();
78
79// Function: GroupchatsGet.getEPurl
80
81// provides the full url for this endpoint
82
83// Prototype:
84// char* getEPurl();
85
86// Parameters:
87
88// Returns:
90 char* getEPurl();
91
92// Function: GroupchatsGet.get
93
94// return the json script
95
96// Prototype:
97// void GroupchatsGet::get();
98
99// Parameters:
100
101// Returns:
103 char* get();
104};
105
106#endif
Definition groupchats_get.h:7
char * get()
Definition groupchats_get.cpp:81
void addRecipientId(char *recipientId)
Definition groupchats_get.cpp:16
~GroupchatsGet()
Definition groupchats_get.h:44
void appendRecipientIds()
Definition groupchats_get.cpp:45
char * getEPurl()
Definition groupchats_get.cpp:64
GroupchatsGet()
Definition groupchats_get.h:27