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