semilimes mcu sdk 1.1.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
bucket_like.h
1#ifndef _bucket_like_
2#define _bucket_like_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 15
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14
15// Function: ~BucketLike
16
17// distructor of the class, frees up the memory occupied by the array/s
18
19// Prototype:
20// ~BucketLike()
21
22// Parameters:
23
24// Returns:
27 {
28 delete[] json;
29 json = nullptr;
30 }
31
32// Function: BucketLike.set
33
34// This endpoint sets a like by the current account to any referenced bucket that allows likes.
35
36// Prototype:
37// void set(char* bucketId);
38
39// Parameters:
41
42// Returns:
44 void set(char* bucketId);
45
46// Function: BucketLike.getEPurl
47
48// provides the full url for this endpoint
49
50// Prototype:
51// char* getEPurl();
52
53// Parameters:
54
55// Returns:
57 char* getEPurl();
58
59
60// Function: BucketLike.get
61
62// return the json script
63
64// Prototype:
65// void BucketLike::get();
66
67// Parameters:
68
69// Returns:
71 char* get();
72};
73
74#endif
Definition bucket_like.h:7
void set(char *bucketId)
Definition bucket_like.cpp:16
~BucketLike()
Definition bucket_like.h:26
char * getEPurl()
Definition bucket_like.cpp:37
char * get()
Definition bucket_like.cpp:54