5 #include <Quotient/events/roomevent.h>
6 #include <Quotient/jobs/basejob.h>
39 explicit GetThreadRootsJob(
const QString& roomId,
const QString& include = {},
40 std::optional<
int> limit = std::nullopt,
const QString& from = {});
46 static QUrl makeRequestUrl(
const HomeserverData& hsData,
const QString& roomId,
47 const QString& include = {}, std::optional<
int> limit = std::nullopt,
48 const QString& from = {});
59 RoomEvents chunk() {
return takeFromJson<RoomEvents>(
"chunk"_L1); }
63 QString nextBatch()
const {
return loadFromJson<QString>(
"next_batch"_L1); }
82 template <std::derived_from<GetThreadRootsJob> JobT>
83 constexpr inline auto doCollectResponse<JobT> =
84 [](JobT* j) -> GetThreadRootsJob::Response {
return { j->chunk(), j->nextBatch() }; };