| semilimes mcu sdk 1.1.2 semilimes Software Development Kit for microcontrollers

Loading...
Searching...
No Matches
p2p_message_reply.h
1#ifndef _p2p_message_reply_
2#define _p2p_message_reply_
3
4#include "../defines.h"
5
6 class P2pMessageReply
7{
8 private:
9 #define headerSize 33
10 SmeJson json_data;
11 char* json = nullptr;
12
13 public:
14// Function: ~P2pMessageReply
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~P2pMessageReply()
20
21// Parameters:
22
23// Returns:
25 ~P2pMessageReply()
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: P2pMessageReply.set
32
33// This endpoint allows the account to reply to a specific message with a simple text.
34
35// Prototype:
36// void set(const char* messageId, const char* dataComponent);
37
38// Parameters:
41
42// Returns:
44 void set(const char* messageId, const char* dataComponent);
45
46// Function: P2pMessageReply.getEPurl
47
48// provides the full url for this endpoint
49
50// Prototype:
51// char* getEPurl();
52
53// Parameters:
54
55// Returns:
57 char* getEPurl();
58
59// Function: P2pMessageReply.getWSEPurl
60
61// provides this endpoint
62
63// Prototype:
64// char* getWSEPurl();
65
66// Parameters:
67
68// Returns:
70 char* getWSEPurl();
71
72// Function: P2pMessageReply.get
73
74// return the json script
75
76// Prototype:
77// void P2pMessageReply::get();
78
79// Parameters:
80
81// Returns:
83 char* get();
84};
85
86#endif
P2pMessageReply
Definition p2p_message_reply.h:7
P2pMessageReply::~P2pMessageReply
~P2pMessageReply()
Definition p2p_message_reply.h:25
P2pMessageReply::set
void set(const char *messageId, const char *dataComponent)
Definition p2p_message_reply.cpp:17
P2pMessageReply::get
char * get()
Definition p2p_message_reply.cpp:73
P2pMessageReply::getWSEPurl
char * getWSEPurl()
Definition p2p_message_reply.cpp:56
P2pMessageReply::getEPurl
char * getEPurl()
Definition p2p_message_reply.cpp:39