semilimes mcu sdk 1.0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
channel_message_update.h
1#ifndef _update_to_channel_request_
2#define _update_to_channel_request_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 33
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14
15// Function: ~ChannelMessageUpdate
16
17// distructor of the class, frees up the memory occupied by the array/s
18
19// Prototype:
20// ~ChannelMessageUpdate()
21
22// Parameters:
23
24// Returns:
27 {
28 delete[] json;
29 json = nullptr;
30 }
31
32// Function: ChannelMessageUpdate.set
33
34// This endpoint allows to update a specific message published in a channel.
35
36// Prototype:
37// void set(char* messageId, char* dataComponent);
38
39// Parameters:
42
43// Returns:
45 void set(char* messageId, char* dataComponent);
46
47// Function: ChannelMessageUpdate.getEPurl
48
49// provides the full url for this endpoint
50
51// Prototype:
52// char* getEPurl();
53
54// Parameters:
55
56// Returns:
58 char* getEPurl();
59
60// Function: ChannelMessageUpdate.get
61
62// return the json script
63
64// Prototype:
65// void ChannelMessageUpdate::get();
66
67// Parameters:
68
69// Returns:
71 char* get();
72};
73
74#endif
Definition channel_message_update.h:7
~ChannelMessageUpdate()
Definition channel_message_update.h:26
char * get()
Definition channel_message_update.cpp:56
char * getEPurl()
Definition channel_message_update.cpp:39
void set(char *messageId, char *dataComponent)
Definition channel_message_update.cpp:17