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 Send an event to a given set of devices. |
12 | * |
13 | * This endpoint is used to send send-to-device events to a set of |
14 | * client devices. |
15 | */ |
16 | class QUOTIENT_API SendToDeviceJob : public BaseJob { |
17 | public: |
18 | /*! \brief Send an event to a given set of devices. |
19 | * |
20 | * \param eventType |
21 | * The type of event to send. |
22 | * |
23 | * \param txnId |
24 | * The [transaction ID](/client-server-api/#transaction-identifiers) for |
25 | * this event. Clients should generate an ID unique across requests with the |
26 | * same access token; it will be used by the server to ensure idempotency of |
27 | * requests. |
28 | * |
29 | * \param messages |
30 | * The messages to send. A map from user ID, to a map from |
31 | * device ID to message body. The device ID may also be `*`, |
32 | * meaning all known devices for the user. |
33 | */ |
34 | explicit SendToDeviceJob( |
35 | const QString& eventType, const QString& txnId, |
36 | const QHash<QString, QHash<QString, QJsonObject>>& messages); |
37 | }; |
38 | |
39 | } // namespace Quotient |
40 | |