semilimes mcu sdk 1.1.3 semilimes Software Development Kit for microcontrollers

Loading...
Searching...
No Matches
channel_create.h
1#ifndef _channel_create_
2#define _channel_create_
3
4#include "../defines.h"
5
6 class ChannelCreate
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11 char* jsonArray = nullptr;
12
13 public:
14// Function: ~ChannelCreate
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~ChannelCreate()
20
21// Parameters:
22
23// Returns:
25 ~ChannelCreate()
26 {
27 delete[] json;
28 delete[] jsonArray;
29 json = nullptr;
30 jsonArray = nullptr;
31 }
32
33// Function: ChannelCreate.set
34
35// This endpoint allows to create a new channel and set the initial editors. The role of the current accountId will be automatically set to editor.
36
37// Prototype:
38// void set(const char* title,const char* avatar,bool visible,bool locked);
39
40// Parameters:
45
46// Returns:
48 void set(const char* title,const char* avatar,bool visible,bool locked);
49
50// Function: ChannelCreate.addEditorsId
51
52// Prototype:
53// void addEditorsId(const char* data);
54
55// Append the selected editorId
56
57// Parameters:
59
60// Returns:
62 void addEditorsId(const char* data);
63
64// Function: ChannelCreate.appendEditorsIds
65
66// Append the selected EditorsIds
67
68// Prototype:
69// void appendEditorsIds();
70
71// Parameters:
72
73// Returns:
75 void appendEditorsIds();
76
77// Function: ChannelCreate.getEPurl
78
79// provides the full url for this endpoint
80
81// Prototype:
82// char* getEPurl();
83
84// Parameters:
85
86// Returns:
88 char* getEPurl();
89
90// Function: ChannelCreate.getWSEPurl
91
92// provides this endpoint
93
94// Prototype:
95// char* getWSEPurl();
96
97// Parameters:
98
99// Returns:
101 char* getWSEPurl();
102
103// Function: ChannelCreate.get
104
105// return the json script
106
107// Prototype:
108// void ChannelCreate::get();
109
110// Parameters:
111
112// Returns:
114 char* get();
115};
116
117#endif
ChannelCreate
Definition channel_create.h:7
ChannelCreate::getWSEPurl
char * getWSEPurl()
Definition channel_create.cpp:112
ChannelCreate::appendEditorsIds
void appendEditorsIds()
Definition channel_create.cpp:73
ChannelCreate::set
void set(const char *title, const char *avatar, bool visible, bool locked)
Definition channel_create.cpp:19
ChannelCreate::get
char * get()
Definition channel_create.cpp:129
ChannelCreate::~ChannelCreate
~ChannelCreate()
Definition channel_create.h:25
ChannelCreate::getEPurl
char * getEPurl()
Definition channel_create.cpp:95
ChannelCreate::addEditorsId
void addEditorsId(const char *data)
Definition channel_create.cpp:44