From e17764a1ae81393968dfb747c7b67353c109bc71 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 19 Jun 2020 15:01:33 +0200 Subject: csapi/: generated using the latest GTAD and matrix-doc For matrix-doc, specifically, it is master (5cb4b086) merged with https://github.com/matrix-org/matrix-doc/pull/2518. --- lib/csapi/keys.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'lib/csapi/keys.h') diff --git a/lib/csapi/keys.h b/lib/csapi/keys.h index b7a8dc71..8f6c8cc9 100644 --- a/lib/csapi/keys.h +++ b/lib/csapi/keys.h @@ -17,7 +17,6 @@ namespace Quotient { class UploadKeysJob : public BaseJob { public: /*! \brief Upload end-to-end encryption keys. - * * * \param deviceKeys * Identity keys for the device. May be absent if no new @@ -61,9 +60,7 @@ public: }; /// Returns the current devices and identity keys for the given users. - struct DeviceKeys : - - Quotient::DeviceKeys { + struct DeviceInformation : DeviceKeys { /// Additional data added to the device key information /// by intermediate servers, and not covered by the /// signatures. @@ -73,7 +70,6 @@ public: // Construction/destruction /*! \brief Download device identity keys. - * * * \param deviceKeys * The keys to be downloaded. A map from user ID, to a list of @@ -113,9 +109,9 @@ public: /// the information returned will be the same as uploaded via /// ``/keys/upload``, with the addition of an ``unsigned`` /// property. - QHash> deviceKeys() const + QHash> deviceKeys() const { - return loadFromJson>>( + return loadFromJson>>( "device_keys"_ls); } }; @@ -130,8 +126,9 @@ struct JsonObjectConverter { }; template <> -struct JsonObjectConverter { - static void fillFrom(const QJsonObject& jo, QueryKeysJob::DeviceKeys& result) +struct JsonObjectConverter { + static void fillFrom(const QJsonObject& jo, + QueryKeysJob::DeviceInformation& result) { fillFromJson(jo, result); fromJson(jo.value("unsigned"_ls), result.unsignedData); @@ -145,7 +142,6 @@ struct JsonObjectConverter { class ClaimKeysJob : public BaseJob { public: /*! \brief Claim one-time encryption keys. - * * * \param oneTimeKeys * The keys to be claimed. A map from user ID, to a map from @@ -201,7 +197,6 @@ public: class GetKeysChangesJob : public BaseJob { public: /*! \brief Query users with recent device key updates. - * * * \param from * The desired start point of the list. Should be the ``next_batch`` field -- cgit v1.2.3