semilimes mcu sdk 0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
bucket_update.h
1#ifndef _bucket_update
2#define _bucket_update
3
4#include "../defines.h"
5
7{
8private:
9 SmeJson json_data;
10 char** pjson;
11 char** pjsonArray;
12
13public:
14// Function: BucketUpdate
15
16// This endpoint allows the user to update the content of a specific bucket.
17
18// Prototype:
19// void BucketUpdate(char* json);
20
21// Parameters:
24
25// Returns:
27 BucketUpdate(char* json, char* jsonArray)
28 {
29 pjson = &json;
30 pjsonArray = &jsonArray;
31 json_data.initJson(*pjson);
32 json_data.initJsonArray(*pjsonArray);
33 json_data.addPair2JsonStr(*pjson,"dataComponentType","bucket");
34 }
35
36// Function: BucketUpdate.setObj
37
38// This endpoint allows the user to update the content of a specific bucket.
39
40// Prototype:
41// void setObj(char* bucketId);
42
43// Parameters:
51
52// Returns:
54 void setObj(char* bucketId, char* title, char* description, char* avatar, bool visible, bool locked, bool enReactions);
55
56// Function: BucketUpdate.addDataComponents
57
58// Prototype:
59// void addDataComponents(char* component);
60
61// Append the selected components
62
63// Parameters:
65
66// Returns:
68 void addDataComponents(char* component);
69
70// Function: BucketUpdate.appendDataComponents
71
72// Append the selected dataComponents
73
74// Prototype:
75// void appendDataComponents();
76
77// Parameters:
78
79// Returns:
82
83// Function: BucketUpdate.getEPurl
84
85// provides the full url for this endpoint
86
87// Prototype:
88// char* getEPurl();
89
90// Parameters:
91
92// Returns:
94 char* getEPurl();
95};
96
97#endif
Definition bucket_update.h:7
void appendDataComponents()
Definition bucket_update.cpp:65
char * getEPurl()
Definition bucket_update.cpp:82
void setObj(char *bucketId, char *title, char *description, char *avatar, bool visible, bool locked, bool enReactions)
Definition bucket_update.cpp:22
BucketUpdate(char *json, char *jsonArray)
Definition bucket_update.h:27
void addDataComponents(char *component)
Definition bucket_update.cpp:48