| 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 Set the position of the read marker for a room. |
| 12 | * |
| 13 | * Sets the position of the read marker for a given room, and optionally |
| 14 | * the read receipt's location. |
| 15 | */ |
| 16 | class QUOTIENT_API SetReadMarkerJob : public BaseJob { |
| 17 | public: |
| 18 | /*! \brief Set the position of the read marker for a room. |
| 19 | * |
| 20 | * \param roomId |
| 21 | * The room ID to set the read marker in for the user. |
| 22 | * |
| 23 | * \param mFullyRead |
| 24 | * The event ID the read marker should be located at. The |
| 25 | * event MUST belong to the room. |
| 26 | * |
| 27 | * \param mRead |
| 28 | * The event ID to set the read receipt location at. This is |
| 29 | * equivalent to calling `/receipt/m.read/$elsewhere:example.org` |
| 30 | * and is provided here to save that extra call. |
| 31 | * |
| 32 | * \param mReadPrivate |
| 33 | * The event ID to set the *private* read receipt location at. This |
| 34 | * equivalent to calling `/receipt/m.read.private/$elsewhere:example.org` |
| 35 | * and is provided here to save that extra call. |
| 36 | */ |
| 37 | explicit SetReadMarkerJob(const QString& roomId, |
| 38 | const QString& mFullyRead = {}, |
| 39 | const QString& mRead = {}, |
| 40 | const QString& mReadPrivate = {}); |
| 41 | }; |
| 42 | |
| 43 | } // namespace Quotient |
| 44 | |