semilimes mcu sdk 1.1.1
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
7{
8private:
9 #define headerSize 40
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14
15// Function: ~ChannelMessageGet
16
17// distructor of the class, frees up the memory occupied by the array/s
18
19// Prototype:
20// ~ChannelMessageGet()
21
22// Parameters:
23
24// Returns:
27 {
28 delete[] json;
29 json = nullptr;
30 }
31
32// Function: ChannelMessageGet.set
33
34// This endpoint returns a list of messages in the specified Channel.
35
36// Prototype:
37// void set(char* channelId,char* messageId,int limit);
38
39// Parameters:
43
44// Returns:
46 void set(char* channelId,char* messageId,int limit);
47
48// Function: ChannelMessageGet.getEPurl
49
50// provides the full url for this endpoint
51
52// Prototype:
53// char* getEPurl();
54
55// Parameters:
56
57// Returns:
59 char* getEPurl();
60
61// Function: ChannelMessageGet.get
62
63// return the json script
64
65// Prototype:
66// void ChannelMessageGet::get();
67
68// Parameters:
69
70// Returns:
72 char* get();
73};
74
75#endif
Definition channel_message_get.h:7
char * getEPurl()
Definition channel_message_get.cpp:41
char * get()
Definition channel_message_get.cpp:58
void set(char *channelId, char *messageId, int limit)
Definition channel_message_get.cpp:18
~ChannelMessageGet()
Definition channel_message_get.h:26