semilimes mcu sdk 1.1.2
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 SmeJson json_data;
10 char* json = nullptr;
11 char* jsonArray = nullptr;
12
13public:
14// Function: ~AddAccountFeed
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~AddAccountFeed()
20
21// Parameters:
22
23// Returns:
26 {
27 delete[] json;
28 delete[] jsonArray;
29 json = nullptr;
30 jsonArray = nullptr;
31 }
32
33// Function: AddAccountFeed.set
34
35// Gets the account feed's configuration and content. Each post can only contain a bucket component type.
36
37// Prototype:
38// void AddAccountFeed::set(const char* title,const char* description,const char* avatar,bool visible,bool locked,bool enReaction);
39
40// Parameters:
46
47// Returns:
49
50
51 void set(const char* title,const char* description,const char* avatar,bool visible,bool locked,bool enReaction);
52
53// Function: AddAccountFeed.addDataComponents
54
55// Add a data component to the array
56
57// Prototype:
58// void AddAccountFeed::addDataComponents(char* data);
59
60// Parameters:
62
63// Returns:
65
66 void addDataComponents(char* data);
67
68// Function: AddAccountFeed.appendDataComponents
69
70// Append the selected data components
71
72// Prototype:
73// void AddAccountFeed::appendDataComponents();
74
75// Parameters:
76
77// Returns:
79
81
82
83// Function: AddAccountFeed.get
84
85// return the json script
86
87// Prototype:
88// void AddAccountFeed::get();
89
90// Parameters:
91
92// Returns:
94 char* get();
95};
96
97#endif
Definition add_account_feed.h:7
~AddAccountFeed()
Definition add_account_feed.h:25
void set(const char *title, const char *description, const char *avatar, bool visible, bool locked, bool enReaction)
Definition add_account_feed.cpp:20
void appendDataComponents()
Definition add_account_feed.cpp:76
char * get()
Definition add_account_feed.cpp:98
void addDataComponents(char *data)
Definition add_account_feed.cpp:47