libQuotient
A Qt library for building matrix clients
kicking.h
Go to the documentation of this file.
1 // THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
2 
3 #pragma once
4 
5 #include <Quotient/jobs/basejob.h>
6 
7 namespace Quotient {
8 
9 //! \brief Kick a user from the room.
10 //!
11 //! Kick a user from the room.
12 //!
13 //! The caller must have the required power level in order to perform this operation.
14 //!
15 //! Kicking a user adjusts the target member's membership state to be `leave` with an
16 //! optional `reason`. Like with other membership changes, a user can directly adjust
17 //! the target member's state by making a request to `/rooms/<room id>/state/m.room.member/<user
18 //! id>`.
19 class QUOTIENT_API KickJob : public BaseJob {
20 public:
21  //! \param roomId
22  //! The room identifier (not alias) from which the user should be kicked.
23  //!
24  //! \param userId
25  //! The fully qualified user ID of the user being kicked.
26  //!
27  //! \param reason
28  //! The reason the user has been kicked. This will be supplied as the
29  //! `reason` on the target's updated [`m.room.member`](/client-server-api/#mroommember) event.
30  explicit KickJob(const QString& roomId, const QString& userId, const QString& reason = {});
31 };
32 
33 } // namespace Quotient