| semilimes mcu sdk 1.1.2 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
6 class GroupchatInvite
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11 char* jsonArray = nullptr;
12
13 public:
14// Function: ~GroupchatInvite
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~GroupchatInvite()
20
21// Parameters:
22
23// Returns:
25 ~GroupchatInvite()
26 {
27 delete[] json;
28 delete[] jsonArray;
29 json = nullptr;
30 jsonArray = nullptr;
31 }
32
33// Function: GroupchatInvite.set
34
35// This endpoint allows to invite other recipients to the specified group chat.
36
37// Prototype:
38// void set(const char* groupChatIds)
39
40// Parameters:
42
43// Returns:
45 void set(const char* groupChatId);
46
47// Function: GroupchatInvite.addRecipientId
48
49// Add the recipientId
50
51// Prototype:
52// void addRecipientId(const char* recipientId);
53
54// Parameters:
56
57// Returns:
59 void addRecipientId(const char* recipientId);
60
61// Function: GroupchatInvite.appendRecipientIds
62
63// Append the selected recipientIds
64
65// Prototype:
66// void appendRecipientIds();
67
68// Parameters:
69
70// Returns:
72 void appendRecipientIds();
73
74// Function: GetGroupchatMessage.getEPurl
75
76// provides the full url for this endpoint
77
78// Prototype:
79// char* getEPurl();
80
81// Parameters:
82
83// Returns:
85 char* getEPurl();
86
87// Function: GetGroupchatMessage.getWSEPurl
88
89// provides this endpoint
90
91// Prototype:
92// char* getWSEPurl();
93
94// Parameters:
95
96// Returns:
98 char* getWSEPurl();
99
100// Function: GroupchatInvite.get
101
102// return the json script
103
104// Prototype:
105// void GroupchatInvite::get();
106
107// Parameters:
108
109// Returns:
111 char* get();
112};
113
114#endif
GroupchatInvite
Definition groupchat_invite.h:7
GroupchatInvite::get
char * get()
Definition groupchat_invite.cpp:122
GroupchatInvite::~GroupchatInvite
~GroupchatInvite()
Definition groupchat_invite.h:25
GroupchatInvite::appendRecipientIds
void appendRecipientIds()
Definition groupchat_invite.cpp:66
GroupchatInvite::set
void set(const char *groupChatId)
Definition groupchat_invite.cpp:15
GroupchatInvite::getEPurl
char * getEPurl()
Definition groupchat_invite.cpp:88
GroupchatInvite::getWSEPurl
char * getWSEPurl()
Definition groupchat_invite.cpp:105
GroupchatInvite::addRecipientId
void addRecipientId(const char *recipientId)
Definition groupchat_invite.cpp:37