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
7
namespace
Quotient
{
8
9
//! \brief Lists the user's current rooms.
10
//!
11
//! This API returns a list of the user's current rooms.
12
class
QUOTIENT_API
GetJoinedRoomsJob
:
public
BaseJob
{
13
public
:
14
explicit
GetJoinedRoomsJob
();
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.
20
static
QUrl
makeRequestUrl
(
const
HomeserverData
&
hsData
);
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
28
inline
auto
collectResponse
(
const
GetJoinedRoomsJob* job) {
return
job->joinedRooms(); }
29
30
}
// namespace Quotient
Quotient::GetJoinedRoomsJob
Lists the user's current rooms.
Definition
list_joined_rooms.h:12
Quotient
Definition
accountregistry.h:13
Quotient::collectResponse
auto collectResponse(const GetAccountDataJob *job)
Definition
account-data.h:59
QUOTIENT_API
#define QUOTIENT_API
Definition
quotient_export.h:22
Quotient
csapi
list_joined_rooms.h
Generated by
1.9.8