semilimes mcu sdk 1.1.3 semilimes Software Development Kit for microcontrollers

Loading...
Searching...
No Matches
get_account_profile.h
1#ifndef _fc_get_account_profile_
2#define _fc_get_account_profile_
3
4#include "../defines.h"
5
6 class GetAccountProfile
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13// Function: ~GetAccountProfile
14
15// distructor of the class, frees up the memory occupied by the array/s
16
17// Prototype:
18// ~GetAccountProfile()
19
20// Parameters:
21
22// Returns:
24 ~GetAccountProfile()
25 {
26 delete[] json;
27 json = nullptr;
28 }
29
30// Function: GetAccountProfile.set
31
32// Gets the account profile's configuration and content.
33
34// Prototype:
35// void GetAccountProfile::set(const char* accountId);
36
37// Parameters:
39
40// Returns:
42
43
44 void set(const char* accountId);
45
46// Function: GetAccountProfile.get
47
48// return the json script
49
50// Prototype:
51// void GetAccountProfile::get();
52
53// Parameters:
54
55// Returns:
57 char* get();
58};
59
60#endif
GetAccountProfile
Definition get_account_profile.h:7
GetAccountProfile::get
char * get()
Definition get_account_profile.cpp:36
GetAccountProfile::~GetAccountProfile
~GetAccountProfile()
Definition get_account_profile.h:24
GetAccountProfile::set
void set(const char *accountId)
Definition get_account_profile.cpp:16