47 std::optional<std::string>
nextBatch()
const;
52 std::optional<std::string>
prevBatch()
const;
93 , std::string _accessToken
95 std::string roomId , std::string eventId , std::optional<std::string> from = std::nullopt, std::optional<std::string> to = std::nullopt, std::optional<int> limit = std::nullopt
100 std::optional<std::string> from, std::optional<std::string> to, std::optional<int> limit);
102 static BaseJob::Body buildBody(std::string roomId, std::string eventId, std::optional<std::string> from, std::optional<std::string> to, std::optional<int> limit);
115 using namespace Kazv;
146 bool success()
const;
161 std::optional<std::string> nextBatch()
const;
166 std::optional<std::string> prevBatch()
const;
210 , std::string _accessToken
212 std::string roomId , std::string eventId , std::string relType , std::optional<std::string> from = std::nullopt, std::optional<std::string> to = std::nullopt, std::optional<int> limit = std::nullopt
217 std::optional<std::string> from, std::optional<std::string> to, std::optional<int> limit);
219 static BaseJob::Body buildBody(std::string roomId, std::string eventId, std::string relType, std::optional<std::string> from, std::optional<std::string> to, std::optional<int> limit);
232 using namespace Kazv;
263 bool success()
const;
278 std::optional<std::string> nextBatch()
const;
283 std::optional<std::string> prevBatch()
const;
333 , std::string _accessToken
335 std::string roomId , std::string eventId , std::string relType , std::string eventType , std::optional<std::string> from = std::nullopt, std::optional<std::string> to = std::nullopt, std::optional<int> limit = std::nullopt
340 std::optional<std::string> from, std::optional<std::string> to, std::optional<int> limit);
342 static BaseJob::Body buildBody(std::string roomId, std::string eventId, std::string relType, std::string eventType, std::optional<std::string> from, std::optional<std::string> to, std::optional<int> limit);
355 using namespace Kazv;
Definition: relations.hpp:30
std::optional< std::string > nextBatch() const
An opaque string representing a pagination token.
Definition: relations.cpp:97
bool success() const
Definition: relations.cpp:75
JobResponse(Response r)
Definition: relations.cpp:72
std::optional< std::string > prevBatch() const
An opaque string representing a pagination token.
Definition: relations.cpp:108
EventList chunk() const
The child events of the requested event, ordered topologically most-recent first.
Definition: relations.cpp:86
Get the child events for a given parent event.
Definition: relations.hpp:24
GetRelatingEventsJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::string eventId, std::optional< std::string > from=std::nullopt, std::optional< std::string > to=std::nullopt, std::optional< int > limit=std::nullopt)
Get the child events for a given parent event.
Definition: relations.cpp:38
static constexpr auto needsAuth()
Definition: relations.hpp:55
static BaseJob::Body buildBody(std::string roomId, std::string eventId, std::optional< std::string > from, std::optional< std::string > to, std::optional< int > limit)
Definition: relations.cpp:26
static BaseJob::Query buildQuery(std::optional< std::string > from, std::optional< std::string > to, std::optional< int > limit)
Definition: relations.cpp:13
GetRelatingEventsJob withData(JsonWrap j) &&
Definition: relations.cpp:58
Definition: relations.hpp:259
Get the child events for a given parent event, with a given relType and eventType.
Definition: relations.hpp:253
static constexpr auto needsAuth()
Definition: relations.hpp:286
Definition: relations.hpp:142
Get the child events for a given parent event, with a given relType.
Definition: relations.hpp:136
static constexpr auto needsAuth()
Definition: relations.hpp:169
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
immer::flex_vector< Event > EventList
Definition: types.hpp:107
Definition: location.hpp:27
Definition: basejob.hpp:50