/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #pragma once #include "converters.h" #include namespace Quotient { // Data structures /// Device identity keys struct DeviceKeys { /// The ID of the user the device belongs to. Must match the user ID /// usedwhen logging in. QString userId; /// The ID of the device these keys belong to. Must match the device ID /// usedwhen logging in. QString deviceId; /// The encryption algorithms supported by this device. QStringList algorithms; /// Public identity keys. The names of the properties should be in theformat /// ``:``. The keys themselves should beencoded as /// specified by the key algorithm. QHash keys; /// Signatures for the device key object. A map from user ID, to a map /// from``:`` to the signature.The signature is /// calculated using the process described at `SigningJSON`_. QHash> signatures; }; template <> struct JsonObjectConverter { static void dumpTo(QJsonObject& jo, const DeviceKeys& pod); static void fillFrom(const QJsonObject& jo, DeviceKeys& pod); }; } // namespace Quotient