libQuotient
A Qt library for building matrix clients
inviting.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 Invite a user to participate in a particular room.
10 //!
11 //! *Note that there are two forms of this API, which are documented separately.
12 //! This version of the API requires that the inviter knows the Matrix
13 //! identifier of the invitee. The other is documented in the
14 //! [third-party invites](/client-server-api/#third-party-invites) section.*
15 //!
16 //! This API invites a user to participate in a particular room.
17 //! They do not start participating in the room until they actually join the
18 //! room.
19 //!
20 //! Only users currently in a particular room can invite other users to
21 //! join that room.
22 //!
23 //! If the user was invited to the room, the homeserver will append a
24 //! `m.room.member` event to the room.
25 class QUOTIENT_API InviteUserJob : public BaseJob {
26 public:
27  //! \param roomId
28  //! The room identifier (not alias) to which to invite the user.
29  //!
30  //! \param userId
31  //! The fully qualified user ID of the invitee.
32  //!
33  //! \param reason
34  //! Optional reason to be included as the `reason` on the subsequent
35  //! membership event.
36  explicit InviteUserJob(const QString& roomId, const QString& userId, const QString& reason = {});
37 };
38 
39 } // namespace Quotient