5 #include <Quotient/jobs/basejob.h>
21 explicit GetTokenOwnerJob();
27 static QUrl makeRequestUrl(
const HomeserverData& hsData);
32 QString userId()
const {
return loadFromJson<QString>(
"user_id"_L1); }
38 QString deviceId()
const {
return loadFromJson<QString>(
"device_id"_L1); }
43 std::optional<
bool> isGuest()
const {
return loadFromJson<std::optional<
bool>>(
"is_guest"_L1); }
58 std::optional<
bool> isGuest{};
62 template <std::derived_from<GetTokenOwnerJob> JobT>
63 constexpr inline auto doCollectResponse<JobT> = [](JobT* j) -> GetTokenOwnerJob::Response {
64 return { j->userId(), j->deviceId(), j->isGuest() };