libkazv
Loading...
Searching...
No Matches
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
10namespace Kazv::Api {
11
18class LogoutJob : public BaseJob {
19public:
20
21
22
23class JobResponse : public Response
24{
25
26public:
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
85class LogoutAllJob : public BaseJob {
86public:
87
88
89
90class JobResponse : public Response
91{
92
93public:
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
115 );
116
117 static BaseJob::Body buildBody();
118
119
120
121
122
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
bool success() const
Definition logout.cpp:138
Invalidates all access tokens for a user.
Definition logout.hpp:85
LogoutAllJob withData(JsonWrap j) &&
Definition logout.cpp:121
static BaseJob::Body buildBody()
Definition logout.cpp:89
static BaseJob::Query buildQuery()
Definition logout.cpp:81
static constexpr auto needsAuth()
Definition logout.hpp:98
Definition logout.hpp:24
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
Definition basejob.hpp:94
Definition basejob.hpp:68
::Kazv::Body Body
Definition basejob.hpp:103
Definition jsonwrap.hpp:23
Definition location.hpp:10
Definition location.hpp:10
Definition location.hpp:27
Definition basejob.hpp:49