aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/user_identifier.h
diff options
context:
space:
mode:
authorJosip Delic <delijati@googlemail.com>2018-08-29 21:56:21 +0200
committerJosip Delic <delijati@googlemail.com>2018-08-29 21:56:21 +0200
commit6bb64db38f4a5f47d275a663861fd216f1bcf612 (patch)
treecf92c21991282852e2ae549cd950984a7ae64fc6 /lib/csapi/definitions/user_identifier.h
parent8d07a6bec2689a81c3c3db64e5457143bd671223 (diff)
parentd9ff200ff62fb7f5b6b51082dc3979d5454a1bec (diff)
downloadlibquotient-6bb64db38f4a5f47d275a663861fd216f1bcf612.tar.gz
libquotient-6bb64db38f4a5f47d275a663861fd216f1bcf612.zip
Merge branch 'master' of https://github.com/QMatrixClient/libqmatrixclient
Diffstat (limited to 'lib/csapi/definitions/user_identifier.h')
-rw-r--r--lib/csapi/definitions/user_identifier.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/csapi/definitions/user_identifier.h b/lib/csapi/definitions/user_identifier.h
new file mode 100644
index 00000000..edc254d3
--- /dev/null
+++ b/lib/csapi/definitions/user_identifier.h
@@ -0,0 +1,31 @@
+/******************************************************************************
+ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
+ */
+
+#pragma once
+
+#include "converters.h"
+
+#include <QtCore/QVariant>
+
+namespace QMatrixClient
+{
+ // Data structures
+
+ /// Identification information for a user
+ struct UserIdentifier
+ {
+ /// The type of identification. See `Identifier types`_ for supported values and additional property descriptions.
+ QString type;
+ /// Identification information for a user
+ QVariantHash additionalProperties;
+ };
+
+ QJsonObject toJson(const UserIdentifier& pod);
+
+ template <> struct FromJson<UserIdentifier>
+ {
+ UserIdentifier operator()(const QJsonValue& jv);
+ };
+
+} // namespace QMatrixClient