1 | /****************************************************************************** |
2 | * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN |
3 | */ |
4 | |
5 | #pragma once |
6 | |
7 | #include <Quotient/jobs/basejob.h> |
8 | |
9 | namespace Quotient { |
10 | |
11 | /*! \brief Lists the user's current rooms. |
12 | * |
13 | * This API returns a list of the user's current rooms. |
14 | */ |
15 | class QUOTIENT_API GetJoinedRoomsJob : public BaseJob { |
16 | public: |
17 | /// Lists the user's current rooms. |
18 | explicit GetJoinedRoomsJob(); |
19 | |
20 | /*! \brief Construct a URL without creating a full-fledged job object |
21 | * |
22 | * This function can be used when a URL for GetJoinedRoomsJob |
23 | * is necessary but the job itself isn't. |
24 | */ |
25 | static QUrl makeRequestUrl(QUrl baseUrl); |
26 | |
27 | // Result properties |
28 | |
29 | /// The ID of each room in which the user has `joined` membership. |
30 | QStringList joinedRooms() const |
31 | { |
32 | return loadFromJson<QStringList>(keyName: "joined_rooms"_ls ); |
33 | } |
34 | }; |
35 | |
36 | } // namespace Quotient |
37 | |