/****************************************************************************** * 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; }; // Construction/destruction explicit JoinRoomByIdJob(const QString& roomId, const Omittable& thirdPartySigned = none); ~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 QStringList& serverName = {}, const Omittable& thirdPartySigned = none); ~JoinRoomJob() override; // Result properties const QString& roomId() const; protected: Status parseJson(const QJsonDocument& data) override; private: class Private; QScopedPointer d; }; } // namespace QMatrixClient