libkazv
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 
10 namespace Kazv::Api {
11 
16 class GetJoinedRoomsJob : public BaseJob {
17 public:
18 
19 
20 
21 class JobResponse : public Response
22 {
23 
24 public:
26  bool success() const;
27 
28  // Result properties
29 
30 
31 
32 
34 immer::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
JobResponse(Response r)
Definition: list_joined_rooms.cpp:67
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(std::string serverUrl, std::string _accessToken)
Lists the user's current rooms.
Definition: list_joined_rooms.cpp:33
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:91
Definition: basejob.hpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: jsonwrap.hpp:23
Definition: location.hpp:10
Definition: location.hpp:10
Definition: location.hpp:27
Definition: basejob.hpp:50