/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #pragma once #include "../basejob.h" #include #include "converters.h" namespace QMatrixClient { // Operations class JoinRoomByIdJob : public BaseJob { public: // Inner data structures struct ThirdPartySigned { QString sender; QString mxid; QString token; QJsonObject signatures; }; // Construction/destruction explicit JoinRoomByIdJob(const QString& roomId, const ThirdPartySigned& thirdPartySigned = {}); ~JoinRoomByIdJob() override; // Result properties const QString& roomId() const; protected: Status parseJson(const QJsonDocument& data) override; private: class Private; QScopedPointer d; }; class JoinRoomJob : public BaseJob { public: // Inner data structures struct Signed { QString sender; QString mxid; QString token; QJsonObject signatures; }; struct ThirdPartySigned { Signed signedData; }; // Construction/destruction explicit JoinRoomJob(const QString& roomIdOrAlias, const ThirdPartySigned& thirdPartySigned = {}); ~JoinRoomJob() override; // Result properties const QString& roomId() const; protected: Status parseJson(const QJsonDocument& data) override; private: class Private; QScopedPointer d; }; } // namespace QMatrixClient