semilimes mcu sdk 1.0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
p2p_message_get.h
1#ifndef _p2p_message_get_
2#define _p2p_message_get_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 42
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14// Function: ~P2pMessageGet
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~P2pMessageGet()
20
21// Parameters:
22
23// Returns:
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: P2pMessageGet.set
32
33// This endpoint returns a list of messages in the specified P2P chat
34
35// Prototype:
36// void set(bool owner,bool editor,bool subscriber);
37
38// Parameters:
42
43// Returns:
45 void set(char* recipientId,char* messageId,int limit);
46
47// Function: P2pMessageGet.getEPurl
48
49// provides the full url for this endpoint
50
51// Prototype:
52// char* getEPurl();
53
54// Parameters:
55
56// Returns:
58 char* getEPurl();
59
60// Function: P2pMessageGet.get
61
62// return the json script
63
64// Prototype:
65// void P2pMessageGet::get();
66
67// Parameters:
68
69// Returns:
71 char* get();
72};
73
74#endif
Definition p2p_message_get.h:7
~P2pMessageGet()
Definition p2p_message_get.h:25
char * get()
Definition p2p_message_get.cpp:58
char * getEPurl()
Definition p2p_message_get.cpp:41
void set(char *recipientId, char *messageId, int limit)
Definition p2p_message_get.cpp:18