libkazv
wellknown.hpp
Go to the documentation of this file.
1 /******************************************************************************
2  * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
3  */
4 
5 #pragma once
6 
7 #include "basejob.hpp"
9 
10 namespace Kazv::Api {
11 
23 class GetWellknownJob : public BaseJob {
24 public:
25 
26 
27 
28 class JobResponse : public Response
29 {
30 
31 public:
33  bool success() const;
34 
35  // Result properties
36 
37 
39 
41  {
42  return
43  std::move(jsonBody().get()).get<DiscoveryInformation>()
44  ;
45  }
46 
47 
48 };
49  static constexpr auto needsAuth() {
50  return
51  false;
52  }
53 
54 
55 // Construction/destruction
56 
58  explicit GetWellknownJob(std::string serverUrl
59 
60 
61 
62  );
63 
64 
66  );
67 
68  static BaseJob::Body buildBody();
69 
70 
71 
72 
73 
76  };
78  }
79  namespace nlohmann
80  {
81  using namespace Kazv;
82  using namespace Kazv::Api;
83 
84  }
85 
86  namespace Kazv::Api
87  {
88 
89 } // namespace Kazv::Api
Kazv::Response::jsonBody
JsonWrap jsonBody() const
Definition: basejob.cpp:139
Kazv::Api::GetWellknownJob::withData
GetWellknownJob withData(JsonWrap j) &&
Definition: wellknown.cpp:55
nlohmann
Definition: location.hpp:26
Kazv::Api::GetWellknownJob::JobResponse::JobResponse
JobResponse(Response r)
Definition: wellknown.cpp:69
Kazv::Api::GetWellknownJob::buildBody
static BaseJob::Body buildBody()
Definition: wellknown.cpp:23
Kazv::Api::GetWellknownJob::needsAuth
static constexpr auto needsAuth()
Definition: wellknown.hpp:53
Kazv
Definition: location.hpp:10
Kazv::Api::GetWellknownJob::JobResponse
Definition: wellknown.hpp:32
Kazv::BaseJob::Query
Definition: basejob.hpp:90
Kazv::Api::GetWellknownJob::GetWellknownJob
GetWellknownJob(std::string serverUrl)
Gets Matrix server discovery information about the domain.
Definition: wellknown.cpp:35
Kazv::Api
Definition: location.hpp:10
basejob.hpp
Kazv::JsonWrap
Definition: jsonwrap.hpp:22
Kazv::Api::GetWellknownJob::JobResponse::data
DiscoveryInformation data() const
Server discovery information.
Definition: wellknown.hpp:46
Kazv::Api::GetWellknownJob
Gets Matrix server discovery information about the domain.
Definition: wellknown.hpp:25
Kazv::Api::GetWellknownJob::buildQuery
static BaseJob::Query buildQuery()
Definition: wellknown.cpp:15
Kazv::BaseJob::Body
::Kazv::Body Body
Definition: basejob.hpp:100
Kazv::Api::GetWellknownJob::JobResponse::success
bool success() const
Definition: wellknown.cpp:72
Kazv::Api::DiscoveryInformation
Used by clients to determine the homeserver, identity server, and other optional components they shou...
Definition: full.hpp:16
Kazv::Response
Definition: basejob.hpp:50
full.hpp