1 | /****************************************************************************** |
2 | * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN |
3 | */ |
4 | |
5 | #include "whoami.h" |
6 | |
7 | using namespace Quotient; |
8 | |
9 | QUrl GetTokenOwnerJob::makeRequestUrl(QUrl baseUrl) |
10 | { |
11 | return BaseJob::makeRequestUrl( |
12 | baseUrl: std::move(baseUrl), encodedPath: makePath(parts: "/_matrix/client/v3" , parts: "/account/whoami" )); |
13 | } |
14 | |
15 | GetTokenOwnerJob::GetTokenOwnerJob() |
16 | : BaseJob(HttpVerb::Get, QStringLiteral("GetTokenOwnerJob" ), |
17 | makePath(parts: "/_matrix/client/v3" , parts: "/account/whoami" )) |
18 | { |
19 | addExpectedKey(key: "user_id" ); |
20 | } |
21 | |