libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
list_joined_rooms.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
7namespace Quotient {
8
9//! \brief Lists the user's current rooms.
10//!
11//! This API returns a list of the user's current rooms.
13public:
15
16 //! \brief Construct a URL without creating a full-fledged job object
17 //!
18 //! This function can be used when a URL for GetJoinedRoomsJob
19 //! is necessary but the job itself isn't.
21
22 // Result properties
23
24 //! The ID of each room in which the user has `joined` membership.
25 QStringList joinedRooms() const { return loadFromJson<QStringList>("joined_rooms"_L1); }
26};
27
28inline auto collectResponse(const GetJoinedRoomsJob* job) { return job->joinedRooms(); }
29
30} // namespace Quotient
Lists the user's current rooms.
auto collectResponse(const GetAccountDataJob *job)
#define QUOTIENT_API