semilimes mcu sdk 0.1
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
7{
8private:
9 SmeJson json_data;
10 char** pjson;
11
12public:
13// Function: ChannelSubscribe
14
15// This endpoint makes the calling account to subscribe to an existing channel.
16
17// Prototype:
18// void ChannelSubscribe(char* json);
19
20// Parameters:
22
23// Returns:
25 ChannelSubscribe(char* json)
26 {
27 pjson = &json;
28 json_data.initJson(*pjson);
29 }
30
31// Function: ChannelSubscribe.setObj
32
33// This endpoint makes the calling account to subscribe to an existing channel.
34
35// Prototype:
36// void setObj(char* channelId);
37
38// Parameters:
40
41// Returns:
43 void setObj(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
59#endif
Definition channel_subscribe.h:7
ChannelSubscribe(char *json)
Definition channel_subscribe.h:25
void setObj(char *channelId)
Definition channel_subscribe.cpp:16
char * getEPurl()
Definition channel_subscribe.cpp:34