libkazv
appservice_room_directory.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 
25 public:
26 
27 
28 
29 class JobResponse : public Response
30 {
31 
32 public:
34  bool success() const;
35 
36 };
37  static constexpr auto needsAuth() {
38  return true
39  ;
40  }
41 
42 
43 // Construction/destruction
44 
59  explicit UpdateAppserviceRoomDirectoryVisibilityJob(std::string serverUrl
60  , std::string _accessToken
61  ,
62  std::string networkId , std::string roomId , std::string visibility
63  );
64 
65 
67  );
68 
69  static BaseJob::Body buildBody(std::string networkId, std::string roomId, std::string visibility);
70 
71 
72 
73 
74 
77  };
79  }
80  namespace nlohmann
81  {
82  using namespace Kazv;
83  using namespace Kazv::Api;
84 
85  }
86 
87  namespace Kazv::Api
88  {
89 
90 } // namespace Kazv::Api
Definition: appservice_room_directory.hpp:30
bool success() const
Definition: appservice_room_directory.cpp:76
JobResponse(Response r)
Definition: appservice_room_directory.cpp:73
Updates a room's visibility in the application service's room directory.
Definition: appservice_room_directory.hpp:24
UpdateAppserviceRoomDirectoryVisibilityJob(std::string serverUrl, std::string _accessToken, std::string networkId, std::string roomId, std::string visibility)
Updates a room's visibility in the application service's room directory.
Definition: appservice_room_directory.cpp:39
static constexpr auto needsAuth()
Definition: appservice_room_directory.hpp:37
UpdateAppserviceRoomDirectoryVisibilityJob withData(JsonWrap j) &&
Definition: appservice_room_directory.cpp:59
static BaseJob::Body buildBody(std::string networkId, std::string roomId, std::string visibility)
Definition: appservice_room_directory.cpp:21
static BaseJob::Query buildQuery()
Definition: appservice_room_directory.cpp:13
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