diff options
Diffstat (limited to 'lib/csapi/definitions/user_identifier.h')
-rw-r--r-- | lib/csapi/definitions/user_identifier.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/csapi/definitions/user_identifier.h b/lib/csapi/definitions/user_identifier.h index 831ba191..51c47cca 100644 --- a/lib/csapi/definitions/user_identifier.h +++ b/lib/csapi/definitions/user_identifier.h @@ -4,8 +4,6 @@ #pragma once - - #include "converters.h" #include <QtCore/QVariant> @@ -18,20 +16,19 @@ namespace QMatrixClient /// Identification information for a user struct UserIdentifier { - /// The type of identification. See `Identifier types`_ for supported values and additional property descriptions. + /// The type of identification. See `Identifier types`_ for supported + /// values and additional property descriptions. QString type; - /// Identification information for a user QVariantHash additionalProperties; - }; -template <> struct JsonObjectConverter<UserIdentifier> +template <> +struct JsonObjectConverter<UserIdentifier> { static void dumpTo(QJsonObject& jo, const UserIdentifier& pod); - static void fillFrom(QJsonObject jo, UserIdentifier& pod);}; - - + static void fillFrom(QJsonObject jo, UserIdentifier& pod); +}; } // namespace QMatrixClient |