blob: 464068e71a3e371c96d498f0b6737f5dcd8229fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#include "wellknown.h"
#include "converters.h"
#include <QtCore/QStringBuilder>
using namespace Quotient;
static const auto basePath = QStringLiteral("/.well-known");
class GetWellknownJob::Private {
public:
DiscoveryInformation data;
};
QUrl GetWellknownJob::makeRequestUrl(QUrl baseUrl)
{
return BaseJob::makeRequestUrl(std::move(baseUrl),
basePath % "/matrix/client");
}
GetWellknownJob::GetWellknownJob()
: BaseJob(HttpVerb::Get, QStringLiteral("GetWellknownJob"),
basePath % "/matrix/client", false)
, d(new Private)
{}
GetWellknownJob::~GetWellknownJob() = default;
const DiscoveryInformation& GetWellknownJob::data() const { return d->data; }
BaseJob::Status GetWellknownJob::parseJson(const QJsonDocument& data)
{
fromJson(data, d->data);
return Success;
}
|