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
Definition: wellknown.hpp:29
bool success() const
Definition: wellknown.cpp:70
JobResponse(Response r)
Definition: wellknown.cpp:67
DiscoveryInformation data() const
Server discovery information.
Definition: wellknown.hpp:40
Gets Matrix server discovery information about the domain.
Definition: wellknown.hpp:23
static constexpr auto needsAuth()
Definition: wellknown.hpp:49
GetWellknownJob withData(JsonWrap j) &&
Definition: wellknown.cpp:53
static BaseJob::Body buildBody()
Definition: wellknown.cpp:21
GetWellknownJob(std::string serverUrl)
Gets Matrix server discovery information about the domain.
Definition: wellknown.cpp:33
static BaseJob::Query buildQuery()
Definition: wellknown.cpp:13
Definition: basejob.hpp:91
Definition: basejob.hpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: jsonwrap.hpp:23
Definition: location.hpp:10
Definition: location.hpp:10
Definition: location.hpp:27
Used by clients to determine the homeserver, identity server, and other optional components they shou...
Definition: full.hpp:15
Definition: basejob.hpp:50
JsonWrap jsonBody() const
Definition: basejob.cpp:139