semilimes mcu sdk 1.1.1
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
7{
8private:
9 #define headerSize 45
10 #define headerArraySize 2
11 SmeJson json_data;
12 char* json = nullptr;
13 char* jsonArray = nullptr;
14
15public:
16// Function: ~ChannelCreate
17
18// distructor of the class, frees up the memory occupied by the array/s
19
20// Prototype:
21// ~ChannelCreate()
22
23// Parameters:
24
25// Returns:
28 {
29 delete[] json;
30 delete[] jsonArray;
31 json = nullptr;
32 jsonArray = nullptr;
33 }
34
35// Function: ChannelCreate.set
36
37// 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.
38
39// Prototype:
40// void set(char* title,char* avatar,bool visible,bool locked);
41
42// Parameters:
47
48// Returns:
50 void set(char* title,char* avatar,bool visible,bool locked);
51
52// Function: ChannelCreate.addEditorsId
53
54// Prototype:
55// void addEditorsId(char* data);
56
57// Append the selected editorId
58
59// Parameters:
61
62// Returns:
64 void addEditorsId(char* data);
65
66// Function: ChannelCreate.appendEditorsIds
67
68// Append the selected EditorsIds
69
70// Prototype:
71// void appendEditorsIds();
72
73// Parameters:
74
75// Returns:
77 void appendEditorsIds();
78
79// Function: ChannelCreate.getEPurl
80
81// provides the full url for this endpoint
82
83// Prototype:
84// char* getEPurl();
85
86// Parameters:
87
88// Returns:
90 char* getEPurl();
91
92// Function: ChannelCreate.get
93
94// return the json script
95
96// Prototype:
97// void ChannelCreate::get();
98
99// Parameters:
100
101// Returns:
103 char* get();
104};
105
106#endif
Definition channel_create.h:7
void addEditorsId(char *data)
Definition channel_create.cpp:44
void appendEditorsIds()
Definition channel_create.cpp:73
void set(char *title, char *avatar, bool visible, bool locked)
Definition channel_create.cpp:19
char * get()
Definition channel_create.cpp:112
~ChannelCreate()
Definition channel_create.h:27
char * getEPurl()
Definition channel_create.cpp:95