aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/appservice_room_directory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/appservice_room_directory.cpp')
-rw-r--r--lib/csapi/appservice_room_directory.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/lib/csapi/appservice_room_directory.cpp b/lib/csapi/appservice_room_directory.cpp
index f40e2f05..e8ec55bf 100644
--- a/lib/csapi/appservice_room_directory.cpp
+++ b/lib/csapi/appservice_room_directory.cpp
@@ -4,22 +4,18 @@
#include "appservice_room_directory.h"
-#include "converters.h"
-
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
-
-static const auto basePath = QStringLiteral("/_matrix/client/r0");
+using namespace Quotient;
-static const auto UpdateAppserviceRoomDirectoryVsibilityJobName = QStringLiteral("UpdateAppserviceRoomDirectoryVsibilityJob");
-
-UpdateAppserviceRoomDirectoryVsibilityJob::UpdateAppserviceRoomDirectoryVsibilityJob(const QString& networkId, const QString& roomId, const QString& visibility)
- : BaseJob(HttpVerb::Put, UpdateAppserviceRoomDirectoryVsibilityJobName,
- basePath % "/directory/list/appservice/" % networkId % "/" % roomId)
+UpdateAppserviceRoomDirectoryVsibilityJob::UpdateAppserviceRoomDirectoryVsibilityJob(
+ const QString& networkId, const QString& roomId, const QString& visibility)
+ : BaseJob(HttpVerb::Put,
+ QStringLiteral("UpdateAppserviceRoomDirectoryVsibilityJob"),
+ QStringLiteral("/_matrix/client/r0")
+ % "/directory/list/appservice/" % networkId % "/" % roomId)
{
QJsonObject _data;
addParam<>(_data, QStringLiteral("visibility"), visibility);
- setRequestData(_data);
+ setRequestData(std::move(_data));
}
-