5 #include <Quotient/csapi/definitions/third_party_signed.h>
7 #include <Quotient/jobs/basejob.h>
37 explicit JoinRoomByIdJob(
const QString& roomId,
38 const std::optional<ThirdPartySigned>& thirdPartySigned = std::nullopt,
39 const QString& reason = {});
44 QString roomId()
const {
return loadFromJson<QString>(
"room_id"_L1); }
47 inline auto collectResponse(
const JoinRoomByIdJob* job) {
return job->roomId(); }
82 explicit JoinRoomJob(
const QString& roomIdOrAlias,
const QStringList& serverName = {},
83 const QStringList& via = {},
84 const std::optional<ThirdPartySigned>& thirdPartySigned = std::nullopt,
85 const QString& reason = {});
90 QString roomId()
const {
return loadFromJson<QString>(
"room_id"_L1); }
93 inline auto collectResponse(
const JoinRoomJob* job) {
return job->roomId(); }