/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #include "space_hierarchy.h" using namespace Quotient; auto queryToGetSpaceHierarchy(Omittable suggestedOnly, Omittable limit, Omittable maxDepth, const QString& from) { QUrlQuery _q; addParam(_q, QStringLiteral("suggested_only"), suggestedOnly); addParam(_q, QStringLiteral("limit"), limit); addParam(_q, QStringLiteral("max_depth"), maxDepth); addParam(_q, QStringLiteral("from"), from); return _q; } QUrl GetSpaceHierarchyJob::makeRequestUrl(QUrl baseUrl, const QString& roomId, Omittable suggestedOnly, Omittable limit, Omittable maxDepth, const QString& from) { return BaseJob::makeRequestUrl( std::move(baseUrl), makePath("/_matrix/client/v1", "/rooms/", roomId, "/hierarchy"), queryToGetSpaceHierarchy(suggestedOnly, limit, maxDepth, from)); } GetSpaceHierarchyJob::GetSpaceHierarchyJob(const QString& roomId, Omittable suggestedOnly, Omittable limit, Omittable maxDepth, const QString& from) : BaseJob(HttpVerb::Get, QStringLiteral("GetSpaceHierarchyJob"), makePath("/_matrix/client/v1", "/rooms/", roomId, "/hierarchy"), queryToGetSpaceHierarchy(suggestedOnly, limit, maxDepth, from)) { addExpectedKey("rooms"); }