semilimes mcu sdk 1.1.4 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
6 class ChannelsMyGet
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13// Function: ~ChannelsMyGet
14
15// distructor of the class, frees up the memory occupied by the array/s
16
17// Prototype:
18// ~ChannelsMyGet()
19
20// Parameters:
21
22// Returns:
24 ~ChannelsMyGet()
25 {
26 delete[] json;
27 json = nullptr;
28 }
29
30// Function: ChannelsMyGet.set
31
32// This endpoint retrieves the channels the calling user account is owner, editor or subscriber of.
33
34// Prototype:
35// void set(bool owner,bool editor,bool subscriber);
36
37// Parameters:
41
42// Returns:
44 void set(bool owner,bool editor,bool subscriber);
45
46// Function: ChannelsMyGet.getEPurl
47
48// provides the full url for this endpoint
49
50// Prototype:
51// char* getEPurl();
52
53// Parameters:
54
55// Returns:
57 char* getEPurl();
58
59// Function: ChannelsMyGet.getWSEPurl
60
61// provides this endpoint
62
63// Prototype:
64// char* getWSEPurl();
65
66// Parameters:
67
68// Returns:
70 char* getWSEPurl();
71
72// Function: ChannelsMyGet.get
73
74// return the json script
75
76// Prototype:
77// void ChannelsMyGet::get();
78
79// Parameters:
80
81// Returns:
83 char* get();
84};
85
86#endif
ChannelsMyGet
Definition channels_my_get.h:7
ChannelsMyGet::~ChannelsMyGet
~ChannelsMyGet()
Definition channels_my_get.h:24
ChannelsMyGet::get
char * get()
Definition channels_my_get.cpp:75
ChannelsMyGet::getEPurl
char * getEPurl()
Definition channels_my_get.cpp:41
ChannelsMyGet::set
void set(bool owner, bool editor, bool subscriber)
Definition channels_my_get.cpp:18
ChannelsMyGet::getWSEPurl
char * getWSEPurl()
Definition channels_my_get.cpp:58