semilimes mcu sdk 1.1.3 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
6 class ChannelGet
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13
14// Function: ~ChannelGet
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~ChannelGet()
20
21// Parameters:
22
23// Returns:
25 ~ChannelGet()
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: ChannelGet.set
32
33// This endpoint finds channels based on specified parameters
34
35// Prototype:
36// void set(const char* ownerId,const char* editorId,const char* channelId,const char* title);
37
38// Parameters:
43
44
45// Returns:
47 void set(const char* ownerId,const char* editorId,const char* channelId,const char* title);
48
49// Function: ChannelGet.getEPurl
50
51// provides the full url for this endpoint
52
53// Prototype:
54// char* getEPurl();
55
56// Parameters:
57
58// Returns:
60 char* getEPurl();
61
62// Function: ChannelGet.getWSEPurl
63
64// provides this endpoint
65
66// Prototype:
67// char* getWSEPurl();
68
69// Parameters:
70
71// Returns:
73 char* getWSEPurl();
74
75// Function: ChannelGet.get
76
77// return the json script
78
79// Prototype:
80// void ChannelGet::get();
81
82// Parameters:
83
84// Returns:
86 char* get();
87};
88
89#endif
ChannelGet
Definition channel_get.h:7
ChannelGet::get
char * get()
Definition channel_get.cpp:78
ChannelGet::getEPurl
char * getEPurl()
Definition channel_get.cpp:44
ChannelGet::set
void set(const char *ownerId, const char *editorId, const char *channelId, const char *title)
Definition channel_get.cpp:20
ChannelGet::~ChannelGet
~ChannelGet()
Definition channel_get.h:25
ChannelGet::getWSEPurl
char * getWSEPurl()
Definition channel_get.cpp:61