semilimes mcu sdk 0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
groupchat_create.h
1#ifndef _groupchat_create_
2#define _groupchat_create_
3
4#include "../defines.h"
5
7{
8private:
9 SmeJson json_data;
10 char** pjson;
11 char** pjsonArray;
12
13public:
14// Function: GroupchatCreate
15
16// This endpoint creates a new group chat with a specified name. It's also possible to directly invite other accounts to the chat upon creation by specifying their accountIds in the recipientIds array.
17
18// Prototype:
19// void GroupchatCreate(char* json);
20
21// Parameters:
24
25// Returns:
27 GroupchatCreate(char* json, char* jsonArray)
28 {
29 pjson = &json;
30 pjsonArray = &jsonArray;
31 json_data.initJson(*pjson);
32 json_data.initJsonArray(*pjsonArray);
33 }
34
35// Function: GroupchatCreate.setObj
36
37// This endpoint creates a new group chat with a specified name. It's also possible to directly invite other accounts to the chat upon creation by specifying their accountIds in the recipientIds array.
38
39// Prototype:
40// void setObj(char* title);
41
42// Parameters:
44
45// Returns:
47 void setObj(char* title);
48
49// Function: GroupchatCreate.addRecipientIds
50
51// Add the recipientId (the account Id to be added in the groupchat)
52
53// Prototype:
54// void addRecipientIds(char* recipientIds);
55
56// Parameters:
58
59// Returns:
61 void addRecipientId(char* recipientIds);
62
63// Function: GroupchatCreate.appendRecipientIds
64
65// Append the selected recipientIds
66
67// Prototype:
68// void appendRecipientIds();
69
70// Parameters:
71
72// Returns:
74 void appendRecipientIds();
75
76// Function: GroupchatCreate.getEPurl
77
78// provides the full url for this endpoint
79
80// Prototype:
81// char* getEPurl();
82
83// Parameters:
84
85// Returns:
87 char* getEPurl();
88};
89
90#endif
Definition groupchat_create.h:7
void addRecipientId(char *recipientIds)
Definition groupchat_create.cpp:35
char * getEPurl()
Definition groupchat_create.cpp:69
GroupchatCreate(char *json, char *jsonArray)
Definition groupchat_create.h:27
void setObj(char *title)
Definition groupchat_create.cpp:16
void appendRecipientIds()
Definition groupchat_create.cpp:52