semilimes mcu sdk 0.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 SmeJson json_data;
10 char** pjson;
11
12public:
13// Function: BucketLike
14
15// This endpoint sets a like by the current account to any referenced bucket that allows likes.
16
17// Prototype:
18// void BucketLike(char* json);
19
20// Parameters:
22
23// Returns:
25 BucketLike(char* json)
26 {
27 pjson = &json;
28 json_data.initJson(*pjson);
29 }
30
31// Function: BucketLike.setObj
32
33// This endpoint sets a like by the current account to any referenced bucket that allows likes.
34
35// Prototype:
36// void setObj(char* bucketId);
37
38// Parameters:
40
41// Returns:
43 void setObj(char* bucketId);
44
45// Function: BucketLike.getEPurl
46
47// provides the full url for this endpoint
48
49// Prototype:
50// char* getEPurl();
51
52// Parameters:
53
54// Returns:
56 char* getEPurl();
57};
58
59#endif
Definition bucket_like.h:7
BucketLike(char *json)
Definition bucket_like.h:25
void setObj(char *bucketId)
Definition bucket_like.cpp:16
char * getEPurl()
Definition bucket_like.cpp:34