/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #include "cross_signing.h" #include using namespace Quotient; UploadCrossSigningKeysJob::UploadCrossSigningKeysJob( const Omittable& masterKey, const Omittable& selfSigningKey, const Omittable& userSigningKey) : BaseJob(HttpVerb::Post, QStringLiteral("UploadCrossSigningKeysJob"), QStringLiteral("/_matrix/client/r0") % "/keys/device_signing/upload") { QJsonObject _data; addParam(_data, QStringLiteral("master_key"), masterKey); addParam(_data, QStringLiteral("self_signing_key"), selfSigningKey); addParam(_data, QStringLiteral("user_signing_key"), userSigningKey); setRequestData(std::move(_data)); } UploadCrossSigningSignaturesJob::UploadCrossSigningSignaturesJob( const QHash>& signatures) : BaseJob(HttpVerb::Post, QStringLiteral("UploadCrossSigningSignaturesJob"), QStringLiteral("/_matrix/client/r0") % "/keys/signatures/upload") { setRequestData(RequestData(toJson(signatures))); }