diff options
Diffstat (limited to 'lib/csapi/definitions/wellknown/identity_server.h')
-rw-r--r-- | lib/csapi/definitions/wellknown/identity_server.h | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/lib/csapi/definitions/wellknown/identity_server.h b/lib/csapi/definitions/wellknown/identity_server.h index fd53dfc1..4462f86e 100644 --- a/lib/csapi/definitions/wellknown/identity_server.h +++ b/lib/csapi/definitions/wellknown/identity_server.h @@ -4,21 +4,30 @@ #pragma once + + #include "converters.h" -namespace QMatrixClient { - // Data structures - - /// Used by clients to discover identity server information. - struct IdentityServerInformation { - /// The base URL for the identity server for client-server connections. - QString baseUrl; - }; - template <> struct JsonObjectConverter<IdentityServerInformation> { - static void dumpTo(QJsonObject& jo, - const IdentityServerInformation& pod); - static void fillFrom(const QJsonObject& jo, - IdentityServerInformation& pod); - }; + +namespace QMatrixClient +{ + +// Data structures + +/// Used by clients to discover identity server information. +struct IdentityServerInformation +{ + /// The base URL for the identity server for client-server connections. + QString baseUrl; + + +}; + +template <> struct JsonObjectConverter<IdentityServerInformation> +{ + static void dumpTo(QJsonObject& jo, const IdentityServerInformation& pod); + static void fillFrom(const QJsonObject& jo, IdentityServerInformation& pod);}; + + } // namespace QMatrixClient |