libkazv
typing.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 
19 class SetTypingJob : public BaseJob {
20 public:
21 
22 
23 
24 class JobResponse : public Response
25 {
26 
27 public:
29  bool success() const;
30 
31 };
32  static constexpr auto needsAuth() {
33  return true
34  ;
35  }
36 
37 
38 // Construction/destruction
39 
55  explicit SetTypingJob(std::string serverUrl
56  , std::string _accessToken
57  ,
58  std::string userId , std::string roomId , bool typing , std::optional<int> timeout = std::nullopt
59  );
60 
61 
63  );
64 
65  static BaseJob::Body buildBody(std::string userId, std::string roomId, bool typing, std::optional<int> timeout);
66 
67 
68 
69 
70 
72  SetTypingJob withData(JsonWrap j) const &;
73  };
75  }
76  namespace nlohmann
77  {
78  using namespace Kazv;
79  using namespace Kazv::Api;
80 
81  }
82 
83  namespace Kazv::Api
84  {
85 
86 } // namespace Kazv::Api
Definition: typing.hpp:25
JobResponse(Response r)
Definition: typing.cpp:75
bool success() const
Definition: typing.cpp:78
Informs the server that the user has started or stopped typing.
Definition: typing.hpp:19
static BaseJob::Body buildBody(std::string userId, std::string roomId, bool typing, std::optional< int > timeout)
Definition: typing.cpp:21
SetTypingJob withData(JsonWrap j) &&
Definition: typing.cpp:61
static BaseJob::Query buildQuery()
Definition: typing.cpp:13
static constexpr auto needsAuth()
Definition: typing.hpp:32
SetTypingJob(std::string serverUrl, std::string _accessToken, std::string userId, std::string roomId, bool typing, std::optional< int > timeout=std::nullopt)
Informs the server that the user has started or stopped typing.
Definition: typing.cpp:41
Definition: basejob.hpp:91
Definition: basejob.hpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: jsonwrap.hpp:23
Definition: location.hpp:10
Definition: location.hpp:10
Definition: location.hpp:27
Definition: basejob.hpp:50