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