| semilimes mcu sdk 1.1.2 semilimes Software Development Kit for microcontrollers

Loading...
Searching...
No Matches
channel_message_get.h
1#ifndef _channels_message_get_
2#define _channels_message_get_
3
4#include "../defines.h"
5
6 class ChannelMessageGet
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13
14// Function: ~ChannelMessageGet
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~ChannelMessageGet()
20
21// Parameters:
22
23// Returns:
25 ~ChannelMessageGet()
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: ChannelMessageGet.set
32
33// This endpoint returns a list of messages in the specified Channel.
34
35// Prototype:
36// void set(const char* channelId,const char* messageId,int limit);
37
38// Parameters:
42
43// Returns:
45 void set(const char* channelId,const char* messageId,int limit);
46
47// Function: ChannelMessageGet.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: ChannelMessageGet.getWSEPurl
61
62// provides this endpoint
63
64// Prototype:
65// char* getWSEPurl();
66
67// Parameters:
68
69// Returns:
71 char* getWSEPurl();
72
73// Function: ChannelMessageGet.get
74
75// return the json script
76
77// Prototype:
78// void ChannelMessageGet::get();
79
80// Parameters:
81
82// Returns:
84 char* get();
85};
86
87#endif
ChannelMessageGet
Definition channel_message_get.h:7
ChannelMessageGet::getEPurl
char * getEPurl()
Definition channel_message_get.cpp:41
ChannelMessageGet::getWSEPurl
char * getWSEPurl()
Definition channel_message_get.cpp:58
ChannelMessageGet::set
void set(const char *channelId, const char *messageId, int limit)
Definition channel_message_get.cpp:18
ChannelMessageGet::get
char * get()
Definition channel_message_get.cpp:75
ChannelMessageGet::~ChannelMessageGet
~ChannelMessageGet()
Definition channel_message_get.h:25