Go to the documentation of this file.
17 class GetDevicesJob :
public BaseJob {
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:87
List registered devices for the current user.
Definition: device_management.hpp:19
bool success() const
Definition: device_management.cpp:72
Delete a device.
Definition: device_management.hpp:223
static constexpr auto needsAuth()
Definition: device_management.hpp:303
Definition: location.hpp:26
static constexpr auto needsAuth()
Definition: device_management.hpp:169
Get a single device.
Definition: device_management.hpp:82
immer::array< Device > devices() const
A list of all registered devices for this user.
Definition: device_management.cpp:82
Definition: location.hpp:10
static constexpr auto needsAuth()
Definition: device_management.hpp:236
Definition: basejob.hpp:90
GetDevicesJob withData(JsonWrap j) &&
Definition: device_management.cpp:55
Definition: device_management.hpp:161
Definition: device_management.hpp:26
GetDevicesJob(std::string serverUrl, std::string _accessToken)
List registered devices for the current user.
Definition: device_management.cpp:35
Definition: location.hpp:10
A client device.
Definition: client_device.hpp:14
Definition: jsonwrap.hpp:22
Device data() const
Device information.
Definition: device_management.hpp:99
static constexpr auto needsAuth()
Definition: device_management.hpp:42
Definition: basejob.hpp:76
Definition: device_management.hpp:295
JobResponse(Response r)
Definition: device_management.cpp:69
static BaseJob::Body buildBody()
Definition: device_management.cpp:23
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: device_management.hpp:228
static BaseJob::Query buildQuery()
Definition: device_management.cpp:15
Update a device.
Definition: device_management.hpp:156
Bulk deletion of devices.
Definition: device_management.hpp:290
static constexpr auto needsAuth()
Definition: device_management.hpp:108
Definition: basejob.hpp:50