aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/client_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/definitions/client_device.h')
-rw-r--r--lib/csapi/definitions/client_device.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/csapi/definitions/client_device.h b/lib/csapi/definitions/client_device.h
new file mode 100644
index 00000000..4c09e13c
--- /dev/null
+++ b/lib/csapi/definitions/client_device.h
@@ -0,0 +1,31 @@
+/******************************************************************************
+ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
+ */
+
+#pragma once
+
+
+#include "converters.h"
+
+#include "converters.h"
+
+namespace QMatrixClient
+{
+ // Data structures
+
+ struct Device
+ {
+ QString deviceId;
+ QString displayName;
+ QString lastSeenIp;
+ Omittable<qint64> lastSeenTs;
+ };
+
+ QJsonObject toJson(const Device& pod);
+
+ template <> struct FromJson<Device>
+ {
+ Device operator()(const QJsonValue& jv);
+ };
+
+} // namespace QMatrixClient