35 immer::array<Device>
devices()
const;
48 , std::string _accessToken
102 std::move(jsonBody().get()).get<
Device>()
122 , std::string _accessToken
144 using namespace Kazv;
166 bool success()
const;
187 , std::string _accessToken
189 std::string deviceId , std::optional<std::string> displayName = std::nullopt
196 static BaseJob::Body buildBody(std::string deviceId, std::optional<std::string> displayName);
209 using namespace Kazv;
233 bool success()
const;
254 , std::string _accessToken
256 std::string deviceId , std::optional<AuthenticationData> auth = std::nullopt
263 static BaseJob::Body buildBody(std::string deviceId, std::optional<AuthenticationData> auth);
276 using namespace Kazv;
300 bool success()
const;
321 , std::string _accessToken
323 immer::array<std::string> devices , std::optional<AuthenticationData> auth = std::nullopt
330 static BaseJob::Body buildBody(immer::array<std::string> devices, std::optional<AuthenticationData> auth);
343 using namespace Kazv;
Definition: device_management.hpp:229
Delete a device.
Definition: device_management.hpp:223
static constexpr auto needsAuth()
Definition: device_management.hpp:236
Definition: device_management.hpp:296
Bulk deletion of devices.
Definition: device_management.hpp:290
static constexpr auto needsAuth()
Definition: device_management.hpp:303
Definition: device_management.hpp:88
Device data() const
Device information.
Definition: device_management.hpp:99
Get a single device.
Definition: device_management.hpp:82
static constexpr auto needsAuth()
Definition: device_management.hpp:108
Definition: device_management.hpp:23
immer::array< Device > devices() const
A list of all registered devices for this user.
Definition: device_management.cpp:80
JobResponse(Response r)
Definition: device_management.cpp:67
bool success() const
Definition: device_management.cpp:70
List registered devices for the current user.
Definition: device_management.hpp:17
GetDevicesJob withData(JsonWrap j) &&
Definition: device_management.cpp:53
static BaseJob::Body buildBody()
Definition: device_management.cpp:21
GetDevicesJob(std::string serverUrl, std::string _accessToken)
List registered devices for the current user.
Definition: device_management.cpp:33
static constexpr auto needsAuth()
Definition: device_management.hpp:38
static BaseJob::Query buildQuery()
Definition: device_management.cpp:13
Definition: device_management.hpp:162
Update a device.
Definition: device_management.hpp:156
static constexpr auto needsAuth()
Definition: device_management.hpp:169
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
A client device.
Definition: client_device.hpp:13
Definition: basejob.hpp:50