semilimes mcu sdk 1.1.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
channel_get.h
1#ifndef _get_channels_
2#define _get_channels_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 54
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14
15// Function: ~ChannelGet
16
17// distructor of the class, frees up the memory occupied by the array/s
18
19// Prototype:
20// ~ChannelGet()
21
22// Parameters:
23
24// Returns:
27 {
28 delete[] json;
29 json = nullptr;
30 }
31
32// Function: ChannelGet.set
33
34// This endpoint finds channels based on specified parameters
35
36// Prototype:
37// void set(char* ownerId,char* editorId,char* channelId,char* title);
38
39// Parameters:
44
45
46// Returns:
48 void set(char* ownerId,char* editorId,char* channelId,char* title);
49
50// Function: ChannelGet.getEPurl
51
52// provides the full url for this endpoint
53
54// Prototype:
55// char* getEPurl();
56
57// Parameters:
58
59// Returns:
61 char* getEPurl();
62
63// Function: ChannelGet.get
64
65// return the json script
66
67// Prototype:
68// void ChannelGet::get();
69
70// Parameters:
71
72// Returns:
74 char* get();
75};
76
77#endif
Definition channel_get.h:7
char * get()
Definition channel_get.cpp:61
char * getEPurl()
Definition channel_get.cpp:44
~ChannelGet()
Definition channel_get.h:26
void set(char *ownerId, char *editorId, char *channelId, char *title)
Definition channel_get.cpp:20