1 | /****************************************************************************** |
2 | * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN |
3 | */ |
4 | |
5 | #pragma once |
6 | |
7 | #include <Quotient/csapi/definitions/wellknown/full.h> |
8 | |
9 | #include <Quotient/jobs/basejob.h> |
10 | |
11 | namespace Quotient { |
12 | |
13 | /*! \brief Gets Matrix server discovery information about the domain. |
14 | * |
15 | * Gets discovery information about the domain. The file may include |
16 | * additional keys, which MUST follow the Java package naming convention, |
17 | * e.g. `com.example.myapp.property`. This ensures property names are |
18 | * suitably namespaced for each application and reduces the risk of |
19 | * clashes. |
20 | * |
21 | * Note that this endpoint is not necessarily handled by the homeserver, |
22 | * but by another webserver, to be used for discovering the homeserver URL. |
23 | */ |
24 | class QUOTIENT_API GetWellknownJob : public BaseJob { |
25 | public: |
26 | /// Gets Matrix server discovery information about the domain. |
27 | explicit GetWellknownJob(); |
28 | |
29 | /*! \brief Construct a URL without creating a full-fledged job object |
30 | * |
31 | * This function can be used when a URL for GetWellknownJob |
32 | * is necessary but the job itself isn't. |
33 | */ |
34 | static QUrl makeRequestUrl(QUrl baseUrl); |
35 | |
36 | // Result properties |
37 | |
38 | /// Server discovery information. |
39 | DiscoveryInformation data() const |
40 | { |
41 | return fromJson<DiscoveryInformation>(json: jsonData()); |
42 | } |
43 | }; |
44 | |
45 | } // namespace Quotient |
46 | |