semilimes mcu sdk 1.1.4 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
6 class AddAccountFeed
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11 char* jsonArray = nullptr;
12
13 public:
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:
25 ~AddAccountFeed()
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(cost char* data);
59
60// Parameters:
62
63// Returns:
65
66 void addDataComponents(const 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
80 void appendDataComponents();
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
AddAccountFeed
Definition add_account_feed.h:7
AddAccountFeed::addDataComponents
void addDataComponents(const char *data)
Definition add_account_feed.cpp:47
AddAccountFeed::~AddAccountFeed
~AddAccountFeed()
Definition add_account_feed.h:25
AddAccountFeed::set
void set(const char *title, const char *description, const char *avatar, bool visible, bool locked, bool enReaction)
Definition add_account_feed.cpp:20
AddAccountFeed::appendDataComponents
void appendDataComponents()
Definition add_account_feed.cpp:76
AddAccountFeed::get
char * get()
Definition add_account_feed.cpp:98