libkazv
to_device.hpp
Go to the documentation of this file.
1 /******************************************************************************
2  * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
3  */
4 
5 #pragma once
6 
7 #include "basejob.hpp"
8 
9 
10 namespace Kazv::Api {
11 
17 class SendToDeviceJob : public BaseJob {
18 public:
19 
20 
21 
22 class JobResponse : public Response
23 {
24 
25 public:
27  bool success() const;
28 
29 };
30  static constexpr auto needsAuth() {
31  return true
32  ;
33  }
34 
35 
36 // Construction/destruction
37 
53  explicit SendToDeviceJob(std::string serverUrl
54  , std::string _accessToken
55  ,
56  std::string eventType , std::string txnId , immer::map<std::string, immer::map<std::string, JsonWrap>> messages
57  );
58 
59 
61  );
62 
63  static BaseJob::Body buildBody(std::string eventType, std::string txnId, immer::map<std::string, immer::map<std::string, JsonWrap>> messages);
64 
65 
66 
67 
68 
71  };
73  }
74  namespace nlohmann
75  {
76  using namespace Kazv;
77  using namespace Kazv::Api;
78 
79  }
80 
81  namespace Kazv::Api
82  {
83 
84 } // namespace Kazv::Api
Kazv::Api::SendToDeviceJob
Send an event to a given set of devices.
Definition: to_device.hpp:19
Kazv::Api::SendToDeviceJob::withData
SendToDeviceJob withData(JsonWrap j) &&
Definition: to_device.cpp:61
Kazv::Api::SendToDeviceJob::buildBody
static BaseJob::Body buildBody(std::string eventType, std::string txnId, immer::map< std::string, immer::map< std::string, JsonWrap >> messages)
Definition: to_device.cpp:23
Kazv::Api::SendToDeviceJob::buildQuery
static BaseJob::Query buildQuery()
Definition: to_device.cpp:15
nlohmann
Definition: location.hpp:26
Kazv::Api::SendToDeviceJob::JobResponse::success
bool success() const
Definition: to_device.cpp:78
Kazv::Api::SendToDeviceJob::needsAuth
static constexpr auto needsAuth()
Definition: to_device.hpp:34
Kazv::Api::SendToDeviceJob::SendToDeviceJob
SendToDeviceJob(std::string serverUrl, std::string _accessToken, std::string eventType, std::string txnId, immer::map< std::string, immer::map< std::string, JsonWrap >> messages)
Send an event to a given set of devices.
Definition: to_device.cpp:41
Kazv
Definition: location.hpp:10
Kazv::BaseJob::Query
Definition: basejob.hpp:90
Kazv::Api
Definition: location.hpp:10
Kazv::Api::SendToDeviceJob::JobResponse
Definition: to_device.hpp:26
basejob.hpp
Kazv::JsonWrap
Definition: jsonwrap.hpp:22
Kazv::BaseJob::Body
::Kazv::Body Body
Definition: basejob.hpp:100
Kazv::Api::SendToDeviceJob::JobResponse::JobResponse
JobResponse(Response r)
Definition: to_device.cpp:75
Kazv::Response
Definition: basejob.hpp:50