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 Upgrades a room to a new room version. |
12 | * |
13 | * Upgrades the given room to a particular room version. |
14 | */ |
15 | class QUOTIENT_API UpgradeRoomJob : public BaseJob { |
16 | public: |
17 | /*! \brief Upgrades a room to a new room version. |
18 | * |
19 | * \param roomId |
20 | * The ID of the room to upgrade. |
21 | * |
22 | * \param newVersion |
23 | * The new version for the room. |
24 | */ |
25 | explicit UpgradeRoomJob(const QString& roomId, const QString& newVersion); |
26 | |
27 | // Result properties |
28 | |
29 | /// The ID of the new room. |
30 | QString replacementRoom() const |
31 | { |
32 | return loadFromJson<QString>(keyName: "replacement_room"_ls ); |
33 | } |
34 | }; |
35 | |
36 | } // namespace Quotient |
37 | |