5 #include <Quotient/jobs/basejob.h>
46 explicit GetEventByTimestampJob(
const QString& roomId,
int ts,
const QString& dir);
52 static QUrl makeRequestUrl(
const HomeserverData& hsData,
const QString& roomId,
int ts,
58 QString eventId()
const {
return loadFromJson<QString>(
"event_id"_L1); }
64 int originServerTimestamp()
const {
return loadFromJson<
int>(
"origin_server_ts"_L1); }
74 int originServerTimestamp{};
78 template <std::derived_from<GetEventByTimestampJob> JobT>
79 constexpr inline auto doCollectResponse<JobT> = [](JobT* j) -> GetEventByTimestampJob::Response {
80 return { j->eventId(), j->originServerTimestamp() };