libkazv
Loading...
Searching...
No Matches
list_joined_rooms.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
3 */
4
5#pragma once
6
7#include "basejob.hpp"
8
9
10namespace Kazv::Api {
11
16class GetJoinedRoomsJob : public BaseJob {
17public:
18
19
20
21class JobResponse : public Response
22{
23
24public:
26 bool success() const;
27
28 // Result properties
29
30
31
32
34immer::array<std::string> joinedRooms() const;
35
36};
37 static constexpr auto needsAuth() {
38 return true
39 ;
40 }
41
42
43// Construction/destruction
44
46 explicit GetJoinedRoomsJob(std::string serverUrl
47 , std::string _accessToken
48
49
50 );
51
52
54 );
55
56 static BaseJob::Body buildBody();
57
58
59
60
61
64 };
66 }
67 namespace nlohmann
68 {
69 using namespace Kazv;
70 using namespace Kazv::Api;
71
72 }
73
74 namespace Kazv::Api
75 {
76
77} // namespace Kazv::Api
Definition list_joined_rooms.hpp:22
bool success() const
Definition list_joined_rooms.cpp:70
immer::array< std::string > joinedRooms() const
The ID of each room in which the user has joined membership.
Definition list_joined_rooms.cpp:81
Lists the user's current rooms.
Definition list_joined_rooms.hpp:16
GetJoinedRoomsJob withData(JsonWrap j) &&
Definition list_joined_rooms.cpp:53
static BaseJob::Body buildBody()
Definition list_joined_rooms.cpp:21
static BaseJob::Query buildQuery()
Definition list_joined_rooms.cpp:13
static constexpr auto needsAuth()
Definition list_joined_rooms.hpp:37
Definition basejob.hpp:94
Definition basejob.hpp:68
::Kazv::Body Body
Definition basejob.hpp:103
Definition jsonwrap.hpp:23
Definition location.hpp:10
Definition location.hpp:10
Definition location.hpp:27
Definition basejob.hpp:49