| semilimes mcu sdk 1.1.2 semilimes Software Development Kit for microcontrollers

Loading...
Searching...
No Matches
channel_subscribe.h
1#ifndef _channel_subscribe_
2#define _channel_subscribe_
3
4#include "../defines.h"
5
6 class ChannelSubscribe
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13
14// Function: ~ChannelSubscribe
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~ChannelSubscribe()
20
21// Parameters:
22
23// Returns:
25 ~ChannelSubscribe()
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: ChannelSubscribe.set
32
33// This endpoint makes the calling account to subscribe to 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: ChannelSubscribe.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: ChannelSubscribe.getWSEPurl
59
60// provides this endpoint
61
62// Prototype:
63// char* getWSEPurl();
64
65// Parameters:
66
67// Returns:
69 char* getWSEPurl();
70
71// Function: ChannelSubscribe.get
72
73// return the json script
74
75// Prototype:
76// void ChannelSubscribe::get();
77
78// Parameters:
79
80// Returns:
82 char* get();
83};
84
85#endif
ChannelSubscribe
Definition channel_subscribe.h:7
ChannelSubscribe::set
void set(const char *channelId)
Definition channel_subscribe.cpp:16
ChannelSubscribe::get
char * get()
Definition channel_subscribe.cpp:71
ChannelSubscribe::~ChannelSubscribe
~ChannelSubscribe()
Definition channel_subscribe.h:25
ChannelSubscribe::getEPurl
char * getEPurl()
Definition channel_subscribe.cpp:37
ChannelSubscribe::getWSEPurl
char * getWSEPurl()
Definition channel_subscribe.cpp:54