semilimes mcu sdk 1.1.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 #define headerSize 120
10 #define headerArraySize 2
11 SmeJson json_data;
12 char* json = nullptr;
13 char* jsonArray = nullptr;
14
15public:
16// Function: ~BucketUpdate
17
18// distructor of the class, frees up the memory occupied by the array/s
19
20// Prototype:
21// ~BucketUpdate()
22
23// Parameters:
24
25// Returns:
28 {
29 delete[] json;
30 delete[] jsonArray;
31 json = nullptr;
32 jsonArray = nullptr;
33 }
34
35// Function: BucketUpdate.set
36
37// This endpoint allows the user to update the content of a specific bucket.
38
39// Prototype:
40// void set(char* bucketId);
41
42// Parameters:
50
51// Returns:
53 void set(char* bucketId, char* title, char* description, char* avatar, bool visible, bool locked, bool enReactions);
54
55// Function: BucketUpdate.addDataComponents
56
57// Prototype:
58// void addDataComponents(char* component);
59
60// Append the selected components
61
62// Parameters:
64
65// Returns:
67 void addDataComponents(char* component);
68
69// Function: BucketUpdate.appendDataComponents
70
71// Append the selected dataComponents
72
73// Prototype:
74// void appendDataComponents();
75
76// Parameters:
77
78// Returns:
81
82// Function: BucketUpdate.getEPurl
83
84// provides the full url for this endpoint
85
86// Prototype:
87// char* getEPurl();
88
89// Parameters:
90
91// Returns:
93 char* getEPurl();
94
95// Function: BucketUpdate.get
96
97// return the json script
98
99// Prototype:
100// void BucketUpdate::get();
101
102// Parameters:
103
104// Returns:
106 char* get();
107};
108
109#endif
Definition bucket_update.h:7
~BucketUpdate()
Definition bucket_update.h:27
void appendDataComponents()
Definition bucket_update.cpp:80
char * getEPurl()
Definition bucket_update.cpp:102
void addDataComponents(char *component)
Definition bucket_update.cpp:51
void set(char *bucketId, char *title, char *description, char *avatar, bool visible, bool locked, bool enReactions)
Definition bucket_update.cpp:22
char * get()
Definition bucket_update.cpp:119