semilimes mcu sdk 0.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 SmeJson json_data;
10 char** pjson;
11 char** pjsonArray;
12
13public:
14// Function: ChannelCreate
15
16// 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.
17
18// Prototype:
19// void ChannelCreate(char* json);
20
21// Parameters:
24
25// Returns:
27 ChannelCreate(char* json, char* jsonArray)
28 {
29 pjson = &json;
30 pjsonArray = &jsonArray;
31 json_data.initJson(*pjson);
32 json_data.initJsonArray(*pjsonArray);
33 }
34
35// Function: ChannelCreate.setObj
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 setObj(char* title,char* avatar,bool visible,bool locked);
41
42// Parameters:
47
48// Returns:
50 void setObj(char* title,char* avatar,bool visible,bool locked);
51
52// Function: ChannelCreate.addEditorsIds
53
54// Prototype:
55// void addEditorsIds(char* data);
56
57// Append the selected editorId
58
59// Parameters:
61
62// Returns:
64 void addEditorsIds(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
93#endif
Definition channel_create.h:7
ChannelCreate(char *json, char *jsonArray)
Definition channel_create.h:27
void appendEditorsIds()
Definition channel_create.cpp:58
void setObj(char *title, char *avatar, bool visible, bool locked)
Definition channel_create.cpp:19
char * getEPurl()
Definition channel_create.cpp:75
void addEditorsIds(char *data)
Definition channel_create.cpp:41