File indexing completed on 2024-05-12 05:01:25

0001 // SPDX-FileCopyrightText: 2023 Tobias Fella <tobias.fella@kde.org>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 #include "neochatdeletedevicejob.h"
0005 
0006 using namespace Quotient;
0007 
0008 NeochatDeleteDeviceJob::NeochatDeleteDeviceJob(const QString &deviceId, const Omittable<QJsonObject> &auth)
0009     : BaseJob(HttpVerb::Delete, QStringLiteral("DeleteDeviceJob"), QStringLiteral("/_matrix/client/r0/devices/%1").arg(deviceId).toLatin1())
0010 {
0011     QJsonObject _data;
0012     addParam<IfNotEmpty>(_data, QStringLiteral("auth"), auth);
0013     setRequestData(std::move(_data));
0014 }