semilimes mcu sdk 1.0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
add_account_feed.h
1#ifndef _fc_add_account_feed_
2#define _fc_add_account_feed_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 77
10 #define headerArraySize 2
11 SmeJson json_data;
12 char* json = nullptr;
13 char* jsonArray = nullptr;
14
15public:
16// Function: ~AddAccountFeed
17
18// distructor of the class, frees up the memory occupied by the array/s
19
20// Prototype:
21// ~AddAccountFeed()
22
23// Parameters:
24
25// Returns:
28 {
29 delete[] json;
30 delete[] jsonArray;
31 json = nullptr;
32 jsonArray = nullptr;
33 }
34
35// Function: AddAccountFeed.set
36
37// Gets the account feed's configuration and content. Each post can only contain a bucket component type.
38
39// Prototype:
40// void AddAccountFeed::set(char* title,char* description,char* avatar,bool visible,bool locked,bool enReaction);
41
42// Parameters:
48
49// Returns:
51
52
53 void set(char* title,char* description,char* avatar,bool visible,bool locked,bool enReaction);
54
55// Function: AddAccountFeed.addDataComponents
56
57// Add a data component to the array
58
59// Prototype:
60// void AddAccountFeed::addDataComponents(char* data);
61
62// Parameters:
64
65// Returns:
67
68 void addDataComponents(char* data);
69
70// Function: AddAccountFeed.appendDataComponents
71
72// Append the selected data components
73
74// Prototype:
75// void AddAccountFeed::appendDataComponents();
76
77// Parameters:
78
79// Returns:
81
83
84
85// Function: AddAccountFeed.get
86
87// return the json script
88
89// Prototype:
90// void AddAccountFeed::get();
91
92// Parameters:
93
94// Returns:
96 char* get();
97};
98
99#endif
Definition add_account_feed.h:7
~AddAccountFeed()
Definition add_account_feed.h:27
void appendDataComponents()
Definition add_account_feed.cpp:76
char * get()
Definition add_account_feed.cpp:95
void addDataComponents(char *data)
Definition add_account_feed.cpp:47
void set(char *title, char *description, char *avatar, bool visible, bool locked, bool enReaction)
Definition add_account_feed.cpp:20