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

#include "admin.h"

#include <QtCore/QStringBuilder>

using namespace Quotient;

QUrl GetWhoIsJob::makeRequestUrl(QUrl baseUrl, const QString& userId)
{
    return BaseJob::makeRequestUrl(std::move(baseUrl),
                                   QStringLiteral("/_matrix/client/r0")
                                       % "/admin/whois/" % userId);
}

GetWhoIsJob::GetWhoIsJob(const QString& userId)
    : BaseJob(HttpVerb::Get, QStringLiteral("GetWhoIsJob"),
              QStringLiteral("/_matrix/client/r0") % "/admin/whois/" % userId)
{}