semilimes mcu sdk 1.0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
channels_my_get.h
1#ifndef _channels_my_get_
2#define _channels_my_get_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 34
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14// Function: ~ChannelsMyGet
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~ChannelsMyGet()
20
21// Parameters:
22
23// Returns:
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: ChannelsMyGet.set
32
33// This endpoint retrieves the channels the calling user account is owner, editor or subscriber of.
34
35// Prototype:
36// void set(bool owner,bool editor,bool subscriber);
37
38// Parameters:
42
43// Returns:
45 void set(bool owner,bool editor,bool subscriber);
46
47// Function: ChannelsMyGet.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: ChannelsMyGet.get
61
62// return the json script
63
64// Prototype:
65// void ChannelsMyGet::get();
66
67// Parameters:
68
69// Returns:
71 char* get();
72};
73
74#endif
Definition channels_my_get.h:7
~ChannelsMyGet()
Definition channels_my_get.h:25
char * get()
Definition channels_my_get.cpp:58
char * getEPurl()
Definition channels_my_get.cpp:41
void set(bool owner, bool editor, bool subscriber)
Definition channels_my_get.cpp:18