semilimes mcu sdk 1.1.1
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
7{
8private:
9 #define headerSize 18
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
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:
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(char* groupChatId);
39
40// Parameters:
42
43// Returns:
45 void set(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
61// Function: GroupchatSignalTyping.get
62
63// return the json script
64
65// Prototype:
66// void GroupchatSignalTyping::get();
67
68// Parameters:
69
70// Returns:
72 char* get();
73};
74
75#endif
Definition groupchat_signal_typing.h:7
~GroupchatSignalTyping()
Definition groupchat_signal_typing.h:26
void set(char *groupChatId)
Definition groupchat_signal_typing.cpp:17
char * get()
Definition groupchat_signal_typing.cpp:55
char * getEPurl()
Definition groupchat_signal_typing.cpp:38