aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/pusher.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-16 13:29:02 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-18 19:36:32 +0200
commit2dd85770cbfd6d9c7506757f25765c05ef74987d (patch)
tree5de167f66ee610ad01bca776897bd6c8183a66d7 /lib/csapi/pusher.cpp
parent10867950474a360426685ad888237a5542b0cfac (diff)
downloadlibquotient-2dd85770cbfd6d9c7506757f25765c05ef74987d.tar.gz
libquotient-2dd85770cbfd6d9c7506757f25765c05ef74987d.zip
Regenerate API files upon the previous commit
Diffstat (limited to 'lib/csapi/pusher.cpp')
-rw-r--r--lib/csapi/pusher.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/csapi/pusher.cpp b/lib/csapi/pusher.cpp
index 498be3ee..fb6595fc 100644
--- a/lib/csapi/pusher.cpp
+++ b/lib/csapi/pusher.cpp
@@ -25,15 +25,16 @@ PostPusherJob::PostPusherJob(const QString& pushkey, const QString& kind,
: BaseJob(HttpVerb::Post, QStringLiteral("PostPusherJob"),
makePath("/_matrix/client/v3", "/pushers/set"))
{
- QJsonObject _data;
- addParam<>(_data, QStringLiteral("pushkey"), pushkey);
- addParam<>(_data, QStringLiteral("kind"), kind);
- addParam<>(_data, QStringLiteral("app_id"), appId);
- addParam<>(_data, QStringLiteral("app_display_name"), appDisplayName);
- addParam<>(_data, QStringLiteral("device_display_name"), deviceDisplayName);
- addParam<IfNotEmpty>(_data, QStringLiteral("profile_tag"), profileTag);
- addParam<>(_data, QStringLiteral("lang"), lang);
- addParam<>(_data, QStringLiteral("data"), data);
- addParam<IfNotEmpty>(_data, QStringLiteral("append"), append);
- setRequestData(std::move(_data));
+ QJsonObject _dataJson;
+ addParam<>(_dataJson, QStringLiteral("pushkey"), pushkey);
+ addParam<>(_dataJson, QStringLiteral("kind"), kind);
+ addParam<>(_dataJson, QStringLiteral("app_id"), appId);
+ addParam<>(_dataJson, QStringLiteral("app_display_name"), appDisplayName);
+ addParam<>(_dataJson, QStringLiteral("device_display_name"),
+ deviceDisplayName);
+ addParam<IfNotEmpty>(_dataJson, QStringLiteral("profile_tag"), profileTag);
+ addParam<>(_dataJson, QStringLiteral("lang"), lang);
+ addParam<>(_dataJson, QStringLiteral("data"), data);
+ addParam<IfNotEmpty>(_dataJson, QStringLiteral("append"), append);
+ setRequestData({ _dataJson });
}