libkazv
registration_tokens.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"
8 
9 
10 namespace Kazv::Api {
11 
21 class RegistrationTokenValidityJob : public BaseJob {
22 public:
23 
24 
25 
26 class JobResponse : public Response
27 {
28 
29 public:
31  bool success() const;
32 
33  // Result properties
34 
35 
36 
37 
41 bool valid() const;
42 
43 };
44  static constexpr auto needsAuth() {
45  return
46  false;
47  }
48 
49 
50 // Construction/destruction
51 
57  explicit RegistrationTokenValidityJob(std::string serverUrl
58 
59  ,
60  std::string token
61  );
62 
63 
65  std::string token);
66 
67  static BaseJob::Body buildBody(std::string token);
68 
69 
70 
71 
72 
75  };
77  }
78  namespace nlohmann
79  {
80  using namespace Kazv;
81  using namespace Kazv::Api;
82 
83  }
84 
85  namespace Kazv::Api
86  {
87 
88 } // namespace Kazv::Api
Kazv::Api::RegistrationTokenValidityJob::needsAuth
static constexpr auto needsAuth()
Definition: registration_tokens.hpp:48
Kazv::Api::RegistrationTokenValidityJob::buildQuery
static BaseJob::Query buildQuery(std::string token)
Definition: registration_tokens.cpp:15
Kazv::Api::RegistrationTokenValidityJob::JobResponse::valid
bool valid() const
True if the token is still valid, false otherwise.
Definition: registration_tokens.cpp:84
nlohmann
Definition: location.hpp:26
Kazv
Definition: location.hpp:10
Kazv::BaseJob::Query
Definition: basejob.hpp:90
Kazv::Api::RegistrationTokenValidityJob
Query if a given registration token is still valid.
Definition: registration_tokens.hpp:23
Kazv::Api::RegistrationTokenValidityJob::RegistrationTokenValidityJob
RegistrationTokenValidityJob(std::string serverUrl, std::string token)
Query if a given registration token is still valid.
Definition: registration_tokens.cpp:36
Kazv::Api::RegistrationTokenValidityJob::JobResponse::success
bool success() const
Definition: registration_tokens.cpp:73
Kazv::Api::RegistrationTokenValidityJob::JobResponse
Definition: registration_tokens.hpp:30
Kazv::Api::RegistrationTokenValidityJob::buildBody
static BaseJob::Body buildBody(std::string token)
Definition: registration_tokens.cpp:24
Kazv::Api
Definition: location.hpp:10
Kazv::Api::RegistrationTokenValidityJob::JobResponse::JobResponse
JobResponse(Response r)
Definition: registration_tokens.cpp:70
Kazv::Api::RegistrationTokenValidityJob::withData
RegistrationTokenValidityJob withData(JsonWrap j) &&
Definition: registration_tokens.cpp:56
basejob.hpp
Kazv::JsonWrap
Definition: jsonwrap.hpp:22
Kazv::BaseJob::Body
::Kazv::Body Body
Definition: basejob.hpp:100
Kazv::Response
Definition: basejob.hpp:50