semilimes mcu sdk 1.1.4 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
6 class ChannelUnsubscribe
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13
14// Function: ~ChannelUnsubscribe
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~ChannelUnsubscribe()
20
21// Parameters:
22
23// Returns:
25 ~ChannelUnsubscribe()
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: ChannelUnsubscribe.set
32
33// This endpoint makes the calling account to unsubscribe from an existing channel.
34
35// Prototype:
36// void set(const char* channelId);
37
38// Parameters:
40
41// Returns:
43 void set(const char* channelId);
44
45// Function: ChannelUnsubscribe.getEPurl
46
47// provides the full url for this endpoint
48
49// Prototype:
50// char* getEPurl();
51
52// Parameters:
53
54// Returns:
56 char* getEPurl();
57
58// Function: ChannelUnsubscribe.getWSEPurl
59
60// provides this endpoint
61
62// Prototype:
63// char* getWSEPurl();
64
65// Parameters:
66
67// Returns:
69 char* getWSEPurl();
70
71// Function: ChannelUnsubscribe.get
72
73// return the json script
74
75// Prototype:
76// void ChannelUnsubscribe::get();
77
78// Parameters:
79
80// Returns:
82 char* get();
83};
84
85#endif
ChannelUnsubscribe
Definition channel_unsubscribe.h:7
ChannelUnsubscribe::set
void set(const char *channelId)
Definition channel_unsubscribe.cpp:16
ChannelUnsubscribe::getEPurl
char * getEPurl()
Definition channel_unsubscribe.cpp:37
ChannelUnsubscribe::~ChannelUnsubscribe
~ChannelUnsubscribe()
Definition channel_unsubscribe.h:25
ChannelUnsubscribe::getWSEPurl
char * getWSEPurl()
Definition channel_unsubscribe.cpp:54
ChannelUnsubscribe::get
char * get()
Definition channel_unsubscribe.cpp:71