5 #include <Quotient/jobs/basejob.h>
18 explicit SetRoomAliasJob(
const QString& roomAlias,
const QString& roomId);
33 explicit GetRoomIdByAliasJob(
const QString& roomAlias);
39 static QUrl makeRequestUrl(
const HomeserverData& hsData,
const QString& roomAlias);
44 QString roomId()
const {
return loadFromJson<QString>(
"room_id"_L1); }
47 QStringList servers()
const {
return loadFromJson<QStringList>(
"servers"_L1); }
54 QStringList servers{};
58 template <std::derived_from<GetRoomIdByAliasJob> JobT>
59 constexpr inline auto doCollectResponse<JobT> =
60 [](JobT* j) -> GetRoomIdByAliasJob::Response {
return { j->roomId(), j->servers() }; };
80 explicit DeleteRoomAliasJob(
const QString& roomAlias);
86 static QUrl makeRequestUrl(
const HomeserverData& hsData,
const QString& roomAlias);
111 explicit GetLocalAliasesJob(
const QString& roomId);
117 static QUrl makeRequestUrl(
const HomeserverData& hsData,
const QString& roomId);
122 QStringList aliases()
const {
return loadFromJson<QStringList>(
"aliases"_L1); }
125 inline auto collectResponse(
const GetLocalAliasesJob* job) {
return job->aliases(); }