semilimes mcu sdk 1.0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
channel_unsubscribe.h
1#ifndef _channel_unsubscribe_
2#define _channel_unsubscribe_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 16
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14
15// Function: ~ChannelUnsubscribe
16
17// distructor of the class, frees up the memory occupied by the array/s
18
19// Prototype:
20// ~ChannelUnsubscribe()
21
22// Parameters:
23
24// Returns:
27 {
28 delete[] json;
29 json = nullptr;
30 }
31
32// Function: ChannelUnsubscribe.set
33
34// This endpoint makes the calling account to unsubscribe from an existing channel.
35
36// Prototype:
37// void set(char* channelId);
38
39// Parameters:
41
42// Returns:
44 void set(char* channelId);
45
46// Function: ChannelUnsubscribe.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: ChannelUnsubscribe.get
60
61// return the json script
62
63// Prototype:
64// void ChannelUnsubscribe::get();
65
66// Parameters:
67
68// Returns:
70 char* get();
71};
72
73#endif
Definition channel_unsubscribe.h:7
char * getEPurl()
Definition channel_unsubscribe.cpp:37
~ChannelUnsubscribe()
Definition channel_unsubscribe.h:26
void set(char *channelId)
Definition channel_unsubscribe.cpp:16
char * get()
Definition channel_unsubscribe.cpp:54