5 #include <Quotient/csapi/definitions/auth_data.h>
6 #include <Quotient/csapi/definitions/client_device.h>
8 #include <Quotient/jobs/basejob.h>
17 explicit GetDevicesJob();
23 static QUrl makeRequestUrl(
const HomeserverData& hsData);
28 QVector<Device> devices()
const {
return loadFromJson<QVector<Device>>(
"devices"_L1); }
31 inline auto collectResponse(
const GetDevicesJob* job) {
return job->devices(); }
40 explicit GetDeviceJob(
const QString& deviceId);
46 static QUrl makeRequestUrl(
const HomeserverData& hsData,
const QString& deviceId);
51 Device device()
const {
return fromJson<Device>(jsonData()); }
54 inline auto collectResponse(
const GetDeviceJob* job) {
return job->device(); }
67 explicit UpdateDeviceJob(
const QString& deviceId,
const QString& displayName = {});
84 explicit DeleteDeviceJob(
const QString& deviceId,
85 const std::optional<AuthenticationData>& auth = std::nullopt);
102 explicit DeleteDevicesJob(
const QStringList& devices,
103 const std::optional<AuthenticationData>& auth = std::nullopt);