semilimes mcu sdk 1.1.4 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
6 class P2pMessageGet
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13// Function: ~P2pMessageGet
14
15// distructor of the class, frees up the memory occupied by the array/s
16
17// Prototype:
18// ~P2pMessageGet()
19
20// Parameters:
21
22// Returns:
24 ~P2pMessageGet()
25 {
26 delete[] json;
27 json = nullptr;
28 }
29
30// Function: P2pMessageGet.set
31
32// This endpoint returns a list of messages in the specified P2P chat
33
34// Prototype:
35// void set(const char* recipientId,const char* messageId,int limit);
36
37// Parameters:
41
42// Returns:
44 void set(const char* recipientId,const char* messageId,int limit);
45
46// Function: P2pMessageGet.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: P2pMessageGet.getWSEPurl
60
61// provides this endpoint
62
63// Prototype:
64// char* getWSEPurl();
65
66// Parameters:
67
68// Returns:
70 char* getWSEPurl();
71
72// Function: P2pMessageGet.get
73
74// return the json script
75
76// Prototype:
77// void P2pMessageGet::get();
78
79// Parameters:
80
81// Returns:
83 char* get();
84};
85
86#endif
P2pMessageGet
Definition p2p_message_get.h:7
P2pMessageGet::set
void set(const char *recipientId, const char *messageId, int limit)
Definition p2p_message_get.cpp:18
P2pMessageGet::~P2pMessageGet
~P2pMessageGet()
Definition p2p_message_get.h:24
P2pMessageGet::get
char * get()
Definition p2p_message_get.cpp:75
P2pMessageGet::getEPurl
char * getEPurl()
Definition p2p_message_get.cpp:41
P2pMessageGet::getWSEPurl
char * getWSEPurl()
Definition p2p_message_get.cpp:58