semilimes mcu sdk 1.1.5
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
p2p_message_update.h
1#ifndef _p2p_message_update_
2#define _p2p_message_update_
3
4#include "../defines.h"
5
7{
8private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12// Function: P2pMessageUpdate.addOptions
13
14// add an list of options
15
16// Prototype:
17// void P2pMessageUpdate::addOptions(bool silent);
18
19// Parameters:
21
22// Returns:
24 void addOptions(bool silent);
25
26public:
27// Function: ~P2pMessageUpdate
28
29// distructor of the class, frees up the memory occupied by the array/s
30
31// Prototype:
32// ~P2pMessageUpdate()
33
34// Parameters:
35
36// Returns:
39 {
40 delete[] json;
41 json = nullptr;
42 }
43
44// Function: P2pMessageUpdate.set
45
46// This endpoint allows to update a specific message published in a p2p chat.
47
48// Prototype:
49// void set(const char* messageId, const char* dataComponent, bool silent);
50
51// Parameters:
55
56// Returns:
58 void set(const char* messageId, const char* dataComponent, bool silent);
59
60// Function: P2pMessageUpdate.getEPurl
61
62// provides the full url for this endpoint
63
64// Prototype:
65// char* getEPurl();
66
67// Parameters:
68
69// Returns:
71 char* getEPurl();
72
73// Function: P2pMessageUpdate.getWSEPurl
74
75// provides this endpoint
76
77// Prototype:
78// char* getWSEPurl();
79
80// Parameters:
81
82// Returns:
84 char* getWSEPurl();
85
86// Function: P2pMessageUpdate.get
87
88// return the json script
89
90// Prototype:
91// void P2pMessageUpdate::get();
92
93// Parameters:
94
95// Returns:
97 char* get();
98};
99
100#endif
Definition p2p_message_update.h:7
char * getWSEPurl()
Definition p2p_message_update.cpp:82
char * get()
Definition p2p_message_update.cpp:99
~P2pMessageUpdate()
Definition p2p_message_update.h:38
char * getEPurl()
Definition p2p_message_update.cpp:65
void set(const char *messageId, const char *dataComponent, bool silent)
Definition p2p_message_update.cpp:18