semilimes mcu sdk 1.1.1
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 #define headerSize 33
10 #define optionsHeaderSize 11
11 SmeJson json_data;
12 char* json = nullptr;
13
14// Function: P2pMessageUpdate.addOptions
15
16// add an list of options
17
18// Prototype:
19// void P2pMessageUpdate::addOptions(bool silent);
20
21// Parameters:
23
24// Returns:
26 void addOptions(bool silent);
27
28public:
29// Function: ~P2pMessageUpdate
30
31// distructor of the class, frees up the memory occupied by the array/s
32
33// Prototype:
34// ~P2pMessageUpdate()
35
36// Parameters:
37
38// Returns:
41 {
42 delete[] json;
43 json = nullptr;
44 }
45
46// Function: P2pMessageUpdate.set
47
48// This endpoint allows to update a specific message published in a p2p chat.
49
50// Prototype:
51// void set(char* messageId, char* dataComponent);
52
53// Parameters:
57
58// Returns:
60 void set(char* messageId, char* dataComponent, bool silent);
61
62// Function: P2pMessageUpdate.getEPurl
63
64// provides the full url for this endpoint
65
66// Prototype:
67// char* getEPurl();
68
69// Parameters:
70
71// Returns:
73 char* getEPurl();
74
75// Function: P2pMessageUpdate.get
76
77// return the json script
78
79// Prototype:
80// void P2pMessageUpdate::get();
81
82// Parameters:
83
84// Returns:
86 char* get();
87};
88
89#endif
Definition p2p_message_update.h:7
char * get()
Definition p2p_message_update.cpp:82
void set(char *messageId, char *dataComponent, bool silent)
Definition p2p_message_update.cpp:18
~P2pMessageUpdate()
Definition p2p_message_update.h:40
char * getEPurl()
Definition p2p_message_update.cpp:65