diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-09-21 20:55:37 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-21 20:55:37 +0900 |
commit | 4eeecd2cf3c9a33878974b93211b29df891ecc9a (patch) | |
tree | 8d2cb44133edc2237278025e2260f88595fa9971 /jobs/generated/inviting.cpp | |
parent | f936182135d166e5dea734775e24cabd4b763c64 (diff) | |
parent | 9cc3f82026c64862bae6a535d2b883b8cf97fba0 (diff) | |
download | libquotient-4eeecd2cf3c9a33878974b93211b29df891ecc9a.tar.gz libquotient-4eeecd2cf3c9a33878974b93211b29df891ecc9a.zip |
Merge pull request #83 from QMatrixClient/kitsune-invite-kick
Support inviting, kicking and dealing with rooms in Invite state
Diffstat (limited to 'jobs/generated/inviting.cpp')
-rw-r--r-- | jobs/generated/inviting.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/jobs/generated/inviting.cpp b/jobs/generated/inviting.cpp new file mode 100644 index 00000000..e5e7f410 --- /dev/null +++ b/jobs/generated/inviting.cpp @@ -0,0 +1,37 @@ +/****************************************************************************** + * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN + */ + + +#include "inviting.h" + + +#include "../converters.h" + +#include <QtCore/QStringBuilder> + +using namespace QMatrixClient; + + + +static const auto basePath = QStringLiteral("/_matrix/client/r0"); + + +InviteUserJob::InviteUserJob(const ConnectionData* connection, + QString roomId + , + QString user_id + ) + : BaseJob(connection, HttpVerb::Post, "InviteUserJob" + , basePath % "/rooms/" % roomId % "/invite" + , Query { } + , Data { + { "user_id", toJson(user_id) } + } + + ) +{ } + + + + |