semilimes mcu sdk 1.1.3 semilimes Software Development Kit for microcontrollers

Loading...
Searching...
No Matches
p2p_signal_typing.h
1#ifndef _p2p_signal_typing_
2#define _p2p_signal_typing_
3
4#include "../defines.h"
5
6 class P2pSignalTyping
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13
14// Function: ~P2pSignalTyping
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~P2pSignalTyping()
20
21// Parameters:
22
23// Returns:
25 ~P2pSignalTyping()
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: P2pSignalTyping.set
32
33// This endpoint allows the calling user to let recipient know in advance that the user is going to publish a new message.
34// This is particularly useful when having automated bots which need some time to elaborate the message to be sent.
35
36// Prototype:
37// void set(const char* recipientId);
38
39// Parameters:
41
42// Returns:
44 void set(const char* recipientId);
45
46// Function: P2pSignalTyping.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: P2pSignalTyping.getWSEPurl
60
61// provides this endpoint
62
63// Prototype:
64// char* getWSEPurl();
65
66// Parameters:
67
68// Returns:
70 char* getWSEPurl();
71
72// Function: P2pSignalTyping.get
73
74// return the json script
75
76// Prototype:
77// void P2pSignalTyping::get();
78
79// Parameters:
80
81// Returns:
83 char* get();
84};
85
86#endif
P2pSignalTyping
Definition p2p_signal_typing.h:7
P2pSignalTyping::get
char * get()
Definition p2p_signal_typing.cpp:72
P2pSignalTyping::set
void set(const char *recipientId)
Definition p2p_signal_typing.cpp:17
P2pSignalTyping::~P2pSignalTyping
~P2pSignalTyping()
Definition p2p_signal_typing.h:25
P2pSignalTyping::getWSEPurl
char * getWSEPurl()
Definition p2p_signal_typing.cpp:55
P2pSignalTyping::getEPurl
char * getEPurl()
Definition p2p_signal_typing.cpp:38