5 #include <Quotient/jobs/basejob.h>
35 explicit GetVersionsJob();
41 static QUrl makeRequestUrl(
const HomeserverData& hsData);
46 QStringList versions()
const {
return loadFromJson<QStringList>(
"versions"_L1); }
51 QHash<QString,
bool> unstableFeatures()
const
53 return loadFromJson<QHash<QString,
bool>>(
"unstable_features"_L1);
58 QStringList versions{};
63 QHash<QString,
bool> unstableFeatures{};
67 template <std::derived_from<GetVersionsJob> JobT>
68 constexpr inline auto doCollectResponse<JobT> =
69 [](JobT* j) -> GetVersionsJob::Response {
return { j->versions(), j->unstableFeatures() }; };