aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/wellknown.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/wellknown.h')
-rw-r--r--lib/csapi/wellknown.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/lib/csapi/wellknown.h b/lib/csapi/wellknown.h
index 94d3631c..b21d9fc7 100644
--- a/lib/csapi/wellknown.h
+++ b/lib/csapi/wellknown.h
@@ -4,16 +4,12 @@
#pragma once
-#include "converters.h"
-
#include "csapi/definitions/wellknown/full.h"
#include "jobs/basejob.h"
namespace Quotient {
-// Operations
-
/*! \brief Gets Matrix server discovery information about the domain.
*
* Gets discovery information about the domain. The file may include
@@ -36,19 +32,14 @@ public:
* is necessary but the job itself isn't.
*/
static QUrl makeRequestUrl(QUrl baseUrl);
- ~GetWellknownJob() override;
// Result properties
/// Server discovery information.
- const DiscoveryInformation& data() const;
-
-protected:
- Status parseJson(const QJsonDocument& data) override;
-
-private:
- class Private;
- QScopedPointer<Private> d;
+ DiscoveryInformation data() const
+ {
+ return fromJson<DiscoveryInformation>(jsonData());
+ }
};
} // namespace Quotient