aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/capabilities.cpp
blob: 33a53cadb3865ed9d58b0f780ea0596493994308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/******************************************************************************
 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
 */

#include "capabilities.h"

#include <QtCore/QStringBuilder>

using namespace Quotient;

QUrl GetCapabilitiesJob::makeRequestUrl(QUrl baseUrl)
{
    return BaseJob::makeRequestUrl(std::move(baseUrl),
                                   QStringLiteral("/_matrix/client/r0")
                                       % "/capabilities");
}

GetCapabilitiesJob::GetCapabilitiesJob()
    : BaseJob(HttpVerb::Get, QStringLiteral("GetCapabilitiesJob"),
              QStringLiteral("/_matrix/client/r0") % "/capabilities")
{
    addExpectedKey("capabilities");
}