semilimes mcu sdk 1.1.4 semilimes Software Development Kit for microcontrollers

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