libkazv
read_markers.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 SetReadMarkerJob : 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 
52  explicit SetReadMarkerJob(std::string serverUrl
53  , std::string _accessToken
54  ,
55  std::string roomId , std::string mFullyRead , std::optional<std::string> mRead = std::nullopt
56  );
57 
58 
60  );
61 
62  static BaseJob::Body buildBody(std::string roomId, std::string mFullyRead, std::optional<std::string> mRead);
63 
64 
65 
66 
67 
70  };
72  }
73  namespace nlohmann
74  {
75  using namespace Kazv;
76  using namespace Kazv::Api;
77 
78  }
79 
80  namespace Kazv::Api
81  {
82 
83 } // namespace Kazv::Api
Kazv::Api::SetReadMarkerJob::needsAuth
static constexpr auto needsAuth()
Definition: read_markers.hpp:34
Kazv::Api::SetReadMarkerJob::buildQuery
static BaseJob::Query buildQuery()
Definition: read_markers.cpp:15
nlohmann
Definition: location.hpp:26
Kazv
Definition: location.hpp:10
Kazv::BaseJob::Query
Definition: basejob.hpp:90
Kazv::Api
Definition: location.hpp:10
Kazv::Api::SetReadMarkerJob::withData
SetReadMarkerJob withData(JsonWrap j) &&
Definition: read_markers.cpp:63
basejob.hpp
Kazv::Api::SetReadMarkerJob::SetReadMarkerJob
SetReadMarkerJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::string mFullyRead, std::optional< std::string > mRead=std::nullopt)
Set the position of the read marker for a room.
Definition: read_markers.cpp:43
Kazv::JsonWrap
Definition: jsonwrap.hpp:22
Kazv::Api::SetReadMarkerJob::JobResponse
Definition: read_markers.hpp:26
Kazv::Api::SetReadMarkerJob::buildBody
static BaseJob::Body buildBody(std::string roomId, std::string mFullyRead, std::optional< std::string > mRead)
Definition: read_markers.cpp:23
Kazv::Api::SetReadMarkerJob::JobResponse::success
bool success() const
Definition: read_markers.cpp:80
Kazv::Api::SetReadMarkerJob
Set the position of the read marker for a room.
Definition: read_markers.hpp:19
Kazv::BaseJob::Body
::Kazv::Body Body
Definition: basejob.hpp:100
Kazv::Response
Definition: basejob.hpp:50
Kazv::Api::SetReadMarkerJob::JobResponse::JobResponse
JobResponse(Response r)
Definition: read_markers.cpp:77