100 bool success()
const;
121 , std::string _accessToken
123 std::string roomId , std::optional<std::string> visibility = std::nullopt
130 static BaseJob::Body buildBody(std::string roomId, std::optional<std::string> visibility);
143 using namespace Kazv;
168 bool success()
const;
176 immer::array<PublicRoomsChunk> chunk()
const;
182 std::optional<std::string> nextBatch()
const;
188 std::optional<std::string> prevBatch()
const;
193 std::optional<int> totalRoomCountEstimate()
const;
222 std::optional<int> limit = std::nullopt, std::optional<std::string> since = std::nullopt, std::optional<std::string> server = std::nullopt
227 std::optional<int> limit, std::optional<std::string> since, std::optional<std::string> server);
229 static BaseJob::Body buildBody(std::optional<int> limit, std::optional<std::string> since, std::optional<std::string> server);
242 using namespace Kazv;
277 bool success()
const;
285 immer::array<PublicRoomsChunk> chunk()
const;
291 std::optional<std::string> nextBatch()
const;
297 std::optional<std::string> prevBatch()
const;
302 std::optional<int> totalRoomCountEstimate()
const;
340 , std::string _accessToken
342 std::optional<std::string> server = std::nullopt, std::optional<int> limit = std::nullopt, std::optional<std::string> since = std::nullopt, std::optional<Filter> filter = std::nullopt, std::optional<bool> includeAllNetworks = std::nullopt, std::optional<std::string> thirdPartyInstanceId = std::nullopt
347 std::optional<std::string> server);
349 static BaseJob::Body buildBody(std::optional<std::string> server, std::optional<int> limit, std::optional<std::string> since, std::optional<Filter> filter, std::optional<bool> includeAllNetworks, std::optional<std::string> thirdPartyInstanceId);
362 using namespace Kazv;
369 if (! jo.is_object()) { jo = json::object(); }
379 if (jo.contains(
"generic_search_term"s)) {
Definition: list_public_rooms.hpp:164
Lists the public rooms on the server.
Definition: list_public_rooms.hpp:158
static constexpr auto needsAuth()
Definition: list_public_rooms.hpp:196
Definition: list_public_rooms.hpp:22
bool success() const
Definition: list_public_rooms.cpp:70
JobResponse(Response r)
Definition: list_public_rooms.cpp:67
std::optional< std::string > visibility() const
The visibility of the room in the directory.
Definition: list_public_rooms.cpp:80
Gets the visibility of a room in the directory.
Definition: list_public_rooms.hpp:16
static BaseJob::Query buildQuery()
Definition: list_public_rooms.cpp:13
static constexpr auto needsAuth()
Definition: list_public_rooms.hpp:37
GetRoomVisibilityOnDirectoryJob(std::string serverUrl, std::string roomId)
Gets the visibility of a room in the directory.
Definition: list_public_rooms.cpp:33
static BaseJob::Body buildBody(std::string roomId)
Definition: list_public_rooms.cpp:21
GetRoomVisibilityOnDirectoryJob withData(JsonWrap j) &&
Definition: list_public_rooms.cpp:53
Definition: list_public_rooms.hpp:273
Lists the public rooms on the server with optional filter.
Definition: list_public_rooms.hpp:257
static constexpr auto needsAuth()
Definition: list_public_rooms.hpp:305
Definition: list_public_rooms.hpp:96
Sets the visibility of a room in the room directory.
Definition: list_public_rooms.hpp:90
static constexpr auto needsAuth()
Definition: list_public_rooms.hpp:103
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
void addToJsonIfNeeded(json &j, std::string name, T &&arg)
Definition: types.hpp:80
nlohmann::json json
Definition: jsonwrap.hpp:20
Definition: location.hpp:27
Definition: sync_filter.hpp:98
Filter to apply to the results.
Definition: list_public_rooms.hpp:263
std::optional< std::string > genericSearchTerm
A string to search for in the room metadata, e.g.
Definition: list_public_rooms.hpp:266
Definition: basejob.hpp:50
static void from_json(const json &jo, QueryPublicRoomsJob::Filter &result)
Definition: list_public_rooms.hpp:376
static void to_json(json &jo, const QueryPublicRoomsJob::Filter &pod)
Definition: list_public_rooms.hpp:367