diff options
Diffstat (limited to 'lib/csapi/definitions/user_identifier.h')
-rw-r--r-- | lib/csapi/definitions/user_identifier.h | 31 |
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 |