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 
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
Definition: registration_tokens.hpp:27
bool success() const
Definition: registration_tokens.cpp:71
bool valid() const
True if the token is still valid, false otherwise.
Definition: registration_tokens.cpp:82
JobResponse(Response r)
Definition: registration_tokens.cpp:68
Query if a given registration token is still valid.
Definition: registration_tokens.hpp:21
static BaseJob::Query buildQuery(std::string token)
Definition: registration_tokens.cpp:13
static constexpr auto needsAuth()
Definition: registration_tokens.hpp:44
RegistrationTokenValidityJob withData(JsonWrap j) &&
Definition: registration_tokens.cpp:54
static BaseJob::Body buildBody(std::string token)
Definition: registration_tokens.cpp:22
RegistrationTokenValidityJob(std::string serverUrl, std::string token)
Query if a given registration token is still valid.
Definition: registration_tokens.cpp:34
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
Definition: basejob.hpp:50