| semilimes mcu sdk 1.1.2 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
6 class ChannelMessageUpdate
7{
8 private:
9 #define headerSize 33
10 #define optionsHeaderSize 11
11 SmeJson json_data;
12 char* json = nullptr;
13
14// Function: ChannelMessageUpdate.addOptions
15
16// add an list of options
17
18// Prototype:
19// void ChannelMessageUpdate::addOptions(bool silent);
20
21// Parameters:
23
24// Returns:
26 void addOptions(bool silent);
27
28 public:
29
30// Function: ~ChannelMessageUpdate
31
32// distructor of the class, frees up the memory occupied by the array/s
33
34// Prototype:
35// ~ChannelMessageUpdate()
36
37// Parameters:
38
39// Returns:
41 ~ChannelMessageUpdate()
42 {
43 delete[] json;
44 json = nullptr;
45 }
46
47// Function: ChannelMessageUpdate.set
48
49// This endpoint allows to update a specific message published in a channel.
50
51// Prototype:
52// void set(const char* channelId, const char* dataComponent, bool silent);
53
54// Parameters:
58
59// Returns:
61 void set(const char* channelId, const char* dataComponent, bool silent);
62
63// Function: ChannelMessageUpdate.getEPurl
64
65// provides the full url for this endpoint
66
67// Prototype:
68// char* getEPurl();
69
70// Parameters:
71
72// Returns:
74 char* getEPurl();
75
76// Function: ChannelMessageUpdate.getWSEPurl
77
78// provides this endpoint
79
80// Prototype:
81// char* getWSEPurl();
82
83// Parameters:
84
85// Returns:
87 char* getWSEPurl();
88
89// Function: ChannelMessageUpdate.get
90
91// return the json script
92
93// Prototype:
94// void ChannelMessageUpdate::get();
95
96// Parameters:
97
98// Returns:
100 char* get();
101};
102
103#endif
ChannelMessageUpdate
Definition channel_message_update.h:7
ChannelMessageUpdate::~ChannelMessageUpdate
~ChannelMessageUpdate()
Definition channel_message_update.h:41
ChannelMessageUpdate::get
char * get()
Definition channel_message_update.cpp:99
ChannelMessageUpdate::getEPurl
char * getEPurl()
Definition channel_message_update.cpp:65
ChannelMessageUpdate::getWSEPurl
char * getWSEPurl()
Definition channel_message_update.cpp:82
ChannelMessageUpdate::set
void set(const char *channelId, const char *dataComponent, bool silent)
Definition channel_message_update.cpp:18