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
Kazv::Api::SetTypingJob
Informs the server that the user has started or stopped typing.
Definition: typing.hpp:21
nlohmann
Definition: location.hpp:26
Kazv::Api::SetTypingJob::buildQuery
static BaseJob::Query buildQuery()
Definition: typing.cpp:15
Kazv
Definition: location.hpp:10
Kazv::Api::SetTypingJob::SetTypingJob
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:43
Kazv::Api::SetTypingJob::JobResponse::success
bool success() const
Definition: typing.cpp:80
Kazv::BaseJob::Query
Definition: basejob.hpp:90
Kazv::Api
Definition: location.hpp:10
Kazv::Api::SetTypingJob::withData
SetTypingJob withData(JsonWrap j) &&
Definition: typing.cpp:63
Kazv::Api::SetTypingJob::JobResponse
Definition: typing.hpp:28
basejob.hpp
Kazv::JsonWrap
Definition: jsonwrap.hpp:22
Kazv::Api::SetTypingJob::JobResponse::JobResponse
JobResponse(Response r)
Definition: typing.cpp:77
Kazv::Api::SetTypingJob::needsAuth
static constexpr auto needsAuth()
Definition: typing.hpp:36
Kazv::BaseJob::Body
::Kazv::Body Body
Definition: basejob.hpp:100
Kazv::Api::SetTypingJob::buildBody
static BaseJob::Body buildBody(std::string userId, std::string roomId, bool typing, std::optional< int > timeout)
Definition: typing.cpp:23
Kazv::Response
Definition: basejob.hpp:50