semilimes mcu sdk 1.1.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
groupchat_invite.h
1#ifndef _groupchat_invite_
2#define _groupchat_invite_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 34
10 #define headerArraySize 2
11 SmeJson json_data;
12 char* json = nullptr;
13 char* jsonArray = nullptr;
14
15public:
16// Function: ~GroupchatInvite
17
18// distructor of the class, frees up the memory occupied by the array/s
19
20// Prototype:
21// ~GroupchatInvite()
22
23// Parameters:
24
25// Returns:
28 {
29 delete[] json;
30 delete[] jsonArray;
31 json = nullptr;
32 jsonArray = nullptr;
33 }
34
35// Function: GroupchatInvite.set
36
37// This endpoint allows to invite other recipients to the specified group chat.
38
39// Prototype:
40// void set(char* groupChatIds)
41
42// Parameters:
44
45// Returns:
47 void set(char* groupChatId);
48
49// Function: GroupchatInvite.addRecipientId
50
51// Add the recipientId
52
53// Prototype:
54// void addRecipientId(char* recipientId);
55
56// Parameters:
58
59// Returns:
61 void addRecipientId(char* recipientId);
62
63// Function: GroupchatInvite.appendRecipientIds
64
65// Append the selected recipientIds
66
67// Prototype:
68// void appendRecipientIds();
69
70// Parameters:
71
72// Returns:
74 void appendRecipientIds();
75
76// Function: GetGroupchatMessage.getEPurl
77
78// provides the full url for this endpoint
79
80// Prototype:
81// char* getEPurl();
82
83// Parameters:
84
85// Returns:
87 char* getEPurl();
88
89// Function: GroupchatInvite.get
90
91// return the json script
92
93// Prototype:
94// void GroupchatInvite::get();
95
96// Parameters:
97
98// Returns:
100 char* get();
101};
102
103#endif
Definition groupchat_invite.h:7
void addRecipientId(char *recipientId)
Definition groupchat_invite.cpp:37
char * get()
Definition groupchat_invite.cpp:105
~GroupchatInvite()
Definition groupchat_invite.h:27
void appendRecipientIds()
Definition groupchat_invite.cpp:66
char * getEPurl()
Definition groupchat_invite.cpp:88
void set(char *groupChatId)
Definition groupchat_invite.cpp:15