libkazv
logout.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 
18 class LogoutJob : public BaseJob {
19 public:
20 
21 
22 
23 class JobResponse : public Response
24 {
25 
26 public:
28  bool success() const;
29 
30 };
31  static constexpr auto needsAuth() {
32  return true
33  ;
34  }
35 
36 
37 // Construction/destruction
38 
40  explicit LogoutJob(std::string serverUrl
41  , std::string _accessToken
42 
43 
44  );
45 
46 
48  );
49 
50  static BaseJob::Body buildBody();
51 
52 
53 
54 
55 
57  LogoutJob withData(JsonWrap j) const &;
58  };
60  }
61  namespace nlohmann
62  {
63  using namespace Kazv;
64  using namespace Kazv::Api;
65 
66  }
67 
68  namespace Kazv::Api
69  {
70 
85 class LogoutAllJob : public BaseJob {
86 public:
87 
88 
89 
90 class JobResponse : public Response
91 {
92 
93 public:
95  bool success() const;
96 
97 };
98  static constexpr auto needsAuth() {
99  return true
100  ;
101  }
102 
103 
104 // Construction/destruction
105 
107  explicit LogoutAllJob(std::string serverUrl
108  , std::string _accessToken
109 
110 
111  );
112 
113 
114  static BaseJob::Query buildQuery(
115  );
116 
117  static BaseJob::Body buildBody();
118 
119 
120 
121 
122 
123  LogoutAllJob withData(JsonWrap j) &&;
124  LogoutAllJob withData(JsonWrap j) const &;
125  };
127  }
128  namespace nlohmann
129  {
130  using namespace Kazv;
131  using namespace Kazv::Api;
132 
133  }
134 
135  namespace Kazv::Api
136  {
137 
138 } // namespace Kazv::Api
Definition: logout.hpp:91
Invalidates all access tokens for a user.
Definition: logout.hpp:85
static constexpr auto needsAuth()
Definition: logout.hpp:98
Definition: logout.hpp:24
JobResponse(Response r)
Definition: logout.cpp:67
bool success() const
Definition: logout.cpp:70
Invalidates a user access token.
Definition: logout.hpp:18
static BaseJob::Query buildQuery()
Definition: logout.cpp:13
LogoutJob withData(JsonWrap j) &&
Definition: logout.cpp:53
static BaseJob::Body buildBody()
Definition: logout.cpp:21
static constexpr auto needsAuth()
Definition: logout.hpp:31
LogoutJob(std::string serverUrl, std::string _accessToken)
Invalidates a user access token.
Definition: logout.cpp:33
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